Due to scheduled maintenance, some areas of our site are currently inaccessible. Thank you for your patience.

Please reach out to sales@eonesolutions.com with any questions.

Back

Error 400 Bad request when using the Excel 2013 or above AddIn

Published: Feb 10, 2015
Post Author Written by David Youngquist

Running a map via the Excel AddIn returns an “Error 400 bad request”. Typically the symptoms only occur when sending a large amount of data, when sending smaller files you do not receive the error.


If you are regularly sending large amounts of data in via the SmartConnect WCF service, you can makes some modifications to the Web.config file to allow for larger transactions. To do this perform the following steps.

1. On the machine that is hosting the SmartConnect WCF service, browse to the following directory.

On a 32 bit machine go here: C:Program FileseOne Solutionswcf

On a 64 bit machine go here: C:Program Files (x86)eOne Solutionswcf

2. Open the web.config file located in that directory using Notepad or some other text editor.

3. Find the section that looks like this:

<webHttpBinding>
<binding>
<readerQuotas maxStringContentLength=”2147483647″></readerQuotas>
</binding>
</webHttpBinding>

4. Replace that section with the following:

<webHttpBinding>
  <binding maxBufferSize=”2147483647″ maxReceivedMessageSize=”2147483647″ maxBufferPoolSize=”2147483647″>
<readerQuotas maxDepth=”2147483647″ maxStringContentLength=”2147483647″ maxArrayLength=”2147483647″ maxBytesPerRead=”2147483647″ />
<security mode=”None”/>
 </binding>
</webHttpBinding>

NOTE: When you copy the above statement you may end up with accented quotes, which will cause problems.  We recommend copying and pasting the text into Notepad, and then erasing the double quotes and retyping them in Notepad which will put them in the correct format.   Click Web Config Modifications to download a notepad document with the changes in it. You can copy and paste the text from this Notepad document.  

5. Save and close the web.config file. Then in Internet Information Services Manager (IIS) highlight the SmartConnectWcf website and click on the “Restart” icon on the far right side of the page.

You now should be able to process larger transactions using the SmartConnect Excel 2013 AddIn.

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.