Skip to main content

Resolving validation errors - "In field: excludeButtons, no such standard action:CreateSalesSummaries"

Cause and solution to this Salesforce validation error surfaced on Layout metadata

Written by Cecilia Califano

Note: Gearset has released a problem analyzer called "Exclude create sales summaries" that automatically removes this reference from your deployment package, so most deployments hitting this error no longer need any manual XML edit.

This problem analyzer is enabled by default, and it fires even when the exclusion is unchanged and already present in both source and target. You can check or turn it off from your team's Problem analyzer templates. If it's switched off, or you'd rather make the change yourself, the manual steps below are still available.

Error overview

This is a validation error that is caused by the CreateSalesSummaries button being deprecated by Salesforce.

The CreateSalesSummary button was retired in the Spring '25 release since Salesforce removed this feature. The error surfaces because a reference to this deprecated button still exists in one of the items being deployed.

This Salesforce validation error is highly likely to be surfacing in the Layout metadata types with the specific error returned being:

In field: excludeButtons, no such standard action:CreateSalesSummaries

Note: It is possible for similar errors related to CreateSalesSummaries to be surfaced in other metadata types with different validation errors returned, in those cases the cause for the validation error is still most likely that the object is referencing CreateSalesSummaries somewhere.

Example of the error in Gearset:

Resolution

Gearset can now do this for you automatically, using the Exclude create sales summaries problem analyzer. If you'd rather make the change yourself, or need to for another reason, follow these steps to remove the reference:

  1. Retrieve the affected page layout metadata from your org.

  2. In the layout XML file, locate and remove the following line: <excludeButtons>CreateSalesSummaries</excludeButtons>

  3. Deploy the updated metadata back to the org using Gearset.

After this deployment is completed, the error should no longer surface.

This can be done in a couple of different ways, the simplest way in Gearset would be following the article on how to change the deployment package to remove the reference to CreateSalesSummaries from the Layout object.

After that is done you can do a Compare and deploy with your source being the edited deployment package and the target being the org you want to update with this removed reference.

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?