Skip to main content
Hello,

Exceeded maximum time allotted for call out (120000 ms)

I'm getting the Exceeded maximum time allotted for call out (120000 ms) error.

It seems salesforce doesn't allow more than 120 second for a single response.

I just send a 50 files (Resumes) to the resume parser in a single transaction and the resume parser take more than 120 seconds and we are getting the time exceed exceptions.

Is there is any way to resolve this.

Thanks & Regards,

Karthikeyan Chandran
4 respuestas
  1. 26 ene 2015, 4:02 p.m.
    Thanks James!

    It's worked for me, I've created batch and executed as a 5 per execution.

    Now, I just call the batch class through the command button from one of my VF page and it should return the SUCCESS/ERROR files.

    I used SaveResult[] instead of normal DML to get all the record success in the batch class. Unfortunately I am unable to fetch the values in my VF page where the batch class invoked. Tried to use batch class as a Extension, but I am not sure how to do achieve this.

    If we do via any argument passing can we have all the values in the SaveResult[] array or the last batch 5 (batch size =5) will store in the array.

    Looking for the possibilities and best practices to acheive this.