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
Miranda L 2Miranda L 2 

Error CANNOT INSERT UPDATE ACTIVATE ENTITY

Hello there,
I am getting following error while sending the data from third party
"error":{"code":"CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY","message":"accountTrigge: execution of BeforeInsert\n\ncaused by: System.NullPointerException: Attempt to de-reference a null object\n\nClass.TriggerAccount.calculateTime: line 23, column 1\nClass.TriggerAccount.handle: line 12, column 1\nClass.Triggers.manage: line 51, column 1\nTrigger.accountTrigger: line 53, column 1"

Please guide me
 
ShirishaShirisha (Salesforce Developers) 

Hi Miranda,

Greetings!

This error occurs when you are trying to access the list which doesn't have the records.So,can you please enable the debug logs and check which soql query is not returning the records as expected related to the data that you are sending from the third party.

Please check the below documentation for more details:
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
https://help.salesforce.com/articleView?id=000327918&type=1&mode=1

 

firdoss mohd 1firdoss mohd 1
Hi Miranda,

It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!
https://jbshelpdesk.secure.force.com

Thanks,
Jarvis SFDC team