Closed sjurgis closed 3 weeks ago
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.
I'm pretty sure this is caused by this is caused by the qty of records (sf data query
can run out of memory while downloading the CSV chunks from the API and parse them).
Can you try with the data export bulk
command? it can handle million of records and output them to a file in csv or json:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_data_commands_unified.htm#cli_reference_data_export_bulk_unified
Thanks @cristiand391, that sort of makes sense. With sfdx I used to use bulk export and that worked pretty well. I'm still somewhat new to sf and since it has --bulk api flag I assumed the commands were merged.
Would be nice if command would work or at least suggest using different command when too much data is detected (i.e. Illuminated Cloud IDE always warns me when there's tons of rows about to be returned so it wouldn't crash itself).
Regardless I've played with an LLM and managed to create independent bash script that downloaded data that I needed...
Would be nice if command would work or at least suggest using different command when too much data is detected (i.e. Illuminated Cloud IDE always warns me when there's tons of rows about to be returned so it wouldn't crash itself).
Yes, we actually plan to deprecate the bulk functionality from data query
so there'll be just one command for bulk queries to avoid confusion.
I'll close this issue, please let us know if you have any issue with data export bulk
.
Summary
I get error when running
sf data query -b -f fields.soql -w 30 -r csv > fields.csv
Steps To Reproduce
Unsure, there are 1M+ rows I am trying to get
Why would cli try to parse CSV in first place when API already provides CSV file?I suppose results come in multiple files and one way of merging them is parsing...Expected result
Actual result
Additional information
System Information