All Collections
Troubleshooting
Salesforce validation errors
Resolving validation errors - "CustomApplication - You specified one or more duplicate ProfileActionOverride values."
Resolving validation errors - "CustomApplication - You specified one or more duplicate ProfileActionOverride values."

Validation fails due to this error "CustomApplication - You specified one or more duplicate ProfileActionOverride values."

Jacob Joshua avatar
Written by Jacob Joshua
Updated over a week ago

Explanation of the error:

This Salesforce error "CustomApplication - You specified one or more duplicate ProfileActionOverride values.", is shown because there are duplicate values of ProfileActionOverride present in the XML.

Resolution:

Often times there are so many duplicates that you may need to edit the XML in one of the ways as mentioned below to find the duplicates and remove them.

  • Copy the XML from diff viewer in the comparison.

  • Search Google for an XML to CSV converter.

  • Paste the XML and remove the lines just below the first line until the <profileActionOverrides> starts and same in the end of the XML as well. Click convert.

  • After converting, open it using an Excel/Google sheet.

  • We have selected Google sheets and then selected Split text to columns to separate the items as shown above.

  • After separating, we have selected Data clean-up - Clean-up suggestions

  • This is showing me the duplicates which were causing the issues.

  • Once done, you can convert this back from CSV to XML using a converter.

Once the duplications have been found you have 2 options.

  1. Remove the duplicate XML directly in your repo.

  2. Follow this guide on how to change the deployment package, to remove any of those duplicates.

Possible reasons but not limited to these; where duplicates can be added such as Git merge. If user updates or reordered on two different branches which may not be a merge conflict in Git but can bring in two copies of one of them. Also if the user accepts both sides to a merge conflict can also bring duplicates.

Further examples of this Salesforce validation error can be found here:

Disclaimer: This error is returned by Salesforce directly, rather than Gearset. Even so, we offer guidance based on our combined experience with the Metadata API. Where possible, we try to help guide you to fix or avoid this error. In the case that this isn't possible, we may need to direct you to Salesforce support for further clarification.

Did this answer your question?