Skip to content

Commit

Permalink
more specific error message for nested soql support
Browse files Browse the repository at this point in the history
The "nested queries are not supported" error message needs to be more specific because Data Loader does not support nested queries in SELECT clause. However, it supports nested queries in WHERE clause.
  • Loading branch information
ashitsalesforce committed Oct 22, 2023
1 parent b1bc086 commit 597ac03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static class SOQLFieldInfo {
fieldString = getTrimmed(fieldString);
int lparenIdx = fieldString.indexOf('(');
// no nested queries!
if (lparenIdx == 0) throw invalidSoql("Nested queries are not supported");
if (lparenIdx == 0) throw invalidSoql("Nested queries are not supported in SOQL SELECT clause");
if (lparenIdx < 0) {
// normal field
this.fieldName = fieldString;
Expand Down

0 comments on commit 597ac03

Please sign in to comment.