Loading

Campaign Influence records with a deleted campaign prevent related Opportunities from being edited

게시 일자: May 4, 2026
상세 설명

Campaign Influence is a Salesforce feature that tracks which marketing campaigns contributed to an Opportunity, helping teams understand marketing attribution and revenue impact. Customizable Campaign Influence allows organizations to configure attribution models and manually associate Campaign Influence records with Opportunities.
When a Campaign record is deleted in Salesforce, it does not automatically delete any related Campaign Influence records. These orphaned Campaign Influence records remain associated with the Opportunity but no longer have a valid Campaign name or Campaign ID reference. This prevents further edits to any related Opportunity records and causes an Internal Salesforce Error.
Steps to reproduce the issue:

  1. Log in to the Salesforce org as a System Administrator.
  2. Go to a Campaign record that is associated with multiple Campaign Influence records.
  3. Delete the Campaign record.
  4. Observe that some Campaign Influence records remain linked to Opportunities but display no Campaign name. The deleted Campaign ID is still present in the backend.
  5. Attempt to edit a field on an affected Opportunity (for example, change the Close Date). An Internal Salesforce.com Error is displayed.

For more information on Campaign Influence, see Understanding Customizable Campaign Influence.

솔루션

When a Campaign is deleted from Salesforce, its associated Campaign Influence records are not automatically removed. These orphaned records remain linked to Opportunities but no longer have a valid Campaign reference. This causes an Internal Salesforce Error when users attempt to edit those Opportunity records (for example, changing the Close Date).
A Salesforce Administrator must manually remove the orphaned Campaign Influence records from each affected Opportunity. Follow the steps below:

Steps to Remove Orphaned Campaign Influence Records

  1. Log in to Salesforce as a System Administrator.
  2. Navigate to the affected Opportunity record.
  3. Scroll down to the Campaign Influence related list on the Opportunity record page.
  4. Identify any Campaign Influence entries that show no Campaign name — these are the orphaned records left behind by the deleted Campaign.
  5. Delete each orphaned Campaign Influence record from the related list.
  6. Repeat this process for all other Opportunity records affected by the deleted Campaign.

After removing the orphaned Campaign Influence references, users are able to edit the Opportunity record (including changing the Close Date) without encountering the Internal Salesforce Error.

Notes

  • If there are a large number of affected Opportunities, consider using the Salesforce Data Loader or a Salesforce SOQL query to identify all Campaign Influence records referencing the deleted Campaign ID, and mass delete them.
  • The deleted Campaign ID can be retrieved from the Recycle Bin if needed to construct the query.
Knowledge 기사 번호

000389614

 
로드 중
Salesforce Help | Article