My Oracle Support Banner

REST Call Using "limit" Parameter In The URL Returns With Error "400 Bad Request - URL request parameter limit cannot be used in this context." (Doc ID 2778600.1)

Last updated on OCTOBER 13, 2023

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


The Application Module of an ADF application exposes its Business Object CRUD operations through REST endpoints based upon the corresponding View Object.

When deploying the application on an ADF setup, the user can use the following endpoints successfully

1. http://<HOST>:<PORT>/<APPLICATION ROOT CONTEXT>/rest/<VERSION>/<BO>?limit=20          ----> returns the first 20 REST resources for the given <BO>
2. http://<HOST>:<PORT>/<APPLICATION ROOT CONTEXT>/rest/<VERSION>/<BO>/<ID>              ----> returns the resource with the given <ID>
3. http://<HOST>:<PORT>/<APPLICATION ROOT CONTEXT>/rest/<VERSION>/<BO>/<ID>?limit=20 ----> returns the resource with the given <ID>

After migrating the application to an ADF setup, the scenario 3. above fails with the following error

400 Bad Request - URL request parameter limit cannot be used in this context.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.