Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

One of my orgs has a managed package in it, and was installed by a previous user, who has now been deactivated. Firstly therefore, this means I notice that on the package detail page, it is "Installed by" InactiveUser3, as you see here:

inactive user

This is fine, however, the managed package comes with a scheduled job, which is listed as being submitted "by" this user, and now, with them deactivated, it is failing and sending an error e-mail along the lines of

Subject

Developer script exception '<unknown>' : Inactive User yyyyyyyyyyy

and body

Failed to process batch for class '<unknown>' for job id xxxxxxxxxxxxxx

I have deduced (using the IDs) that it is this scheduled Apex class/user situation causing this error message. So my question is, how do I "reown" the scheduled job?

Under the Scheduled Jobs view, I can see, and "Manage" and "Delete" the job, and I can see the inactive user as the Submitter, but I can't "move" the job to a new active user...? Under manage, I can just change the timings of it all. (and indeed there is no save button either, as I thought changing the details might make me the new owner)

Scheduled Apex

Surely I am not going to have to uninstall the package and re-install it am I? That could be a catastrophe.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Did you test if you can schedule a new copy of the job from the Apex Classes -> Schedule Apex screen?

If so, you can go ahead and delete this schedule and reschedule the job at the same date/time.

If that's not possible, this is more like a design error from the managed package provider that they should resolve..

share|improve this answer
    
Crickey. Sometimes the simplest solution is the right one. That appears to have done exactly what I would expect (I'll let you know tomorrow if it fails!). Must be Friday. Cheers. –  Simon Lawrence Mar 7 at 15:39
    
Glad I could be of help! –  guy Mar 7 at 15:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.