i did try below solution,

Visualforce.remoting.timeout = 120000; 

I am still getting the timeout issue. The remote method is hardly 40 lines code and is optimized also i am not making callouts in the method.

Please guide on how to overcome this issue.

  • 2
    You can't. You have a two minute limit, and that's it. I can hardly imagine any Apex Code that runs in 2 minutes without hitting governor limits, though. You may need to break your work into multiple parts, or look for other optimizations you could do.
    – sfdcfox
    Jun 23 '16 at 19:24
  • Thanks for replying @sfdcfox. Can i write multiple remote methods which i call one after the other. Will it solve the issue?
    – snehakem
    Jun 23 '16 at 19:28
  • 1
    Yes, you can call the second in response to the receipt of the data from the first.
    – sfdcfox
    Jun 23 '16 at 19:35
  • If you edit your post to include your code, we may be better able to assist you.
    – Adrian Larson
    Jun 23 '16 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.