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
Kathir DevanKathir Devan 

Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY....

Hi Dears,

   

   Actually i update list of checkbox fields,some checkbox fields updated and some checkbox field is not updated am getting err.why this happening how to resolve this one.what should i do please can anyone help me...

 

my err line given below and also attach my trigger code:

Trigger LandscapedInTrigger on Level1__c (after insert, after update, before delete) {
    if(trigger.isafter){
    Level1__c[] TCR = trigger.new;
    LandscapedInTriggerHandler.TCRUpdate(TCR);
    }
    if(trigger.isbefore){
    Level1__c[] TCR = trigger.old;
    LandscapedInTriggerHandler.TCRDelete(TCR);
    }
}

 

 

Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Level1Trigger: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on row 0 with id 0017000000V2X4oAAF; first error: STRING_TOO_LONG, Landscape Level 1: data value too large: Administration - Services; Administration - Technology; Other; Traditional Agents - General Brokerage; Traditional Agents - Online Brokerage; Traditional Reinsurers; Traditional Third-Party Administrators ("TPAs"); Traditional Underwriters - General; Traditional Underwriters - Specialty (max length=255): [Landscape_Level_1__c] Class.Level1TriggerHandler.TCRUpdate: line 36, column 1 Trigger.Level1Trigger: line 4, column 1: []...

 

sushant sussushant sus
please class code ..error is on ur class
Forza di SognoForza di Sogno

Would you post your Level1TriggerHandler class?