We have a workflow that checks two lists. If List B has a matching Value in list A, then the workflow changes a column "code" on list A to match what list B Colum "cc" is. When we run the script we get a error at the update item part. It can see that there is a match between two the list, but when it goes to change the column value it errors and put the workflow in a Suspended state.
I was reading online and it looks like it may be a permission issue, but the person running the workflow has full permission on both list and the whole site. Does the workflow need permission to change the value on another list? Do we need to add that workflow to list A? Right now the workflow is being ran from list B. The error is below,
RequestorId: f8de3c17-6a92-200f-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["118"],"SPRequestGuid":["f8de3c17-6a92-200f-9e78-1c49ccce2e7c"],"request-id":["f8de3c17-6a92-200f-9e78-1c49ccce2e7c"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4711"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Sat, 09 Jun 2018 14:18:11 GMT"],"Server":["Microsoft-IIS/8.5"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} 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)
Edit: this is a 2013 workflow, here is the update item info on the workflow, the first part of the workflow checks to make sure there are matching values between to the two list and only runs the update item if there is a match.
So i ran the workflow again and and i noticed this error: It said retrying in one minute and give me this. HTTP Unauthorized to https://websitename:Items(1607) Correlation Id: f8de3c17-6a92-200f-b44b-14d51364427e Instance Id: 1bffdd45-970b-48fd-81a7-50d43fc608d0
So it does look like a authorization issue, but im not sure why. They have owner rights.