question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

force:data:tree:export fails if username contains a whitespace

See original GitHub issue

Summary

force:data:tree:export fails if the username contains a space.

Steps To Reproduce:

  1. Have a Windows user where the username contains a whitespace (e.g. Time Lord)
  2. 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

image

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:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LaszloFoldicommented, Apr 24, 2019

@rbergman I just did a clean install, and I still get this error.

0reactions
rbergmancommented, Apr 22, 2019

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found