Tax - Maximum Message Size Quota Has Been Exceeded

Tax - Maximum Message Size Quota Has Been Exceeded

You may receive the following message after running the Tax macro on an order with a lot of lines: "'The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.' At Line 0 Position 0"



To fix this, the <bindings> section of the web.config files needs the following bolded modifications, alongside whatever might already be there:
Notes
<bindings>
    <basicHttpBinding>
        <binding name="basicHttp" allowCookies="true"
                 maxReceivedMessageSize="20000000" 
                 maxBufferSize="20000000"
                 maxBufferPoolSize="20000000">
            <readerQuotas maxDepth="32" 
                     maxArrayLength="200000000"
                     maxStringContentLength="200000000"/>
        </binding>
    </basicHttpBinding>
</bindings>

Also verify that the binding name is in the endpoint configuration.
Notes
<client>
    <endpoint ... bindingConfiguration="basicHttp" />
</client>

Notes:
  1. "basicHttp" in this example is the name of the already-existing binding in the web.config. There should already be an existing binding in there--use that name.
  2. 200 million was chosen arbitrarily as a number greater than 65536. The drawbacks of having a larger limit is that there is more vulnerability to a DDOS attack, so that number can be adjusted as needed.

    • Related Articles

    • Common Macro Errors

      Summary: This KB will show the most common Issues and solutions to Errors when running Macros in Visual VBScript Standard Error This is a standard VBscript error, review the Visual ERP Macros and see what the end user has written, or may have broken. ...
    • Maximum Request Length Exceeded

      To correct this error, edit the "Web.config" in the root directory of Launchpad and add / edit the httpRuntime node to allow bigger file sizes to be uploaded: maxRequestLength is in KB executionTimeout is in seconds
    • WM-Synergy - Avalara Tax - Version Number

      Using Visual ERP From visual erp run Customer Maintenance->Macros->Tax Configuration The following dialog box will 'Avalara Tax Configuration' will show A window will appear with the current version number in the lower left corner. Send a screenshot ...
    • Avalara Sales Tax Calculation Returns $0

      Avalara Sales Tax Calculation Returns $0 Here is a list of items to verify when trying to figure out why the sales tax calculation returns $0: The Customer does not have “Use Avatax” checked in Customer Maintenance The Customer has ‘Tax Exempt’ ...
    • WM-Synergy - Avalara Tax Connector - Version Info

      To Find the version of Synergy Tax. Launch Visual Manufacturing Navigate to Sales > Customer Maintenance > Macros Menu >Tax Configuration The bottom of the Tax Configuration Screen will have the version number.