-
Notifications
You must be signed in to change notification settings - Fork 82
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
The requested resource does not exist when run sf data query #2861
Comments
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. |
Hello @gtiancai 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Output of doctor command: |
Anybody can help on this? |
@gtiancai can you provide the version info? |
The version is 2.40.7. Looks like the cause is that the query returns too many records (17K), but it does not throw this error with version 2.6.9. And I even tried to run the query in async, and then use command sf data query resume to retrieve result, got same error with this command. |
Also, it will not throw error if add a limit clause to the query (I set it as LIMIT 50000, greater than 17K, weird.) |
I am confused what the actual error is here.
I need all of the following to help any further:
|
I did add the flag This pipeline is hosted by customer, so that I cannot provide |
A few more thoughts from the team:
Without the actual query and some additional logs, I am afraid we won't be able to help on this. |
As I said before, it works if adding a LIMIT clause. It's not related to anything from your previous post. |
The data query code lives in https://github.com/salesforcecli/plugin-data See: https://github.com/salesforcecli/plugin-data/blob/main/src/commands/data/query.ts FYI: You can find which command lives in which plugin by running the |
Summary
When we use command
sf data query --query $theQuery --bulk --target-org $theOrg --wait 5 --json
to query data in pipeline (Azure DevOps), we get error like this:{'code': 1, 'context': 'DataSoqlQueryCommand', 'commandName': 'DataSoqlQueryCommand', 'message': 'The requested resource does not exist', 'name': 'NOT_FOUND', 'status': 1, 'stack': 'NOT_FOUND: The requested resource does not exist\n at SfError.create (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/sfError.js:81:23)\n at SfError.wrap (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/sfError.js:104:25)\n at DataSoqlQueryCommand.runBulkSoqlQuery (file:///usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-data/lib/commands/data/query.js:143:77)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async DataSoqlQueryCommand.run (file:///usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-data/lib/commands/data/query.js:97:19)\n at async DataSoqlQueryCommand._run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/command.js:311:22)\n at async Config.runCommand (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/config/config.js:433:25)\n at async run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/main.js:92:16)', 'exitCode': 1, 'warnings': []}
But it works correct if run the script in local. Any ideas on this error?
Steps To Reproduce
Run query like above within Python script from pipeline.
Expected result
No error
Actual result
Throw above error
The text was updated successfully, but these errors were encountered: