From 1333172fc1b130db704bc7e31f4dea1bacaaab45 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Thu, 26 Oct 2023 10:34:28 -0700 Subject: [PATCH] use object name as the label if label is missing replace object label with object name if it starts with "__MISSING LABEL__" prefix. --- .../com/salesforce/dataloader/client/PartnerClient.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/salesforce/dataloader/client/PartnerClient.java b/src/main/java/com/salesforce/dataloader/client/PartnerClient.java index 07a1b006..df4b463c 100644 --- a/src/main/java/com/salesforce/dataloader/client/PartnerClient.java +++ b/src/main/java/com/salesforce/dataloader/client/PartnerClient.java @@ -756,7 +756,12 @@ public boolean setEntityDescribes() throws ConnectionException { setEntityTypes(); if (this.describeGlobalResults.isEmpty()) { for (DescribeGlobalSObjectResult res : entityTypes.getSobjects()) { - if (res != null) this.describeGlobalResults.put(res.getName(), res); + if (res != null) { + if (res.getLabel().startsWith("__MISSING LABEL__")) { + res.setLabel(res.getName()); + } + this.describeGlobalResults.put(res.getName(), res); + } } }