From 597ac0371af6422eb64f44524d240744fd189516 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Sun, 22 Oct 2023 09:32:21 -0700 Subject: [PATCH] more specific error message for nested soql support 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. --- src/main/java/com/salesforce/dataloader/mapping/SOQLInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/salesforce/dataloader/mapping/SOQLInfo.java b/src/main/java/com/salesforce/dataloader/mapping/SOQLInfo.java index a7b69d27..4755a895 100644 --- a/src/main/java/com/salesforce/dataloader/mapping/SOQLInfo.java +++ b/src/main/java/com/salesforce/dataloader/mapping/SOQLInfo.java @@ -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;