Skip to main content

When deploying PersonAccount rules, this is the error received. 

Account.Person_Account_Warning_LN_Address of Type failed to deploy due to An object 'Account.Person_Account_Warning_LN_Address' of type DuplicateRule was named in package.xml, but was not found in zipped directory  

 

Has anyone found a solution to fix this? 

 

#DevOps Center  #Deployment

2 件の回答
  1. 10月27日 10:57

    Hi @Harsha Shashikanth

    This error may occur when the DuplicateRule is referenced in package.xml but its corresponding metadata file is missing from the deployment package.

    I would recommend trying the following steps:

    1. Verify that Person_Account_Warning_LN_Address exists in the source org under Setup → Duplicate Rules.
    2. Retrieve the duplicate rule again from the source org and confirm that its metadata file is present in the project.
    3. Check that the duplicate rule is correctly referenced in package.xml and that its API name matches the metadata file.
    4. Review your .forceignore file to ensure that the duplicateRules directory or its metadata files are not being excluded.
    5. Refresh or synchronize the DevOps Center work item with the source branch and verify that the duplicate rule is included in the deployment package.
    6. If the issue persists, try retrieving and deploying the duplicate rule separately using Salesforce CLI to determine whether the problem is specific to DevOps Center.

    Also, check whether the target org has Person Accounts enabled and whether the required matching rules and duplicate rules are available.

    Official references:

    I hope this helps! If you find this answer helpful, please select it as the Best Answer. 

     

    Thank, 

    Deepak Sachdeva 

    Nubys Technology Pvt. Ltd.

0/9000