"sf project delete source" crashs at metadata which exists in the org, but not in the DX project #2836
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
Since 2.36.x of the CLI the command project delete source is not working properly and results in an error message
Error (10): c.walkContent is not a function or its return value is not iterable
This happens with metadata, which only exists in the org, but not in the local DX project.
CLI versions older than 2.36 work properly.
Steps To Reproduce
Enter
sf project delete source -m <metadata-type:metadata-name> -o <yourOrg>
i. e.
sf project delete source -m ValidationRule:bla__c.ruleNotInLocalProject -o "Fancy Org"
Expected result
Either the existing metadata has been deleted in my org, or the message "No Validation Rule named: bla__c.ruleNotInLocalProject" appears.
Actual result
Error (10): c.walkContent is not a function or its return value is not iterable
System Information
Terminal window of Visual Studio Code or windows cmd shell (same result). CLI version @salesforce/cli/2.37.4 win32-x64 node-v20.11.1.
sf version --verbose
CLI Version:
@salesforce/cli/2.37.4
Architecture:
win32-x64
Node Version:
node-v20.11.1
Plugin Version:
@oclif/plugin-autocomplete 3.0.13 (core)
@oclif/plugin-commands 3.2.2 (core)
@oclif/plugin-help 6.0.20 (core)
@oclif/plugin-not-found 3.1.2 (core)
@oclif/plugin-plugins 5.0.7 (core)
@oclif/plugin-search 1.0.20 (core)
@oclif/plugin-update 4.2.4 (core)
@oclif/plugin-version 2.0.16 (core)
@oclif/plugin-warn-if-update-available 3.0.15 (core)
@oclif/plugin-which 3.1.7 (core)
@salesforce/cli 2.37.4 (core)
apex 3.1.4 (core)
auth 3.5.5 (core)
data 3.2.5 (core)
deploy-retrieve 3.5.6 (core)
info 3.1.3 (core)
limits 3.2.1 (core)
marketplace 1.1.1 (core)
org 4.0.4 (core)
packaging 2.3.0 (core)
schema 3.2.1 (core)
settings 2.1.2 (core)
sobject 1.2.2 (core)
source 3.2.3 (core)
telemetry 3.1.18 (core)
templates 56.1.1 (core)
trust 3.5.4 (core)
user 3.4.3 (core)
OS and Version:
Windows_NT 10.0.19044
Shell:
cmd.exe
Root Path:
C:\Users\Stefan\AppData\Local\sf\client\2.37.4-fb2a8ae
sf doctor:
Additional information
The text was updated successfully, but these errors were encountered: