Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
in SharePoint Server by 11 11 18
edited by

I built a workflow using visual studio 2019 and this workflow will run on multiple subsites. When the user submits a new request the workflow suspended and returns the below error. If I run the workflow manually the users can approve and reject the tasks properly with no issues.

RequestorId: 48c91e80-6ca4-efe7-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"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."}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["48c91e80-6ca4-efe7-b7a6-b9d0cbc8a37b"],"request-id":["48c91e80-6ca4-efe7-b7a6-b9d0cbc8a37b"],"X-FRAME-OPTIONS"

database log

Attempt 6 of the HTTP request to 'http://sharepoin/subsite1/_vti_bin/client.svc/web/lists/getbyid(guid'4cb6274d-8016-48ee-bbcd-5172a4c5e36c')/Items(1)' failed with response '401'.

 Attempt 1 of the HTTP request to 'http://sharepoin/subsite1/_vti_bin/client.svc/site/ReadOnly' failed with response '401'

It works properly when I run the workflow manual otherwise suspended.

I did many workarounds but still fail like 

  1. Grant permission contributes to the task list for the requestor.
  2. On the IIS app pool, security toked service I enabled the Load user profile = true.

But still not working. Does any help please?

0 0
Could you please give a complete source code

If you don’t ask, the answer is always NO!