Salesforce is updating the format and length of the nextBatchId returned by Data 360 Query Service v2 for both the Connect API and Direct API. Client applications that parse or depend on the structure of the current UUID-based nextBatchId must be updated to treat this value as an opaque string to avoid failures when retrieving subsequent data batches.
Data 360 Query Service v2 supports paginated data retrieval via two endpoints:
When a customer initiates a POST call to retrieve data and additional chunks are available, the API response includes a nextBatchId. This ID is then passed in a follow-up GET call to retrieve the subsequent data batch.
What is Changing?
Currently, the nextBatchId is a UUID (Universally Unique Identifier). With this update, the nextBatchId format changes to a combination of the query ID and chunk ID, which increases its length. The new format resembles a structure like query-id_chunkCount.
Previous format : 2c55b4dc-df7e-e1bd-d346-e1395085d5d9
Example of the New FormatMTAuMjIuNDguODY6NzQ4NA_2c55b4dc-df7e-e1bd-d346-e1395085d5d9_1 (for the 1st chunk)
Why is Salesforce Making This Change?
The current implementation uses a distributed cache to store batch details against the nextBatchId. This adds significant operational overhead and Cost to Serve. By updating the nextBatchId format, Salesforce moves toward a stateless parsing model, which eliminates the cache from this flow.
To avoid disruption to data retrieval, customers must review and update their client applications before this change takes effect.
nextBatchId as an opaque string. Do not parse, inspect, or make assumptions about the format, length, or structure of the nextBatchId value.nextBatchIdnextBatchIdnextBatchId are expected to break when this change is released.
If customers do not take action, they will experience failures when attempting to retrieve subsequent data chunks, as their applications will fail to resolve the new nextBatchId structure. This will result in an inability to fetch complete datasets, leading to data discrepancies.
Note: Only applications with custom logic that reads or parses the nextBatchId value are affected. If your application already treats nextBatchId as an opaque string, no changes are required.
005384667

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.