Error: Error in deserializing body of reply message for operation ..."

Error Message

Making a Web service call to the wmrest endpoint for getting workflow manager information can cause errors when the data returned is too large.

For example, http://<servername>/wmrest/services/<serverobject>/wmserver/reports/6/data returns the error {"error":{"code":500,"message":"Error in deserializing body of reply message for operation ..." because the data returned is larger than the server allows to return on this website.

The remaining part of the error message varies depending on the exact call the user is making.


The 'maxstringcontentlength' property of the web.config for the wmrest website has a value that is smaller than the data the server is returning.

Solution or Workaround

Increase the default parameters for the IIS settings to accomodate large numbers.

  1. Navigate to the wmrest folder under the wwwroot folder for IIS - C:\Inetpub\wwwroot.
  2. Open the web.config file in a text editor of your choice.
  3. Search for the string 'maxStringContentLength' and modify the value. A suggested value is 5000000.
  4. Save your changes and restart IIS.