"The request failed with HTTP status 400" error when you integrate transactions using Microsoft Dynamics GP Web Services
This article provides a resolution for the issue that you can't integrate transactions by using Microsoft Dynamics GP Web Services.
Applies to: Microsoft Dynamics GP
Original KB number: 2960931
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:
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\ServiceConfigsAdd the
maxReceivedMessageSize
property to thebasicHttpBinding
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>
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for