Unknown publish error when publishing with a different Windows user "Message: Return Code 2"

Document ID : KB000016411
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

I am on a Windows server that has two local accounts. I am able to publish from one account, but if I perform the same operation with the second account, the job always fails with the message "Message: Return Code 2".

Is there a way to resolve this issue?

Environment:
Datamaker - all versions
Answer:

The issue is an underlying library problem with Datamaker and working with multiple domain accounts on a single box.  If you are going to use more than one user to run the Datamaker application on the same machine, the suggestion would be to use a common shared folder for publishing vs using the default %AppData% folder.

To change the publish folder, create a common folder on the Windows server with a location that all logged users can access for reading and writing.

Once you have the folder in place, open Datamaker and in the menu, select Settings|Project Settings and you will be presented with the dialog box below.

screenshot_400.png

 

In the Output Root Directory,  change the value from %APPDATA% to your new publish folder.  

Once this is changed, the project will only publish to the new folder, regardless of the logged in Windows user.