Error 401 when start a workflow

Hi, 

I have a development environment that I installed the Workflow Manager and yours dependencies. The SharePoint 2013 and database are in the same server.

I have two Webapps in my server. In First, the main webapp, I can't start the workflow. I created other webapp to test the workflow and in the second webapp the workflow works. But, I need to use the first webapp.

1. User profile synchronization is started.
2. The user that I am logged is available in User Profile list.

3. All workflow manager and service bus services are running .

4. The workflow works in other webapp


I saw in DebugTraces table of WFInstanceManagementDB4 database and there are some errors (webapp with problem):

InstanceId	RecordNumber	Message	CreationTime	GroupId	Level	Name	Category
56A663C0-CDBB-495F-9219-EF52D7C6A71B	15	Attempt 6 of the HTTP request to 'http://vm-test:8080/_vti_bin/client.svc/web/lists/getbyid(guid'75cbdff0-919a-4401-9cf4-6889546bb0c1')' will be made in 00:00:21.	2014-03-03 04:25:33.910	19A37A81-21D8-4AE6-AC9E-F240885355EB	2	HttpRequestRetrying	Http
56A663C0-CDBB-495F-9219-EF52D7C6A71B	16	Attempt 6 of the HTTP request to 'http://vm-test:8080/_vti_bin/client.svc/web/lists/getbyid(guid'75cbdff0-919a-4401-9cf4-6889546bb0c1')' failed with response '401'.	2014-03-03 04:25:54.910	19A37A81-21D8-4AE6-AC9E-F240885355EB	2	HttpRequestFailed	Http

I am using the HTTPDebuggerPro and there are some 401 errors:

URL User Application Method Status
1 http://vm-test:8080/naturadoc/_vti_bin/client.svc/ProcessQuery Unknown Unknown *32 POST 401
2 http://vm-test:8080/naturadoc/_vti_bin/client.svc/ProcessQuery Unknown Unknown *32 POST  
3 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas srv_test w3wp.exe *32 POST 401
4 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas Unknown Unknown *32 POST 401
5 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas srv_test w3wp.exe *32 POST  
6 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas Unknown Unknown *32 POST  
7 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas srv_test w3wp.exe *32 POST 401
8 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas Unknown Unknown *32 POST 401
9 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas srv_test w3wp.exe *32 POST  
10 http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas Unknown Unknown *32 POST  

Help me please!!!

March 3rd, 2014 7:07am

Hi,

I understand that you failed to start workflow.

Please make sure you have created profiles for your service accounts, and make sure that the User Profile Service is associated with the "default" Application Proxy Group.

In addition, I recommend to use another account to start the workflow to check whether it caused by the account.

More information:

http://community.rightpoint.com/blogs/viewpoint/archive/2013/07/11/sharepoint-2013-quick-tips-workflow-and-the-user-profile-service.aspx

Best Regards,

Linda Li

Free Windows Admin Tool Kit Click here and download it now
March 4th, 2014 3:54am

Hi Linda,

Though this is an old post, I'm currently facing the exact issue.

We have several web applications in the farm and I've tested the workflows in two web applications. One works and the other failed with 401 error, even when the workflow was started using the SharePoint Admin account.

RequestorId: c231852e-ebfe-e837-0000-000000000000. Details: RequestorId: c231852e-ebfe-e837-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["c231852e-ebfe-e837-a7ca-2d48b43d07c3"],"request-id":["c231852e-ebfe-e837-a7ca-2d48b43d07c3"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"Cache-Control":["max-age=0, private"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["Negotiate","NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Date":["Thu, 03 Sep 2015 03:51:51 GMT"]}   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)

Both web applications uses the same application pool. User Profile Application Service Proxy is in the 'default' Application proxy Group.

What else can cause the 401 error?

Regards
Conway

September 3rd, 2015 12:13am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics