Hello,
I have this issue with the workflow getting Suspended with HTTP 500 error as below
System.ApplicationException: HTTP 500 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["480"],"SPRequestGuid":["6a0e8293-c13a-7b88-8ca2-68beab5b03be"],"request-id":["6a0e8293-c13a-7b88-8ca2-68beab5b03be"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Tue, 20 Oct 2015 08:29:00 GMT"],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
Mainly the error is when I pass in the "WriteToHistory" or "CheckInComments" any special characters or if the text is long. So I know the issue but I don't know the solution.
For the special characters, it can be managed but for the text length this is a bit weird. Since I am able to add the same text through the UI with no issues. Example, I check in a document and add the same text and it is displayed and saved correctly.
Anyone has an idea about how to solve it since I need to use all the allowed text length in the "WriteToHistory" and "CheckInItem".
I also noticed the same when I set the SendEmail activity body to a String varaible. This String variable had to be split since it was giving the same issue.
Any ideas, thanks.