0

I'm trying to do some queries through the Bulk API, and I'd like to use the PK Chunking Header.

From the documentation:

PK chunking is supported for the following objects: Account, Campaign, CampaignMember, Case, Contact, Lead, LoginHistory, Opportunity, Task, User, and custom objects.

Is there an alternative way for the rest of the (unsupported) objects? I'd be interested in Product2, PricebookEntry, and Pricebook2.

3
  • What is it exactly you're trying to accomplish? Difficult to suggest an alternative when we do not know your aim.
    – Adrian Larson
    Commented Mar 10, 2017 at 15:04
  • Oh, I apologize. I'm trying to use the Bulk API... I will edit my question. Commented Mar 10, 2017 at 15:06
  • BTW they added Product2, PricebookEntry and Pricebook2 support for PKChunking in the meantime
    – Marek
    Commented Jan 14, 2021 at 10:10

1 Answer 1

0

You can split the query that is failing (since you need to use PKChunking, I assume your query is failing with with "InternalServerError, retried more than 15 times") into smaller queries - e.g. split your data by CreatedDate, execute 1 bulk query for each date range.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .