The nightly Donor Gift Summary batch (a Data Processing Engine recipe) completes with a Completed status, but a fixed number of writeback records fail with:
invalid cross reference id
In the reported case, the recipe calculated 8,086 donor summaries; 7,721 wrote successfully and 365 failed. The org contained exactly 7,721 existing Donor Gift Summary records, so the 365 failures correspond one-to-one with donors who have no existing summary record.
Root cause:
Common data-related causes were ruled out: no recently deleted or merged donor accounts, no summaries pointing at a deleted campaign, and nothing in the Donor Gift Summary recycle bin.
Change the writeback step so new donors are inserted and existing donors are updated in one pass. The Upsert approach is the cleanest fix:
After this change, the next run updates existing summaries and inserts the new ones in the same pass, with no failures. Once Upsert is in place, the separate Insert node becomes redundant (it processes 0 rows); it can be left in place or removed later.
Alternative: keep the Insert and Update nodes separate and repair the branch logic so summaries with no matching existing record are routed to the Insert node instead of the Update node. Upsert is the simpler path.
Note: a forced/manual run may complete with zero failures if the timing changes which records exist; confirm which scheduled run produced the failures when comparing results.
005390228

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.