You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Fail to fetch requested information when query is too long #860
Describe the bug
A clear and concise description of what the bug is.
sfpowerscripts when used in large brownfield projects in the process of refactoring, fails to process queries that operate on larger collection of entities, resulting in salesforce throwing <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre>
To Reproduce
Steps to reproduce the behavior:
Utilize a package that has large number of apex classes and the overall length of collection as a string is more than 12k characters
Notice the commands throw exception.
Expected behavior
A clear and concise description of what you expected to happen.
sfpowerscripts should retrieve results in chunks and merge it together.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform Details (please complete the following information):
OS: All
Version [e.g. CLI Version eg: 1.6.6] : 10.2.15
Salesforce CLI(sfdx cli) Version: 7.136.2
CI Platform: All
Additional context
Add any other context about the problem here.
Activity
azlam-abdulsalam commentedon Feb 23, 2022
Thanks to @Rocko1204 for bringing this to our attention and sharing the patch used
Patch2.txt
aly76 commentedon Apr 6, 2022
URI length has a maximum length of 16,057 chars, and the WHERE clause has a maximum length of 4000 chars
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_conditionexpression.htm
aly76 commentedon Apr 6, 2022
https://developer.salesforce.com/docs/atlas.en-us.236.0.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_soslsoql.htm