Why does the job fault with the message "Job stopped with an unexpected exit code: 0x40010004"? Robot stopped running the job and i see the error "job stopped with an unexpected exit code: 0x40010004" in the logs. Unattended job failed with exit code: 0x40010004. How to fix "job stopped with an unexpected exit code: 0x40010004".
In order to prevent or solve this error, make sure to configure the appropriate Robot session as required by the environment or business needs.
Commonly, this error occurs when:
1. The user account used by the UiPath Robot is forcibly logged off during the execution of the process.
2. The computer the UiPath Robot is running on is manually shut down or restarted during the execution of the process.
To account for this, ensure the stability of both the user session and the computer throughout the execution of the job.
Less often, this error occurs when there is a drop of the WCF communication channel between executor and service due to exceeded WCF message size.
If the workflow is working with large files (i.e Excel files), the following error might be thrown:
"Could not retrieve the result of the job execution. This might be because a message was too large to process."
In order to solve this, follow the steps described in the "Message too large to process" page.