Objectives:
- Show the customer what he/she is paying for
- Satisfy customer
- Sell change requests
- Earn project bonus
Wow everything works fine, why don't we start the workflow?
Wow... Why execution failed?
RequestorId: dbaf8233-b7f4-cc8e-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":["2"],"SPRequestGuid":["dbaf8233-b7f4-cc8e-84d2-34863a603d9b"],"request-id":["dbaf8233-b7f4-cc8e-84d2-34863a603d9b"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4551"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Fri, 25 Jul 2014 14:01:50 GMT"],"Server":["Microsoft-IIS\/8.0"],"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)
Wow... Why my bonus it's flying away?
Don't worry about it, the solution it's simple, even if the situation is frustrating.
The problem can be solved using central admin, look for Refresh trusted security token services metadata feed and run it now. Then make an iisreset.
If you are a lazy one use this small PowerShell
Get-SPTimerJob "RefreshMetadataFeed" | Start-SPTimerJobAnd now, let's go on with demo, and with the bonus :) .
did not worked. still get the same error.
ReplyDeleteHi buddy,
Deletehave you tried to iisreset your machine after "Refresh trusted security token services metadata feed" restart?
Are you sure you have restarted the correct timer job, and that the timer job did its work?
If your answer is yes to both question, the problem is elsewhere, and maybe you have to reconfigure the workflow manager.
Best regards.
Hi Bro,
ReplyDeleteI ran into this same issue with my client every day.
Please check if account starting workflow has user profile service.As workflows user oAuth.
It will solve ur issue.
how to check if the account starting workflow has a user profile service?
DeleteThank you for this great help:
ReplyDeleteGet-SPTimerJob "RefreshMetadataFeed" | Start-SPTimerJob
after above PowerShell cmdlet execution and reset iis, then it start working.
great...
I have delete the workflow and publish again.
ReplyDeleteit's work now
I have delete the workflow and publish again.
ReplyDeleteIt work now