Support > Forums > OpenBots Studio > Out of Memory Exception

Out of Memory Exception

Alfredo Carbajal

  • Reporter
  • Calender Icon January 21,2023 at 6:10 PM

Good day. Sometimes when running a long scrip it stops at inconsistent points of it with the exception "Out of Memory Exception" thishas occured in my local machine and a remote machine where OpenBots Assistant scheduled an automation.¿What can I do to prevent or get around this error so I can run unattended automations on a daily basis?

This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...

Nataly Alvarado...

  • Participant
  • Calender Icon January 24,2023 at 3:28 PM

Hi alfredo.carbajal.nips,

In order to prevent memory exhaustion, we recommend to break up the automation into smaller automation runs (specially if you are running a long loop). For example, you can add logic to process your items in batches of a set amount. Once the number of loops set is reached, and if more items remain, trigger another job. Jobs can be triggered through the Run Schedule Now command, or by triggering a Queue Arrival schedule.

Please let me know if you have any additional questions or if you have a different use case.

You are not authorized to reply, please click here to login and add your reply to this topic.