Hi!
We have an entity type named Asset. We have over 17k Assets, and I want to get all of them.
Im using the api to get all the Assets, but when the offset hits 10 000, I get an error.
GET {{URL}}reltio/api/{{tenantID}}/entities?filter=(equals(type, 'configuration/entityTypes/Asset'))&offset=10000&max=200
{
"severity": "Error",
"errorMessage": "Internal application error.",
"errorCode": 2001,
"errorDetailMessage": "Internal application exception caught during executing operation Result window is too large, offset + max should be less or equal to 10000. Please view application log for details",
"innerErrorData": {
"exception": "com.reltio.metadata.errors.CommonException:Code: INTERNAL_SERVER_ERROR; Message parameters: [Result window is too large, offset + max should be less or equal to 10000]. Internal application error.. Internal application exception caught during executing operation Result window is too large, offset + max should be less or equal to 10000. Please view application log for details at com.reltio.search.CommonSearchAdapter.getSearchRequestBuilder, line 205"
}
}
What is the best practice to get all the entities of a type?