SFDX CLI for Windows ERROR: Cannot read property 'fileName' of undefined. for AuraDefinitionBundle
See original GitHub issueSummary
I am receiving the error: ERROR: Cannot read property ‘fileName’ of undefined.
Steps To Reproduce:
- Define this package.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>AuraDefinitionBundle</name>
</types>
<version>45.0</version>
</Package>
- Run this command:
sfdx force:source:retrieve --manifest c:\_hilton\BossReno\manifest\package.xml
Expected result
The source should be retrieved
Actual result
ERROR: Cannot read property ‘fileName’ of undefined.
Additional information
The development environment is Salesforce Spring 2019
I have posted these questions on the forums: https://salesforce.stackexchange.com/questions/251431/sfdx-error-cannot-read-property-filename-of-undefined/251569#251569
https://developer.salesforce.com/forums/ForumsMain?id=9062I000000QuEcQAK
All other nodes in the package.xml are working fine. Only the AuraDefinitionBundle is not working. I figured this out through process of elimination.
Here is my full package.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<types>
<members>*</members>
<name>ApexComponent</name>
</types>
<types>
<members>*</members>
<name>ApexPage</name>
</types>
<types>
<members>*</members>
<name>ApexTestSuite</name>
</types>
<types>
<members>*</members>
<name>ApexTrigger</name>
</types>
<types>
<members>*</members>
<name>AuraDefinitionBundle</name>
</types>
<types>
<members>*</members>
<name>StaticResource</name>
</types>
<version>45.0</version>
</Package>
SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/6.54.4-c01dcc69db (windows-x64) node-v8.9.4
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
@salesforce/plugin-generator 1.0.1 (core) @salesforce/sfdx-trust 2.0.1 (core) builtins 1.0.0 (core) salesforcedx 45.3.4
OS and version: Windows 10 Pro
Issue Analytics
- State:
- Created 5 years ago
- Comments:39 (6 by maintainers)
Top GitHub Comments
Hi , ERROR running force:source:retrieve: Cannot read property ‘fileName’ of undefined - > Still the bug exists?
@shetzel I had the exact same issue and running the commands you mentioned I was able to run a retrieve without any problem. Thanks mate!