function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
QotDQotD 

Error - Task: bad field names on insert/update call: ActivityOriginType: [ActivityOriginType]

I can't figure out this error. It only happens on the 3 triggers I have created on Opportunities that send emails. It always points to the "Messaging.sendEmail(emails);" line. These triggers worked before, and then I installed the NPSP 3.0 and this error started appearing. NPSP says it has nothing to do with them, which is fine, I just know that's the only thing we changed. We need to keep NPSP 3.0 because we were having different errors with 2.0.

Here is the full error

Upsert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, ClientCare_TeamTrainingFundingReceived: execution of AfterInsert

caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Task: bad field names on insert/update call: ActivityOriginType: [ActivityOriginType]

Trigger.ClientCare_TeamTrainingFundingReceived: line 148, column 1: []

 
Anup JadhavAnup Jadhav
Stupid question, If you comment out that line, does the error go away?