Closed MatiasRosbaco closed 2 years ago
Can you verify this still happens on current versions? I can't figure out how to replicate it , and we swapped the retrieve command's library so it should be very different (you might get a good error message now).
This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.
Summary
I'm trying to retrieve source from org to manifest and I get the error Cannot read property 'metadataName' of undefined I'm retrieving by doing right click on manifest and selecting the option retrieve source in manifest from org and also from the sfdx force:source:retrieve
I used the extension salesforce package.xml generator to create the package.xml file
I already tried to do the command --loglevel debug because I read this should fix the issue.
command: sfdx force:source:retrieve --manifest manifest\package.xml --loglevel debug
Steps To Reproduce:
Expected result
Retrieve source from org.
Actual result
Get the error described above
Additional information
I'll post the package.xml code as an answer because it's 500 lines long.
Salesforce cli version: sfdx-cli/7.42.1-e41dbeb8d9 win32-x86 node-v10.15.3 Vscode version: latest version to date, can't find version. OS: Windows 10 64 bits Plugins: @oclif/plugin-autocomplete 0.1.5 (core) @oclif/plugin-commands 1.2.3 (core) @oclif/plugin-help 2.2.1 (core) @oclif/plugin-not-found 1.2.3 (core) @oclif/plugin-plugins 1.7.8 (core) @oclif/plugin-update 1.3.9 (core) @oclif/plugin-warn-if-update-available 1.7.0 (core) @oclif/plugin-which 1.0.3 (core) @salesforce/sfdx-trust 3.0.5 (core) analytics 1.2.1 (core) generator 1.1.1 (core) salesforcedx 47.15.0 (core) ├─ salesforcedx-templates 47.16.0 (core) └─ salesforce-alm 47.14.0 (core)
sfdx-cli 7.42.1 (core) PS D:\Program Files (x86)\Microsoft VS Code\Uat 3>