You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying a target directory using the force:source:retrieve command and the metadata in a provided manifest is not present in the source organization, an error is thrown.
Create a scratch org for dreamhouse-lwc and push its source there sfdx force:org:create -a dreamhouse-lwc -f config/project-scratch-def.json sfdx force:source:push
Create a package manifest with the following contents and save as package.xml
Retrieve the contents of the manifest from the scratch org and specify a target directory sfdx force:source:retrieve -u dreamhouse-lwc -x package.xml --retrievetargetdir ./source-retrieve/
Expected result
A report of the retrieved metadata is displayed, along with warnings for the metadata that was not present in the org
The metadata that was retrieved is placed in the target directory
Actual result
An error is displayed ERROR running force:source:retrieve: Cannot read properties of undefined (reading 'replace')
The metadata that was retrieved is placed in the target directory
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
Summary
When specifying a target directory using the
force:source:retrieve
command and the metadata in a provided manifest is not present in the source organization, an error is thrown.Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
sfdx force:org:create -a dreamhouse-lwc -f config/project-scratch-def.json
sfdx force:source:push
package.xml
sfdx force:source:retrieve -u dreamhouse-lwc -x package.xml --retrievetargetdir ./source-retrieve/
Expected result
Actual result
ERROR running force:source:retrieve: Cannot read properties of undefined (reading 'replace')
System Information
Additional information
The text was updated successfully, but these errors were encountered: