• anam79
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,
Sometimes when retrieving Bulk query results, the query completes successfully and I can pull back some of the results files but for others I just get an XML file with this error info:

<exceptionCode>InternalServerError</exceptionCode>
<exceptionMessage>Error while getting query result</exceptionMessage>

Anyone know what might cause this?
Thanks!
 
  • February 26, 2015
  • Like
  • 0
Hi,

We have a managed package which uses Custom Settings and we are getting the exception "Row with duplicate Name at index 1" when the code is trying to pull back all of the settings - here is the code:
 
List<Our_Custom_Setting__c> settings = Our_Custom_Setting__c.getall().values();

We have seen there was a similar issue on sandboxes before but this is in a production org.

How would a duplicate have gotten in? Any idea how we can fix this? 
  • February 10, 2015
  • Like
  • 0
Hi all,

We have a managed package which loads data into customer Salesforce orgs. We attempt to use the BULK API first and fall back to the REST API if necessary. So we need to be able to detect if the BULK API is enabled.

In our test orgs, if the BULK API is disabled (e.g. Professional Edition), when we try to submit a job, we get FeatureNotEnabled exceptions. This also worked for all our customer orgs pre Spring 2014.

However since Spring 2014, for customer orgs where BULK API is disabled, we are actually able to submit a BULK job. It is only when we go to retrieve the job results, we get Batch errors saying "API_DISABLED_FOR_ORG".

Is there any way to check if the BULK API is enabled, without submitting a job and polling the results? Does anyone know why we are not seeing a FeatureNotEnabled exception on our customer orgs?
Hi,
Sometimes when retrieving Bulk query results, the query completes successfully and I can pull back some of the results files but for others I just get an XML file with this error info:

<exceptionCode>InternalServerError</exceptionCode>
<exceptionMessage>Error while getting query result</exceptionMessage>

Anyone know what might cause this?
Thanks!
 
  • February 26, 2015
  • Like
  • 0