From 1b8e8abb33ee612bb4e4d60ed7b2a0bf31b85e87 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Mon, 5 Aug 2024 13:30:49 -0700 Subject: [PATCH] fix for W-16422132 W-16422132 - Query All does not work if Bulk V2 API is selected. --- .../salesforce/dataloader/action/visitor/BulkV2Connection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/salesforce/dataloader/action/visitor/BulkV2Connection.java b/src/main/java/com/salesforce/dataloader/action/visitor/BulkV2Connection.java index 3dbc6d91..87b707f5 100644 --- a/src/main/java/com/salesforce/dataloader/action/visitor/BulkV2Connection.java +++ b/src/main/java/com/salesforce/dataloader/action/visitor/BulkV2Connection.java @@ -364,7 +364,7 @@ public JobInfo createJob(JobInfo job) throws AsyncApiException { HashMap requestBodyMap = new HashMap(); requestBodyMap.put("operation", job.getOperation().toString()); - if (operation.equals(OperationEnum.query)) { + if (controller.getConfig().getOperationInfo().isExtraction()) { headers = getHeaders(JSON_CONTENT_TYPE, CSV_CONTENT_TYPE); requestBodyMap.put("query", job.getObject()); } else {