---
schema_version: "1"
id: 64918438fe65243397905d37b1bca4b95afc13c0e2dd1b43cee182b8264afc87
title: Resolve Retrieve Call Errors
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/resolving_retrieve_call_errors.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/resolving_retrieve_call_errors.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5ca0f3c49f728d90320e1ce7d84717a047b7634b6983f7340a8ecadd48b19c68
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Resolve Retrieve Call Errors

This page contains information about resolving errors during a Retrieve call.

## Why Resolve Retrieve Call Errors

You can eliminate the cause of these errors preventing you from correctly performing calls using the Retrieve method.

## How to Resolve Retrieve Call Errors

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:

```xml
<customBinding>
<binding name="SoapBinding" closeTimeout="00:35:00" openTimeout="00:35:00"
    receiveTimeout="00:35:00" sendTimeout="00:35:00">
    <security authenticationMode="UserNameOverTransport"></security>
        <textMessageEncoding messageVersion="Soap12WSAddressingAugust2004">
        <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
            maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"              />
        </textMessageEncoding>
    <httpsTransport maxReceivedMessageSize="655360000"></httpsTransport>
</binding>
</customBinding>

```

## Related Items

- [Retrieve Method](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/retrieve.md)
- [Email Object](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/email.md)
