The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Resolve Retrieve Call Errors

This page contains information about resolving errors during a Retrieve call.

You can eliminate the cause of these errors preventing you from correctly performing calls using the Retrieve method.

When performing a Retrieve call (usually on the Email object), you may see the following exception:

Error in deserializing body of reply message for operation 'Retrieve'

To resolve this exception, increase the maxStringContentLength within the readerQuotas configuration for your customBinding from the default of 8192 to account for the large tag content for the HTMLBody. Integrate the following into your web.config/app.config to resolve this error: