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.