Do not include flows without version number suffix in destructive changes #3402
Damecek
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The
sf project deploy startcommand currently fails an entire deployment if a Flow should be deleted in the target org and cannot be deleted due to platform limitations (Known Issue W-10538057). This behavior blocks CI/CD pipelines, as a common scenario is removing a flow from a Git repository, which then gets added to the destructive manifest.This is a feature request to ignore destructive changes on flows for the
sf project deploy startcommand and or to not include them in destructive changes duringsf project retrieve start. It is possible that there is more metadata which cannot be deleted via Metadata API.Steps To Reproduce
sf project generate -n ignore-flow-test).MyTestFlow.sf org login weborsf org create scratch).sf project deploy start.sf project deploy startExpected result
Deployment is successful, without flow removal.
Actual result
fails with
"error": "insufficient access rights on cross-reference id"{ "status": 1, "result": { "checkOnly": false, "completedDate": "2025-09-19T12:21:42.000Z", "createdBy": "005MI000008oTjs", "createdByName": "Adam Štěpánek", "createdDate": "2025-09-19T12:21:41.000Z", "details": { "componentFailures": [ { "changed": false, "componentType": "Flow", "created": false, "createdDate": "2025-09-19T12:21:42.000Z", "deleted": false, "fileName": "flows/Task_Before_Trigger.flow", "fullName": "Task_Before_Trigger", "problem": "insufficient access rights on cross-reference id", "problemType": "Error", "success": false } ], "componentSuccesses": [ { "changed": true, "componentType": "", "created": false, "createdDate": "2025-09-19T12:21:41.000Z", "deleted": false, "fileName": "package.xml", "fullName": "package.xml", "success": true } ], "runTestResult": { "numFailures": 0, "numTestsRun": 0, "totalTime": 0, "codeCoverage": [], "codeCoverageWarnings": [], "failures": [], "flowCoverage": [], "flowCoverageWarnings": [], "successes": [] } }, "done": true, "id": "0AfAP00000UHekY0AT", "ignoreWarnings": true, "lastModifiedDate": "2025-09-19T12:21:42.000Z", "numberComponentErrors": 1, "numberComponentsDeployed": 0, "numberComponentsTotal": 1, "numberFiles": "2", "numberTestErrors": 0, "numberTestsCompleted": 0, "numberTestsTotal": 0, "rollbackOnError": false, "runTestsEnabled": false, "startDate": "2025-09-19T12:21:41.000Z", "status": "Failed", "success": false, "zipSize": 533, "files": [ { "fullName": "Task_Before_Trigger", "type": "Flow", "state": "Failed", "problemType": "Error", "filePath": "force-app/main/default/flows/Task_Before_Trigger.flow-meta.xml", "error": "insufficient access rights on cross-reference id" } ], "zipFileCount": 2, "deployUrl": "https://.....apexp" }, "warnings": [] }Additional information
System Information
Diagnostics
✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
❌ fail - using latest or latest-rc CLI version
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] default target DevHub max apiVersion matches default target org max apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
✅ pass - can access: https://test.salesforce.com
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - [@salesforce/plugin-auth] CLI supports v2 crypto
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
Beta Was this translation helpful? Give feedback.
All reactions