Hi Guys,
I have encountered an error during running my custom workflow. The workflow is using custom activity that collects the information form Project Server and then it's supposed to send out emails. After deploying the code to the farm the wf starts to running but if it goes to the part of the code where it should send out emails it's got suspended with this error:
An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 401 UNAUTHORIZED
....
....
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)
The funny thing is that all other workflows even the OOB are not working and getting the same error. Before running the custom WF the OOB (sending simple emails) are running fine. To get back working the OOB wf's i need to restart the Workflow Manager Backend service and do iireset.
I'm catching this error on the farm but on my VM everything is fine. Do you have any ideas what could casue this error? It's is possible that this activity flips out the user profile synchronization?
Thanks
Wojti