function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
forceAMPforceAMP 

Using PKChunking with Custom Object Share tables

The BulkAPI doc states "parent—Specifies the parent object when you’re enabling PK chunking for queries on sharing objects".

However when using the Parent for a custom object like Request__Share ( parent = Request__c)  the batch fails because the query tries to use Request__cId as the where clause field instead of ParentId.

Are custom object share tables not supported with PKChunking ?
jhurstjhurst

Thanks for bringing this to our attention.  I have confirmed the behavior as a bug in the Bulk API, and have logged a bug.
 

The only workaround at this time would be to construct the queries manually based on the parent IDs receievd from a query on the custom obejct tab.  

Hope this helps.
Jay