Memory Allocation Limit Reached
Out-of-memory errors occur when too much data is processed at once or when an automation does not release memory after use. This can cause an automation crash. Follow the recommendations to avoid reaching the memory allocation limit.
We recommend that you:
-
Process or retrieve large data sets in smaller subsets to process them by batch. Do not load the entire set of data at once. For example, instead of reading an entire Excel file at once, you can loop it and process X lines by X lines.
-
Free unused data in memory. For example, a variable containing a list of hundreds of objects can be deleted when it is not used anymore.
-
Regularly review memory usage to identify abnormal consumption. On a Windows machine, you can review the consumption of the memory using the Task Manager application.
If the out-of-memory error still occurs after following the recommendations, try to execute the task which requires a heavy memory load using an external tool, such as a Python script.