-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when there is a flow in the destructive package #980
Comments
git diff --name-status --no-renames "HEAD" "HEAD~1" |
Hi @elliot41 ! Thanks for raising this issue and thanks for contributing in making this project better! Thanks for all the information, I'll try soon to reproduce this locally. |
Yes, just commit with a flow deletion. Thanks for your work :) |
That's true I work there a few months a few years ago :) I tried to reproduce locally and was not successful at it cat output/destructiveChanges/destructiveChanges.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>FlowTest</members>
<name>Flow</name>
</types>
<version>61.0</version>
</Package> Do you have the same behavior as me with my branch ? Or do you have an issue with my branch ? |
Yes everything goes fine here thanks :) I tried with differents flow, and it is the same. The issue that I face is in the output of the sgd command. In fact, if you put the --json flag, in my repo, I have this issue : { The status is 1 instead of 0, and my pipeline fails. |
I tried with a very simple test flow and I face the same thing : sf sgd:source:delta --to "HEAD" --from "HEAD~1" --output-dir ./changed-sources --generate-delta --json And my flow : 62.0 Default aTestFlow {!$Flow.CurrentDateTime} aTestFlow BuilderType LightningFlowBuilder CanvasMode AUTO_LAYOUT_CANVAS OriginBuilderType LightningFlowBuilder Flow testScreen test 176 134 true true true test String hello test InputField UseStoredValues false true true 50 0 testScreen Draft |
I reproduce now, thanks |
Shipped in release $ sf plugins install sfdx-git-delta@latest-rc
# Or
$ sf plugins install [email protected] 💡 Enjoying sfdx-git-delta? |
Issue verification check:
What is the problem?
Error when there is a flow in the destructive package
What is the parameter and the value you used with it?
sf sgd:source:delta --to "HEAD" --from "HEAD~1" --output-dir ./changed-sources --generate-delta --json
What is the expected result?
{
"status": 0,
"result": {
"output-dir": "./changed-sources"
},
"warnings": []
}
What is the actual result?
{
"status": 1,
"output-dir": "./changed-sources",
"error": "Cannot read properties of undefined (reading 'warnings')"
},
"warnings": []
}
Execution context
11.0.0
v22.12.0
git version 2.41.0.windows.1
@salesforce/cli/2.70.7 win32-x64 node-v22.12.0
sfdx-git-delta 6.0.0
Operating System: Windows 10
npm version: 11.0.0
node version: v22.12.0
git version: git version 2.41.0.windows.1
sf version: @salesforce/cli/2.70.7 win32-x64 node-v22.12.0
sgd plugin version: sfdx-git-delta 6.0.0
The text was updated successfully, but these errors were encountered: