SharePoint Designer 2013 Workflow, HTTP 500 The remote server returned an error

Hi All,

A user reported an issue where a SharePoint Designer 2013 has been deployed to SharePoint server.    And when custom workflows Internal status is SUSPENDED and have the follows status:

Requestorid: <<GUID>> Details: An unhandled exception occurred during the execution of the workflow instance. Exception Details: System.ApplicationException: HTTP 500 The remote server returned an error: (500) Internal Server Error. We looked in Fiddler logs and we received a couple of HTTP/1.1 401 Unauthorized within Response Headers.

We created a simple Site Workflow reproduce the issue and used a SPD 2013. While publishing the workflow we got an error: Errors were found when compiling the workflow. The workflow files were saved but cannot be run. System.ServiceModel.ProtocolException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html>

<html>

  <head>

<title>Runtime Error</title> <meta name="viewport" content="width=device-width" /> <style>

  1.        We found that there is a MS article https://support.microsoft.com/en-us/kb/2557533?wa=wsignin1.0 that adjust the values as follows  [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $new_limit = 5000; $webapp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup(http://WebAppURL) $webapp.UserDefinedWorkflowMaximumComplexity = $new_limit $webapp.Update()
  2.        http://summit7systems.com/workflow-2013-starts-and-then-immediately-cancels/

What we have noticed that it looks a permission for a that web application thats why its Workflow are not working.

Any suggestions would be greatly appreciated.

Thank you.

June 17th, 2015 3:12pm

Hi All, 

Workflow Manager and workflows worked well a month ago. 
Due to some change the SharePoint Application Server, (that hosts Workflow manager), was renamed using rename-spserver commandlet due to some issue. 

Q Does renaming  SharePoint server breaks workflow engine?  
TechNet has procedure to Leave the farm workflow. 

https://msdn.microsoft.com/en-us/library/jj193527%28v=azure.10%29.aspx?f=255&MSPPError=-2147217396 

We followed the troubleshooting steps http://blogs.msdn.com/b/laleh/archive/2014/09/03/sharepoint-2013-workflow-troublehsooting.aspx 

and Workflow status RUNNING status. 

Any help would be appreciated.  

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 11:18pm

Hi Sandy,

Is your workflow manager server using http or https? If it is https, since you have renamed the server, the SSL certificate must be replaced as well. After this, please register your workflow again.

Thanks,
Reken Liu

July 27th, 2015 11:14am

Hi Reken, 

Thanks for your reply. Production SharePoint 2013 is using HTTPS for Workflow. 
The Server again renamed. 

1. Initial server name AppsPrd01 to AppsPrd01.contoso.com
Workflow stopped for SharePoint 2013 workflow after that. We tried to re-register the Workflow service but it did not work. 

2.  renamed again from AppsPrd01.contoso.com to AppsPrd01 and re-register the Workflow service but it did not work. 

On the  Application Server, Central Administration >> Security >> Manage Trust has Workflow WorkoutBound Certificate. It looks we have to update the WorkflowBound Certificate. 

We referred to this entry: http://blogs.msdn.com/b/feseca/archive/2014/09/23/how-to-update-outboundcertificate-in-workflow-manager-and-sharepoint.aspx 

How we can deploy a new WorkoutBound Certificate? 
Any other thing we should consider as we thinking reconfigure workflow manager.

Thanks in advance.

Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2015 2:09am

Hi Sandy,

Sorry about the delay. Here's the article about installing a new Workflow certificate in SharePoint https://technet.microsoft.com/en-us/library/JJ658589.aspx.

When you update the certificate for workflow manager, please update both workflow manager and SharePoint sides.

Thanks,
Reken Liu

August 16th, 2015 11:34pm

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

Other recent topics Other recent topics