SAP Knowledge Base Article - Public

2576271 - OData GET request client URL size limitation: 2 KB

Symptom

Status: Bad Request Status Code: 400 Query: /odata/v2/XXXX?

Reproducing the Issue

Run a GET request with  2048 or more characters against the OData API

Cause


Although OData itself does not set limitation regarding the length of a GET request being executed against the API, most clients have a limit to the length of the URL that can be passed to the server for example:

Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,048 characters. Internet Explorer also has a maximum path length of 2,048 characters. This limit applies to both POST request and GET request URLs.

Resolution

OData request that exceed 2,047 characters will fail due to client limitations. Reduce the size of the query URL to less than 2KB.

Keywords

400 error code, GET request, maximum length, too long, OData, API , KBA , LOD-SF-INT-ODATA , OData API Framework , OPU-GW-COR , Framework , Problem

Product

SAP SuccessFactors HCM Core 1711