Hi,
Environment: SharePoint Online Office 365 E3 Plan.
We are trying to run a very simple workflow on a document library. Workflow is created and run by the Site Collection Administrator. It has been configured to start automatically.
Stage:Stage 1
Log The workflow start to the workflow history list
Transition to stage
Go to End of Workflow
However when we see the status we find the following errors:
Workflow Information
Initiator: Admin Document: Ahmed Abdullah Labib
Started: 11/9/2014 4:00 PM Internal Status: Started
More status information
Suspend this workflow
Activity in progress
Retrying last request. Next attempt scheduled after 11/9/2014 4:18 PM. Details of last request: HTTP to https://partners.sharepoint.com/sites/aicc/_api/web/lists(guid'17fb384b-82ba-4c7e-a673-26f277546b70') Correlation Id: Instance Id: 96e0e510-9acb-4f23-8c80-bd6a2e2174cc
System.Net.WebException: The request was aborted: The request was canceled. ---> System.InvalidOperationException: Failed to fetch an access token from the token service. The token service returned an error type of 'invalid_client' with the following
description: ACS50027: JWT token is invalid.
Trace ID: 0b7240cb-c77e-4ce7-a2e0-1cd271770f22
Correlation ID: 0f2e0317-0c8e-403a-a807-633869dd3059
Timestamp: 2014-11-09 13:10:25Z ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
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.AuthenticationManager.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.HttpRequestWorkItemAsyncResult.End(IAsyncResult result, Int32& responseCode)
at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result)
Retry now
Last run: 11/9/2014 4:10 PM Status: Stage 1
==============
Thank you and
Regards
Tanzim
Tanzim Akhtar