I have an SPD 2013 workflow attached to a list. The workflow is set to start when an item is added to the list. The workflow works just fine when a list item is added from the sharepoint website because it runs under the user's credentials.
The workflow fails immediately when the list item is added from Sharepoint webservices since it attempts to run the workflow with the "System Account" credentials. I know it fails immediately since the first action in the workflow is to log a start message to the history list. Can anyone tell me how to get arround this?
Here is the error reported from the Internal Status field.
RequestorId: 056b2801-f584-224e-7496-66eddbc3aec6. Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["056b2801-f584-224e-7496-66eddbc3aec6"],"request-id":["056b2801-f584-224e-7496-66eddbc3aec6"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 31 Jul 2013 21:45:36 GMT"],"Server":["Microsoft-IIS/7.5"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)