Skip to content
Bug Barometer

Deployments are completed, despite Fatal Error and rollbackOnError="true"

Salesforce closed this issue.

Summary

When you mark an existing field unique (i.e. through package install), that causes a custom index save as part of the deploy. CustomIndexObject does the actual index population in a postCommit hook, because it's potentially quite expensive. If this fails, the unique index is deleted, but the main transaction for the deployment is already committed and can't be rolled back (even if you have specified roll back on failure).

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Closed with 5 reports

    Nov 30, 2026

Also open in Uncategorized