Error Messages

How do I fix error "We couldn't delete the selected campaign member status because it's the default"

If you received an email that looks similar to the one below, then you need to make sure you have at least one default campaign member and and at least on with responded set.

To fix, check you Campaign Member defaults and make sure one status is set to Default (1) and at least one has Responded (2)checked

 
 

How do I fix error "delete error CampaignMemberStatus 01Yxxxxxxxxxxxxxxx We couldn't delete the selected campaign member status because it's assigned to members of this campaign. Change those members' statuses first"

The error saying that one of the existing campaign members is assigned to a status that is NOT one of the status's defined in the AAkonsult Campaign Status.

When AAkonsult Campaign Status tries to remove that status on the campaign member, Salesforce is not allowing this status to be removed.

You'll need to locate the Campaign Member with the status that is not being used in the new setup and change it to one that is being used.

The campaign status defaults work best with new Campaigns, vs. ones that already have Campaign Members.

 
 

Why am I receiving Apex CPU time limit exceeded

Are you receiving an error message similar to: "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY:  Object: CampaignMember, AAKCS.campaignStatus: System.LimitException:  Apex CPU time limit exceeded"?

If so, please note that the CPU limit salesforce applies is against all actions that happen when you save a record.  For example, if you have custom triggers/coding, Apps like Pardot, Marketo, Vunteers4Salesforce, NPSP etc. then it is the sum of the CPU of all these Apps during the save process.  AAkonsult Campaign Status might just have been the last App to process the request and been the unfortunate one that tripped the max CPU Limit.

You can use Salesforce debug console or debug logs to see which Apps are using the most CPU.

If you are performing bulk updates, try reducing the batch size.

 
 

How do I fix the Error: insert error CampaignMemberStatus Name already exists. Enter a
unique name.: Member Status

Please investigate this error.
Program/Area: campaignStatusUpd.CampaignMemberStatusDefaultt
Subject: insert campaign(s)
Description: insert error CampaignMemberStatus Name already exists. Enter a
unique name.: Member Status

This error means you have got the same status twice in the list of status's. 

Try the following:

  • Replace all option. Please note, if doing a replace all option, you'll need to have at least one DEFAULT and one RESPONDED to in the default values.
  • In setup > object manager.  Locate Campaign.  Fields Tab. Click into the "Type". The API Name and the Label MUST be exactly the same. If the label is for example "No Shows" and the API name is "No shows" (lower case "s"), then this WILL NOT work and cause issues.
  • Please also check the "Campaign Status Error Log" for any entries there relevant to the issue or for more details on the error.