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
Board salesforceBoard salesforce 

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CaseCommentSync: execution of AfterInsert

Hi all,
am getting below error in test Class can any one help me out.

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CaseCommentSync: execution of AfterInsert

caused by: System.NullPointerException: Attempt to de-reference a null object

Class.JIRA: line 8, column 1
Trigger.CaseCommentSync: line 7, column 1: []


Thanks ,
Ram
NagendraNagendra (Salesforce Developers) 
Hi Board salesforce,

Could you please post the code on the community for better understanding ?

But frequently this kind of error occurs only in the below situations, check with the below link.

https://developer.salesforce.com/forums/?id=906F00000008vgaIAA

Please mark my solution as the best answer if it helps you.

Best Regards,
Nagendra.p