I am attempting to use workflow to import some documents. Currently I am experiencing permission issues. When I open the SDK script activity and run it I don't receive the same permission denied. Do I have to try to pass through some type of authentication. I thought that changing the service account on the workflow service would allow workflow to find the folder location though it does not. I receive an error in workflow stating "could not find part of the path." Should I try to have the sdk run under a specific account or is it an issue with the account the workflow service is running under?
Question
Question
Permissions for importing documents through workflow
Answer
That looks like the service user doesn't have rights to the path. When you run the script from the Designer it runs as the currently logged in user. When it runs in a workflow, it runs as the WF Server's service user.
Replies
Are you trying to import from a mapped network drive? Can you post the full error message?
Here is the error that I receive. I have also attempted to place another back slash to escape the first slash. If I log into the server with another user (domain admin) I don't experience this issue.
That looks like the service user doesn't have rights to the path. When you run the script from the Designer it runs as the currently logged in user. When it runs in a workflow, it runs as the WF Server's service user.
Does the workflow run on the user account that is currently logged in the machine when clicking on the run workflow button when in the workflow designer?
No, it runs as the user specified in the Workflow Server's service login.
Thanks for the confirmation