How to avoid time out while using screen action

Hi All,

         When I try to import or export large volume of data ,browser loads and stops after a minute how to avoid this in order to export or import bulk data


Thanks

R.karthik

Hi Karthik,

Could you pleas let us know the error, what you are getting. Is this a session timeout error or Aggregate return a communication exception . If this is the case so you can Increase session timeout or aggregate timeout.


-Hitesh-

Hi Karthik,

You can try to run that asynchronously. Create an server action and a timer to run that (one case to import and other to export). Than, when you want to import or export just call the timer wakeUp. In the export case, you can store that in database and than download it.

I think (IMHO) that increase timeouts it's not a god practice. I recommend you to see this: https://www.outsystems.com/learn/lesson/1749/heavy-timers/


Hope this can help you.

Regards,

Ricardo 

Ricardo's approach seems to be the best approach for your problem. 

Check out the documentation on Timers

https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Timers

However Timers run on a separate session.

https://www.outsystems.com/learn/lesson/1133/master-class-on-best-practices-and-timers/

Hi karthik!

As Amal said, Ricardo's approach seems to be the best approach for your problem.

In any case, you can use SetRequestTimeout action from HTTPRequestHandler extension in order to increase the timeout of the current HTTP request (call the action in the beginning of the screen action).

Hi All,

            Thank You very much for Your Suggestions


karthik R wrote:

Hi All,

            Thank You very much for Your Suggestions


Hi 

Please accept a solution if it solves your problem.