Skip to main content
Nintex Community Menu Bar
Question

Limits on OData post size

  • March 5, 2025
  • 1 reply
  • 38 views
  • Translate

Forum|alt.badge.img

Hi,

I am using Nintex K2 Cloud.

I have configured a Smartobject that takes 3 inputs and added it as one of the available Smartobjects on the Smartobject OData api page.

The Smartobject uses a SQL server stored procedure to save data to a table. It has 3 parameters JSON nvarchar(max), filename nvarchar(200) and base64file nvarchar(max).

The nvarchar(max) fields are configured as Memo in the smart object. The base64file value is a file that has been base 64 encoded.

When testing the OData endpoint from postman it works perfectly when I use an encoded 400kb file, but I get an error when using an 840kb file : 

{

    "error": {

        "code": "",

        "message": "Error reading HTTP body."

    }

}

The 840kb file is 1.1mb when it is base 64 encoded.

I suspect that there is a post size limit configured for the K2 OData implementation but I can find no documentation as to what that might be. From what I can find on the internet I can see that OData services typically have a limit of somewhere between 2 and 10Mb which is determined by the server implementation. What is the size limit for K2 OData?

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

1 reply

Forum|alt.badge.img+10
  • Nintex Employee
  • 192 replies
  • March 31, 2025

If you are able to upload smaller file, but it doesn’t work with larger files, perhaps you can try adding and increasing the web.config file limits.

 

I believe Odata web.config file is usually at (depends on version of odata that you are using), i.e.:

C:\Program Files\K2\WebServices\API\SmartObjectService.OData.v4

 

Back up the web.config file and try adding and setting the maxRequestLength and/or maxAllowedContentLength limits as per:

https://stackoverflow.com/questions/288612/how-to-increase-the-max-upload-file-size-in-asp-net

Translate

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