Docs

Log into read the version of docs relevant to your site.

How do I reassign Chargebee Apex class jobs in Salesforce?

  • 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

  1. Access Chargebee settings in Salesforce
    Go to Settings > Configure Chargebee > Business Profile. Ensure you have permission to make changes.

  2. 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.

  3. Verify scheduled jobs
    In Salesforce, go to Setup > Jobs > Scheduled Jobs. Confirm that CBLogDeletionBatch and SyncLogDeletionBatch are listed under your user.

  4. 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.

Was this article helpful?