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.
This issue occurs because a time-out or limitation is being encountered on the integrations that contain a large number of distribution records.
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:
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
Add the maxReceivedMessageSize property to the basicHttpBinding node on the binding name line as shown in the following text:
<!-- change maxReceivedMessageSize to 2147483647 from 128896-->
<binding name="BasicHttpBindingTarget" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
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.