Newer Version Available
Overflow Events
The first 100,000 changes generate change events. The set of changes beyond that amount generates one overflow event for each entity type included in that set. An overflow event is generated when a single transaction contains more than 100,000 changes. An overflow event contains only header fields. The changeType field header value is GAP_OVERFLOW instead of the specific type of change. The object type corresponding to the change is in the entityName field. An overflow event doesn’t include details about the change, such as the record fields or record ID.
A record creation, deletion, or undeletion counts as one change toward the threshold. In a record update, each field change counts toward the overflow threshold. For example, if three field values are modified in one record update, they count as three operations against the overflow threshold.
Transactions with a high volume of operations aren’t frequent, but they can occur in certain situations, such as for a recurring event with hundreds of occurrences and attendees. Another example is a cascade delete of accounts associated with many opportunities, contacts, and activities that results in deleting many more records in the same transaction. If the cascade delete results in the deletion of 120,000 account, opportunity, contact, and activity records in the same transaction, the deletions of the first 100,000 records generate delete change events. The remaining 20,000 records generate one overflow event for each unique entity.
For more information about handling overflow events, see How to Handle an Overflow Event in Transaction-Based Replication Steps.
Example
This overflow event is for an account and contains information about the change in the header. The change type is GAP_OVERFLOW. The record ID for the change is always set to 000000000000000AAA, which is the empty record ID.
1{
2 "ChangeEventHeader": {
3 "entityName": "Account",
4 "recordIds": [
5 "000000000000000AAA"
6 ],
7 "changeType": "GAP_OVERFLOW",
8 "changeOrigin": "com/salesforce/api/soap/61.0;client=Workbench/",
9 "transactionKey": "000a5148-405c-21fe-86ce-03205d7404ad",
10 "sequenceNumber": 6,
11 "commitTimestamp": 1714417568000,
12 "commitNumber": 72784848482,
13 "commitUser": "005ZM000000M6o1YAC",
14 "nulledFields": [],
15 "diffFields": [],
16 "changedFields": []
17 },
18 "Name": null,
19 "Type": null,
20 "ParentId": null,
21 "BillingAddress": null,
22 "ShippingAddress": null,
23 "Phone": null,
24 "Fax": null,
25 "AccountNumber": null,
26 "Website": null,
27 "Sic": null,
28 "Industry": null,
29 "AnnualRevenue": null,
30 "NumberOfEmployees": null,
31 "Ownership": null,
32 "TickerSymbol": null,
33 "Description": null,
34 "Rating": null,
35 "Site": null,
36 "OwnerId": null,
37 "CreatedDate": null,
38 "CreatedById": null,
39 "LastModifiedDate": null,
40 "LastModifiedById": null,
41 "Jigsaw": null,
42 "JigsawCompanyId": null,
43 "AccountSource": null,
44 "SicDesc": null,
45 "External_Account_ID__c": null
46}