How do I reassign Chargebee Apex class jobs in Salesforce?
Related Scenarios
- Apex class job failures after transferring Chargebee app ownership.
- Scheduled jobs not running when the original owner is deactivated.
Problem Statement
After transferring ownership of the Chargebee app in Salesforce, Apex classes such as CBLogDeletionBatch and SyncLogDeletionBatch may stop running. This usually happens because the scheduled jobs are still owned by a deactivated user. The classes are part of the Chargebee managed package and cannot be edited; you must reassign the scheduled jobs to an active user.
First Image
Second Image
Solution
Reassign the scheduled jobs to your user by making a small change to the Sync Log Frequency setting in Chargebee settings. That change triggers reassignment of the jobs.
Configuration Steps
-
Access Chargebee settings in Salesforce
Go to Settings > Configure Chargebee > Business Profile. Ensure you have permission to make changes. -
Make a dummy update to Sync Log Frequency
Open Sync Log Frequency, make a small temporary change (for example, adjust the frequency), and save. This triggers reassignment of the scheduled jobs to your account. -
Verify scheduled jobs
In Salesforce, go to Setup > Jobs > Scheduled Jobs. Confirm that CBLogDeletionBatch and SyncLogDeletionBatch are listed under your user. -
Revert temporary changes
If you changed Sync Log Frequency only for this fix, set it back to the original value and save.
First Image
Second Image
Important Notes
- The user who will own the jobs must have permission to manage scheduled jobs in Salesforce.
- This process applies to the Chargebee managed package and may not apply to other integrations.
Related Articles
Was this article helpful?