Loading

"Invalid Cross Reference ID" Error During Action Plan Template Deployment

Date de publication: Oct 30, 2024
Description

When attempting to deploy an action plan template that is in published status to target environment,  encounters the error "invalid cross reference ID." However, the validation deployment of the same action plan template might be  successful in a different sandbox environment.

Résolution
  1. Run the following query for the action plan template that is encountering deployment issues.
    SELECT ActionPlanTemplate, CreatedById, CreatedDate, DeveloperName,Id,  IsDeleted, Language, LastModifiedById,  LastModifiedDate, MasterLabel, NamespacePrefix, SystemModstamp FROM
    ActionPlanTmplPkgConfig WHERE DeveloperName= '<API NAME'> 
    (Example: Review_Analysis_of_Information_1bb03759_4fb6_11ef_acfb_dd0ae01d21b4)
  2. The target org had a stale / incorrect reference in the ActionPlanTmplPkgConfig object which made the org think that there already was a version of this APT.  Since versioning is not supported for ACT records and there are existing "ActionPlanTmplPkgConfig" references, the deployment is failing with the error "INVALID CROSS REFERENCE ID."

    To resolve this issue,  Follow these steps:

    a. Locate the specific "ActionPlanTmplPkgConfig" records that matches the devName, for example,
    " Review_Analysis_of_Information_1bb03759_4fb6_11ef_acfb_dd0ae01d21b4"
    b. Delete this record from your org.


    Validation and deployment can now proceed. ActionPlanTmplPkgConfig record will be recreated once deployed.
Numéro d’article de la base de connaissances

003283026

 
Chargement
Salesforce Help | Article