Loading

'You have reached the Connect API's hourly request limit for this user and application' error

Publiseringsdato: Oct 13, 2022
Beskrivelse

When using the Composite Batch resource, you may receive the error message  "You have reached the Connect API's hourly request limit for this user and application". 
This occurs when you exceed the ConnectAPI limit of 2000 batches per user, per hour. 

What is the Composite Batch Resource?

The composite Batch resource lets you execute a sequence of independent sub requests. For example, you can update the name on an account and get the account’s field values in a single request.
E.g.
{
    "batchRequests" : [
        {
        "method" : "PATCH",
        "url" : "v34.0/sobjects/account/001D000000K0fXOIAZ",
        "richInput" : {"Name" : "NewName"}
        },{
        "method" : "GET",
        "url" : "v34.0/sobjects/account/001D000000K0fXOIAZ"
        }]
}

Why does the Composite Batch cause the ConnectAPI limit to be hit?
The /composite/batch framework is implemented on top of the Connect batch framework to allow multiple SObject REST API calls in a single batch. 


 
Løsning

The Composite Batch resource is not designed for doing a large number of SObject actions. If you are hitting this limit, please instead use the proper API for bulk operations such as the Bulk API, SOAP API, and the TreeSave API (for collections). 
 
Learn more about composite batch here.
Knowledge-artikkelnummer

000382873

 
Laster
Salesforce Help | Article