Question:
Why is the Address Inheritance Apex Job (VEEVA_BATCH_CHILD_ACCOUNT_PUSH) not copying the Parent Address to the Child Account?
Answer:
Multiple things can cause this problem, one of them is the following:
An incorrect Child Account record exists that has the correct Address, but has an empty Child Account field. It is then causing an error for the Address where the Account field is missing for the upsert of addresses.
Populating the Child Account field on the Child Account record should resolve the issue.
Note: A debug log can be recorded for the user who runs the Address Inheritance job to find the incorrect record causing the error. In this case, an EXCEPTION_THROWN error should be present, similar to the following:
EXCEPTION_THROWN|[234]|System.DmlException: Upsert failed. First exception on row 8; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [<field name>]: [<field name>]
This error gives an indication of which field is causing the issue.
Related Documentation:
CRM Online Help: Enabling Address Inheritance Support