Symptoms

When you use Microsoft Dynamics GP Web Services to integrate a large number of transactions that contain many distributions, you receive the following error message:

The request failed with HTTP status 400: Bad Request.

Cause

This issue occurs because a time-out or limitation is being encountered on the integrations that contain a large number of distribution records. 

Resolution

To resolve this issue, you can adjust the maximum message size quota (maxReceivedMessageSize) in the configurator file. To do this, you can modify the WSBindings.config file as follows:

  1. Navigate to the WSBindings.config file in the GPwebservices\ServiceConfigs folder, and open it with Notepad.

    Note The default path is:

    C:\Program Files\Microsoft Dynamics\GPWebServices\ServiceConfigs

  2. Add the maxReceivedMessageSize property to the basicHttpBinding node on the binding name line as shown in the following text:

    <basicHttpBinding>
    <!-- change maxReceivedMessageSize to 2147483647 from 128896-->
    <binding name="BasicHttpBindingTarget" maxReceivedMessageSize="2147483647">
    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
    <security mode="TransportCredentialOnly">
    <transport clientCredentialType="Ntlm"/>
    </security>
    </binding>
    </basicHttpBinding>
  3. After you make the change and then save the modified configurator file, restart the web service, and then test another integration that has a large number of distributions.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Any additional feedback? (Optional)

Thank you for your feedback!

×