SharePoint Online - SharePoint Designer 2013 workflow error

%3CLINGO-SUB%20id%3D%22lingo-sub-2528162%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20-%20SharePoint%20Designer%202013%20workflow%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2528162%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings!%20We%20have%20SharePoint%20Online%20sites%20with%20SharePoint%20Designer%202013%20workflows%20at%20our%20customers.%20A%20lot%20of%20our%20customers%20experiencing%20workflow%20errors%20now%3A%20the%20workflows%20just%20stopped%20working%20and%20if%20you%20try%20to%20start%20a%20new%20one%20manually%2C%20its%20Status%20remains%20%22Not%20Started%22.%20All%20the%20running%20workflows%20have%20the%20same%20error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESystem.Net.WebException%3A%20The%20request%20was%20aborted%3A%20The%20request%20was%20canceled.%20---%26gt%3B%20System.InvalidOperationException%3A%20Failed%20to%20fetch%20an%20access%20token%20from%20the%20token%20service.%20For%20details%2C%20see%20the%20inner%20exception.%20---%26gt%3B%20System.Net.WebException%3A%20The%20remote%20server%20returned%20an%20error%3A%20(401)%20Unauthorized.%0A%20%20%20at%20System.Net.HttpWebRequest.GetResponse()%0A%20%20%20at%20Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.FetchAccessToken(Uri%20stsUri%2C%20String%20targetServiceAudience%2C%20String%20authenticatorToken%2C%20HttpWebRequest%20request%2C%20TimeSpan%20timeout%2C%20EventTraceActivity%20eventTraceActivity%2C%20TimeSpan%26amp%3B%20expirationDuration)%0A%20%20%20---%20End%20of%20inner%20exception%20stack%20trace%20---%0A%20%20%20at%20Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.FetchAccessToken(Uri%20stsUri%2C%20String%20targetServiceAudience%2C%20String%20authenticatorToken%2C%20HttpWebRequest%20request%2C%20TimeSpan%20timeout%2C%20EventTraceActivity%20eventTraceActivity%2C%20TimeSpan%26amp%3B%20expirationDuration)%0A%20%20%20at%20Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.GetAccessTokenFromTokenService(OAuthS2SPrincipal%20client%2C%20OAuthS2SPrincipal%20targetServiceAudience%2C%20HttpWebRequest%20originalRequest%2C%20EventTraceActivity%20eventTraceActivity%2C%20TimeSpan%26amp%3B%20expirationDuration)%0A%20%20%20at%20Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.GetAuthorization(OAuthS2SAuthenticationChallenge%5B%5D%20bearerChallenges%2C%20HttpWebRequest%20request%2C%20EventTraceActivity%20eventTraceActivity)%0A%20%20%20at%20Microsoft.Activities.Hosting.Security.OAuthS2SAuthenticationModule.AuthenticateInternal(String%20challenge%2C%20WebRequest%20request%2C%20OAuthS2SCredential%20credential%2C%20EventTraceActivity%20eventTraceActivity)%0A%20%20%20at%20Microsoft.Activities.Hosting.Security.OAuthS2SAuthenticationModule.Authenticate(String%20challenge%2C%20WebRequest%20request%2C%20ICredentials%20credentials)%0A%20%20%20at%20System.Net.AuthenticationManagerDefault.Authenticate(String%20challenge%2C%20WebRequest%20request%2C%20ICredentials%20credentials)%0A%20%20%20at%20System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest%20httpWebRequest%2C%20ICredentials%20authInfo)%0A%20%20%20at%20System.Net.HttpWebRequest.CheckResubmitForAuth()%0A%20%20%20at%20System.Net.HttpWebRequest.CheckResubmit(Exception%26amp%3B%20e%2C%20Boolean%26amp%3B%20disableUpload)%0A%20%20%20at%20System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception%26amp%3B%20exception)%0A%20%20%20at%20System.Net.HttpWebRequest.ProcessResponse()%0A%20%20%20at%20System.Net.HttpWebRequest.SetResponse(CoreResponseData%20coreResponseData)%0A%20%20%20---%20End%20of%20inner%20exception%20stack%20trace%20---%0A%20%20%20at%20Microsoft.Workflow.Common.AsyncResult.End%5BTAsyncResult%5D(IAsyncResult%20result)%0A%20%20%20at%20Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext%20context%2C%20IAsyncResult%20result)%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20there%20any%20problems%20with%20the%20workflow%20engine%3F%20Is%20Microsoft%20aware%20of%20this%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2528162%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2528515%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20-%20SharePoint%20Designer%202013%20workflow%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2528515%22%20slang%3D%22en-US%22%3EI%20would%20recommend%20you%20to%20open%20a%20support%20ticket%20to%20understand%20what's%20happening.%20What's%20clear%20is%20that%20Microsoft%20has%20deprecated%20SPD%202013%20Workflows%3A%3CA%20href%3D%22https%3A%2F%2Fwww.crowcanyon.com%2Fblogs%2Fsharepoint-2013-workflows-retirement%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.crowcanyon.com%2Fblogs%2Fsharepoint-2013-workflows-retirement%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

Greetings! We have SharePoint Online sites with SharePoint Designer 2013 workflows at our customers. A lot of our customers experiencing workflow errors now: the workflows just stopped working and if you try to start a new one manually, its Status remains "Not Started". All the running workflows have the same error:

 

 

System.Net.WebException: The request was aborted: The request was canceled. ---> System.InvalidOperationException: Failed to fetch an access token from the token service. For details, see the inner exception. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.FetchAccessToken(Uri stsUri, String targetServiceAudience, String authenticatorToken, HttpWebRequest request, TimeSpan timeout, EventTraceActivity eventTraceActivity, TimeSpan& expirationDuration)
   --- End of inner exception stack trace ---
   at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.FetchAccessToken(Uri stsUri, String targetServiceAudience, String authenticatorToken, HttpWebRequest request, TimeSpan timeout, EventTraceActivity eventTraceActivity, TimeSpan& expirationDuration)
   at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.GetAccessTokenFromTokenService(OAuthS2SPrincipal client, OAuthS2SPrincipal targetServiceAudience, HttpWebRequest originalRequest, EventTraceActivity eventTraceActivity, TimeSpan& expirationDuration)
   at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.GetAuthorization(OAuthS2SAuthenticationChallenge[] bearerChallenges, HttpWebRequest request, EventTraceActivity eventTraceActivity)
   at Microsoft.Activities.Hosting.Security.OAuthS2SAuthenticationModule.AuthenticateInternal(String challenge, WebRequest request, OAuthS2SCredential credential, EventTraceActivity eventTraceActivity)
   at Microsoft.Activities.Hosting.Security.OAuthS2SAuthenticationModule.Authenticate(String challenge, WebRequest request, ICredentials credentials)
   at System.Net.AuthenticationManagerDefault.Authenticate(String challenge, WebRequest request, ICredentials credentials)
   at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
   at System.Net.HttpWebRequest.CheckResubmitForAuth()
   at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)
   at System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception& exception)
   at System.Net.HttpWebRequest.ProcessResponse()
   at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData)
   --- End of inner exception stack trace ---
   at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result) 

 

 

Are there any problems with the workflow engine? Is Microsoft aware of this issue?

 

Thank You! 

1 Reply
I would recommend you to open a support ticket to understand what's happening. What's clear is that Microsoft has deprecated SPD 2013 Workflows:https://www.crowcanyon.com/blogs/sharepoint-2013-workflows-retirement/