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
DeLDeL 

EMAIL_TO_CASE_LIMIT_EXCEEDED - ???

Any idea why I might be getting the EMAIL_TO_CASE_LIMIT_EXCEEDED. According to the documentation, the limit is 2500 email cases per day. I appear to be getting this exception with email batches as small as 20. We never create more than 100 email to cases per day.

Any suggestions???
PM_SalesforcePM_Salesforce
Are you using the Java email2case agent code?
Or is this a custom email2case agent in .NET?

I can't imagine why you would get this, perhaps you are posting multiple times.

Are you seeing 1000s of cases in Salesforce.com?

Mark Abramowitz
Product Manager
DeLDeL
Thanks for the reply.

I built a custom .NET EmailToCaseAgent process. I managed to get around this Exception by using a loop that calls the API for each email to be converted (SEE BELOW).

When I had all 20 emails in the array it would generate the exception, but it is working fine when I can handleEmailMessage in a loop with only one record in the array. Interesting...



...
// Add EMAIL to sfCaseRecords array
sfCaseRecords[i] = sforceEmail;

// *****
// * Call Salesforce API for EmailToCase
// * - LOOP TO PREVENT -> EMAIL_TO_CASE_LIMIT_EXCEEDED EXCEPTION
// *****
for (int sf=0; sf < sfCaseRecords.Length; sf++)
{
HandledEmailMessage[] sfCaseRecord = new HandledEmailMessage[1];
sfCaseRecord[0] = sfCaseRecords[sf];

try
{
SaveResult[] results = this.binding.handleEmailMessage(sfCaseRecord);
etc...
}
}
SuperfellSuperfell
You can't pass more than 10 in a single call.
DeLDeL
Thanks Simon...

I must have missed that restriction in the documentation. At least that clears up the mystery!
jhamletjhamlet
Is the limit for email_to_case still 2500 or is this based on the API limit for an account?
 
Thanks...