SharePoint online 2013 workflow

Wolfe, Thomas 76 Reputation points
2020-11-13T23:58:23.32+00:00

I tried creating a simple 2013 SharePoint Designer workflow in a SharePoint online site that sends an email, but I receive this error message when it runs

Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP to https://rivcounty.sharepoint.com/teams/tlma/suse/_api/web/lists(guid'0109da6d-2f73-4a3a-966b-58d0a94e1552') Correlation Id: Instance Id: 42c348c2-11f2-4a70-a3e2-9da87d6a539f

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 'unauthorized_client' with the following description: AADSTS7000112: Application 'd770d07e-6791-4709-9840-2234b3d25316'(Workflow) is disabled.
Trace ID: 5557b05c-63c6-43cb-b9a5-6ebd6aa31a01
Correlation ID: d8af1319-cb29-c7ea-adde-ce0070dc9abd
Timestamp: 2020-11-13 23:22:29Z ---> 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.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.EndTAsyncResult
at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result)
Retry now

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,827 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Itch Sun-MSFT 2,556 Reputation points
    2020-11-16T06:45:37.257+00:00

    Hi @Wolfe, Thomas

    Please refer to the steps below:

    1.In the site from which the workflow is running, open the Site Settings.
    2.Under Users and Permissions, navigate to People and groups.
    3.From the groups on the left-hand side of the window, select the SharePoint group where the email is being sent.
    4.Select Settings at the top of the group list, and then select Group Settings from the drop-down menu.
    5.Change Who can view the membership of the group? from Group Members to Everyone.
    6.Click OK.
    7.Run the workflow again.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Wolfe, Thomas 76 Reputation points
    2021-01-20T18:56:23.09+00:00

    I deactivated and activated the Workflows can use app permissions site feature and it starting working

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.