function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Katya AndroshinaKatya Androshina 

Failed to process batch for class '<unknown>'

We have an app that schedules a nightly job to run updates. For some orgs, we keep seeing exceptions like these:

Developer script exception from {company name}. : '<unknown>' : Inactive User, orgId: {orgId} userId: {userId}

Apex script unhandled exception by user/organization: {userId}/{orgId}
 
Failed to process batch for class '<unknown>' for job id '707C000001g2yQT'

I'm not really sure what to do on the develper side to make these go away. Thanks in advance for any tips!
 
@login.ax974@login.ax974
Katya, check if the user who scheduled the batch has been inactivated. The batch class takes the context of the user who has scheduled it and if it is inactive it would throw such exceptions.