When an Account is referenced by a Gift Commitment, attempting to delete the Account is blocked with the error:
This account is referenced on gift commitments and can't be deleted.
When an Account is referenced only by a Gift Transaction (through the Donor lookup, DonorId), the Account deletes successfully and the Gift Transaction is retained with its Donor lookup cleared, leaving what appears to be an orphaned transaction.
Root cause:
DonorId, a lookup to Account) is required. On Gift Transaction, the Donor field (DonorId, a lookup to Account) is optional (nillable).DonorId and keeps the transaction.The two objects are not behaving inconsistently; the same lookup-delete rule is applied consistently to a required field versus an optional one. Field definitions were confirmed against the customer org (API v62): GiftTransaction.DonorId nillable = true, GiftCommitment.DonorId nillable = false, both with cascadeDelete = false and restrictedDelete = false. No custom triggers, flows, or validation rules are involved.
No fix is required; the behavior is by design. If you would prefer that deleting an Account be blocked when Gift Transactions reference it (rather than clearing the Donor lookup), change the delete behavior of the optional Donor lookup:
DonorId) field.This is a supported configuration option on an optional lookup and does not change the required/optional nature of the field itself.
005390226

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.