Skip to main content
All CollectionsProblem analyzers
Flow Definitions can't be deleted
Flow Definitions can't be deleted

This analyzer identifies Flow Definitions that cannot be isolated and deleted through the metadata API

Catherine Bacon avatar
Written by Catherine Bacon
Updated over 6 months ago

This problem analyzer helps you deploy changes to Flow Definitions.

Note: With the release of Winter '19 (v44 of the metadata API), Salesforce has made major changes to how Flow and Flow Definitions are handled by the metadata API. See our support doc on the changes and how they affect you.

What triggers this analyzer?

If you include Flow Definition deletions in your deployment, this problem analyzer will be triggered.

What problem is it solving?

It isn't possible to delete flow definitions through the metadata API. If you try, your deployment will fail with the error insufficient access rights on cross-reference id.

How does it work?

Gearset's problem analyzers will remove these deletions from your deployment. You'll need to delete the flow itself to delete the flow definition.
โ€‹
โ€‹Delta CI note: If you are using a Delta CI job, any problem analyzers that remove items from the deployment package are not triggered.

Did this answer your question?