+ Start a Discussion
GlennWGlennW 

Maximum size of Id array for a retrieve call

What is the maximum size for an Id array when making a retrieve call?

I found out that if you send in an array with 2207 Account Id's you get the soap error:

"EXCEEDED_ID_LIMIT_ON_RETRIEVE: retrieve id limit reached"

Cheers;
GlennW

DevAngelDevAngel
2000, both for retrieve and the max batch size for query.
GlennWGlennW

Dave;

Is this a constant 2000 or is it controlled by the QueryOptionsValue.batchSize?

Cheers
GlennW

 

DevAngelDevAngel

Hi Glenn,

The QueryOptions value is only applicable to the query call.  The retrieve call is not modifiable.

Curtis ParisCurtis Paris
Does this apply to getUpdates() as well?  Will the GetUpdatedResult.getIds() only return 2000 (or QueryOptions.setBatchSize) max?