force:data:tree:export fails if username contains a whitespace
See original GitHub issueSummary
force:data:tree:export fails if the username contains a space.
Steps To Reproduce:
- Have a Windows user where the username contains a whitespace (e.g. Time Lord)
- Run this command
sfdx force:data:tree:export -q "SELECT Name, Location__Latitude__s, Location__Longitude__s FROM Account WHERE Location__Latitude__s != NULL AND Location__Longitude__s != NULL" -d ./data
Expected result
This should export the data defined by the query.
Actual result
‘C:\Users\Time’ is not recognized as an internal or external command, operable program or batch file.
Additional information
SFDX CLI Version sfdx-cli/6.55.1-be0b3dc4c4 (windows-x64) node-v8.9.4
SFDX plugin Version @salesforce/plugin-generator 1.0.1 (core) @salesforce/sfdx-trust 2.0.1 (core) builtins 1.0.0 (core) salesforcedx 45.4.1 (core)
OS and version: Microsoft Windows [Version 10.0.17134.590]
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Sfdx export error on Windows 10 - Salesforce Stack Exchange
Since the error message breaks off my Windows 10 username at the first white space I am assuming that this is the cause....
Read more >data Commands | Salesforce CLI Command Reference
Use the data commands to manipulate records in your org. Commands are available to help you work with various APIs. Import CSV files...
Read more >I had to rename my username because it had a space in it ...
But now new software I need to download fails! It seems the new programs are trying to install some of its files in...
Read more >@salesforce/plugin-data - npm
Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes ...
Read more >Having white spaces in your Windows username fails the ...
It seems that the issue has been going on for a long time. It was created approx 4 years ago. Here's a workaround...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rbergman I just did a clean install, and I still get this error.
@LaszloFoldi If you ran
sfdx update
to get v7, that’s not enough to fix this issue. Unless you have already, can you download and run a fresh v7 installer and try again?