When Job Finished, The Robot Machine Throws "submitJobState: UiPath.Service.Orchestrator.Clients.OrchestratorHttpException: Request Entity Too Large" Error

The job has finished but its status is still 'Running' in Orchestrator.

Issue Description

Error Message: "submitJobState: UiPath.Service.Orchestrator.Clients.OrchestratorHttpException: Request Entity Too Large".

When the issue occurs, the below behavior can be observed:

  1. The job has finished but the status of the job in Orchestrator is still 'Running'.
  2. If trying to kill the job, its status will remain in 'Stopping' for several hours.
  3. The event viewer error "submitJobState: UiPath.Service.Orchestrator.Clients.OrchestratorHttpException: Request Entity Too Large" is shown on the robot machine.
  4. The job page will keep loading and the CPU usage of the Orchestrator server will be close to 100%.

Resolution

  1. Filter the job by using GET /odata/Jobs to determine the abnormal job.
  2. Remove the OutArguments of the process.