Tuesday 24 January 2017

ADF - Too many matching records found. Specify additional criteria to limit the number of records

The exception occurs when we try to fetch the number of records greater than the row limit mentioned.

RowLimit might have been set at application level in your adf-config.xml file.




This row limit will be applied to all view objects in ADF application, to resolve this the developer can change this row limit.

If we want one specific ViewObject fetching records more than the row limit, we need to override getRowLimit method in ViewObjectImpl class.

@Overrirde
protected long getRowLimit() {
     return -1;
}

Another check you can do at your iterator binding of your jsff pageDef, make sure RangeSize must have been defined.


*Comments and feedback are most welcomed, Thanks.