Question

OData $filter size

  • 15 December 2023
  • 2 replies
  • 54 views

Badge

Hey there,

is there a size limit for the $filter clause in OData requests?

Thanks,

Thorsten


2 replies

Userlevel 3
Badge +8

Not that I know of. You could use GitHub - bodia-uz/odata-filter-builder: OData Filter Builder

or review http://docs.oasis-open.org/ for $filter 

 

Note : javascript - Building OData $filter URLs with an Angular provider - Stack Overflow

 

Userlevel 7
Badge +20

Hi @ThorstenHerrmann,

 

There’s no limit for OData request filter criteria as far as I aware but it could be limited by the URL size set by the application server/firewall

For example, I’ve noticed IFS throws HTTP 414, Request-URI Too Large error for large Odata filter requests.

Solution for this is to use batch requests and add the odata filter condition inside the batch request body.

Hope it helps!

 

 

Reply