"Why do I see multiple 'System.UnauthorizedAccessException: Could not obtain access token' errors in the Robot machine event viewer, causing jobs to exit abnormally with error code 0x40010004 or 0xE0434352?"
Issue description:
There are many error of 'System.UnauthorizedAccessException: Could not obtain access token' in Robot machine event viewer, and causes job abnormally exit with error: Job stopped with an unexpected exit code: 0x40010004 or 0xE0434352.
Resolution:
Connect the robot via Client ID & Client Secret instead of Machine Key, which has been deprecated in October 2022.