Skip to main content
Solved

API error "Form key or value length limit 2048 exceeded"

  • December 19, 2024
  • 3 replies
  • 82 views

I am calling a REST API and receiving the error “Form key or value length limit 2048 exceeded”.

The body of the request is about 75KB.

This seems to be controlled by a setting in IIS. Is there anything I can do to get around this?

 

Best answer by jinin

Hi ​@michael pearson ,

Could you please try adjusting the web.config file to modify the request limit?

<requestLimits maxQueryString="20480" maxAllowedContentLength="104857600" />

View original
Did this topic help you find an answer to your question?

3 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • Answer
  • December 19, 2024

Hi ​@michael pearson ,

Could you please try adjusting the web.config file to modify the request limit?

<requestLimits maxQueryString="20480" maxAllowedContentLength="104857600" />


My instance is Acumatica hosted SaaS.

I suppose I will have to contact Acumatica support to do this.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • December 19, 2024

Sure, ​@michael pearson 

 If your request retrieves a large number of records, split the request into smaller chunks using $skip and $top.

Example - entity/Default/22.200.001/Customer?$top=10&$skip=0

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings