-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
force:data:soql:query limited to 2000 rows? #1543
Comments
Yeah... this is a problem for me too. As of 7.151 seems capped at 2k and the env variable has no effect. I'm deeply hoping this regression can be reverted soon. I'm at a loss atm as to how to go about my job. sfdx-cli/7.151.1 win32-x64 node-v16.15.0 |
I regret updating. It was the only tool allowing to export data from a Linux environment. |
You can workaround this downgrading the installed version Just did it using: sfdx update --from-local Select the desired version (in my case was 7.150.0-88c96e0) sfdx --version And I was able to query data without limits |
This issue has been linked to a new work item: W-11204187 |
Hey all 👋🏼 ! Sorry for the inconvenience, a fix is coming in the RC today! |
Hi folks, this is fixed in the latest rc I'm going to keep this open until we promote it to latest next Thursday. |
Hi! Still having this issue in 7.153.0 ❯ sfdx --version
sfdx-cli/7.153.0 darwin-x64 node-v16.15.0 I have tried setting the environment variable, and the config ❯ ./query.sh
INFO: Retrieving day 27 of month 5
› Warning: The query result is missing 5141 records due to a 10000 record limit. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment
› variable "SFDX_MAX_QUERY_LIMIT" to 6141 or greater than 10000.
Querying Data... done
FINE: Retrived 1000 rows
❯ SFDX_MAX_QUERY_LIMIT=50000 ./query.sh
INFO: Retrieving day 27 of month 5
› Warning: The query result is missing 5141 records due to a 50000 record limit. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment
› variable "SFDX_MAX_QUERY_LIMIT" to 6141 or greater than 50000.
Querying Data... done
FINE: Retrived 1000 rows
❯ sfdx config:list
=== List Config
Name Value Location
───────────── ───── ────────
maxQueryLimit 50000 Local
❯ ./query.sh
INFO: Retrieving day 27 of month 5
› Warning: The query result is missing 5141 records due to a 50000 record limit. Increase the number of
› records returned by setting the config value "maxQueryLimit" or the environment variable
› "SFDX_MAX_QUERY_LIMIT" to 6141 or greater than 50000.
Querying Data... done
FINE: Retrived 1000 rows |
Thank you @mnunezdm that is extremely helpful! (here I was downloading data one query at a time using workbench!) |
Thanks for testing it @mnunezdm ! Yeah, after the fix the default limit was set to 10000 instead of 50000, that was a mistake.
In this case the recordSize in your org is Where does |
Exactly @cristiand391, I have a script that parses the output. It's still limited to 1000 records Again rolling back to 150 fixes the issue
|
Same issue on my side. In my example i see the logs:
67.991 records retrieved by CLI via the REST API Downgrade to the 7.150 resolve the issue |
Thank you all for testing the it! After some testing we found the fix worked when running the plugin isolated but not when it's bundled and published with Current workaround: downgrade to sfdx v7.150 Sorry again for the inconvenience, we are prioritizing this to get fixed in the next RC. |
I don't know if this should be filed as a new bug but it seems related to this bug. We have all our pipelines being down because we are relying on What we run in our pipelines to get the latest package version:
Somehow Findings supporting this:
On 7.154.0 gives me a list of 3490 package versions:
On 7.155.1 I get a list of 2000 package versions:
|
|
Local against SF
That since yesterday works like a charm Linux server against Salesforce
That is still retrieving 2.000 rows |
the fix hasn't been released yet, if you wanna try it now you can install latest plugin-data manually:
please make sure to uninstall the plugin after you are done, otherwise sfdx will keep using that version after you update the CLI. |
This should now be fixed in the latest production CLI, v7.156.1 |
Just tried and works like a charm! Thx team! |
Thanks @shetzel @cristiand391 et al. And thanks again @mnunezdm for the downgrade workaround that helped me during the interim 🙏 |
I recently updated my CLI from 7.147 to 7.151 and now when I run
sfdx force:data:soql:query
the results are limited to 2000 rows. Previously, I was able to return all data from the query. Is this a recent change that was intentionally made?CLI Version:
sfdx-cli/7.151.1
OS:
MacOS 11.6.5
Node:
node-v16.15.0
The text was updated successfully, but these errors were encountered: