function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dgrokosdgrokos 

ERROR: retrieve id limit reached

Has anybody seen this error? Is there a maximum number of id's that can be retreived?

GetUpdatedResult mr = binding.getUpdated("Contact", (Calendar)cal, (Calendar)calEnd);

Thanks!
Mark
DevAngelDevAngel
Hi dgrokos,

I reckon there is some physical limit that is very high. I like to use a query on SystemModStamp rather than getUpdated. I would take a look at re-implementing getUpdated with your own function that uses a query to do the same thing. The advantage is that you can queryMore till the cows come home (or you reach the end of the updated records).
SuperfellSuperfell
Are you sure you got that error from that line and not from a subsuequent call to retrieve ? retrieve has a 2000 id limit, so if the getUpdated call returns more than 2000 ids, you need to chunk the call to retrieve passing it 2000 at a time.