1

Good day.

I really need help on this issue. I have tries every possible option here. I use the Salesforce REST API using C#. The works 100% fine but after a couple of calls out to SF i keep on getting the error "The operation has timed out"

3
  • 2
    Have you tried using setTimeout() method to increase your timeout limit ?
    – S.Sharma
    Feb 12, 2014 at 4:51
  • yes, I have tried to this set to the maximum(120 Second).
    – 100mil
    Feb 12, 2014 at 13:04
  • what si the end point u r calling?
    – SEuser
    Dec 22, 2015 at 6:27

1 Answer 1

1
  • You can set REST API call-out time to maximum 120 second. If your C# application is unable to process request in 120 seconds then you will have to optimize C# webservice. Default timeout is 10 seconds.

    Sample:

    HttpRequest req = new HttpRequest();
    req.setEndpoint(endpoint_url);
    req.setMethod('GET');
    req.setTimeout(120000);
    
    • I will recommed to use (Asynchronous) Apex Batch if you are making large number of callouts. You won't be able to do it synchronously.

You must log in to answer this question.

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