Schedule Fails with "Rserve connection closed" Error

Problem

When running a scheduled job, it sometimes fails with the error message: “Rserve connection closed.”

Cause

This issue may occur due to the size of the data being too large, causing the connection to Rserve to be terminated during processing.

Solution

This error tends to happen more often when working with Notes or Dashboards that use multiple data frames.

Splitting the Note or Dashboard into smaller parts to reduce the amount of data processed at once can help resolve the issue and prevent the error from occurring.