"SharePoint 2013 workflow HTTP Unauthorized" error occurs
Problem
When you try to run a Microsoft SharePoint 2013 workflow in Microsoft SharePoint Online, you receive an error message that resembles the following:
Retrying last request. Next attempt scheduled after Date/Time. Details of last request: HTTP Unauthorized to SharePointSiteCollectionURL ...Correlation Id: CorrelationId Instance Id: InstanceId.
Cause
Currently, the SharePoint 2013 Workflow Service does not provide Trusted Network policy support, such as for IP address restrictions. When the Workflow 2013 makes a call to the Azure Workflow Service, the response is returned to SharePoint Online from a different IP address. This behavior triggers an access request restriction and causes the "unauthorized" error message that is mentioned in the "Symptoms" section.
Solution
To resolve this issue, follow these steps:
Go to your tenant administration:
Locate Access Control.
Under the Control access based on network location setting, clear the Only allow access from specific IP address locations check box.
Note
Currently, there are no persistent lists of the Microsoft 365 Azure Workflow Service endpoints to add to the Allow list.
More information
Still need help? Go to SharePoint Community.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for