Loading
ただいま大変多くのお問い合わせをいただいており、ご連絡までにお時間を頂戴しております続きを読む

Calculate Provider Activity Goal Measures Job Fails with "Batch Job Already in Progress" or "Currently in Maintenance" Errors

公開日: Jul 6, 2026
説明

This article explains how to resolve the "An instance of Activity Plan Calculation Batch is already in progress" error that occurs while executing the Calculate Provider Activity Goal Measures job.

In some cases, the batch job becomes stuck in an In Progress state even after the batch execution has finished. As a result, every subsequent attempt to run the job returns the same error because Salesforce detects an existing active batch instance.

This behavior is commonly caused by an incorrect configuration of the Provider Activity Measure Type record for Product activities. If the required parent object information is missing or incorrectly configured, the batch job cannot complete successfully, leaving the job status as In Progress.

解決策

Step-1. Verify that no previous Activity Plan jobs are in progress

Run the following SOQL query to locate the org-level Activity Plan job metadata:

SELECT Id, Name, RecordApiName, LifeScienceMetadataCategory.Name
FROM LifeSciMetadataRecord

Open the ActivityPlanJob_OrgLevel record and navigate to the Related tab.

Open the Life Science Metadata Field Values related list and locate the JobStatus record.

If the Text Value is In Progress, update it to Completed and save the record.

Note:

If the JobStatus is updated to Completed, the Calculate Provider Activity Goal Measures job may execute successfully; however, it can become stuck in an In Progress state again. When this occurs, subsequent attempts to run the job continue to fail with the "An instance of Activity Plan Calculation Batch is already in progress" error. This behavior typically indicates an underlying configuration issue with the Provider Activity Measure Type and requires the configuration to be reviewed as described in the next step.

Step 2. Verify the Provider Activity Measure Type Configuration

Review the Provider Activity Measure Type record associated with the affected activity type.

Ensure that the following fields are configured correctly based on your organization's data model and business requirements:

  • Activity Parent Object
  • Activity Parent Object Relationship Field

Example: For a Product-based Provider Visit Product DetailingType, these fields may be configured as:

  • Activity Parent Object: Provider Visit
  • Activity Parent Object Relationship Field: ProviderVisitId

If these fields are missing or incorrectly configure

Step-3. Rerun the Activity Plan jobs

Before rerunning the Calculate Provider Activity Goal Measures job, verify that all Activity Plan-related batch jobs have completed successfully and that none remain in an In Progress state.

Once the Provider Activity Measure Type configuration is corrected and all previous jobs have completed, rerun the Calculate Provider Activity Goal Measures job. The batch should execute successfully without returning the "An instance of Activity Plan Calculation Batch is already in progress" error.

ナレッジ記事番号

005388480

 
読み込み中
Salesforce Help | Article