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
AmarjeetAmarjeet 

System.DmlException: Insert failed.....on test class

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

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

Class.StatusUpdate.Progress: line 25, column 1
Class.OrderTriggerHandler.afterUpdate: line 57, column 1
Class.TriggerHandler.run: line 47, column 1
Trigger.OrderTrigger: line 91, column 1: []


I am getting this error for my test class fail.
Pranika JindalPranika Jindal
Hello,

Can ypu please attach screenshot of your code so that we can know where the error is coming from.Also it could be due to some validartion rule or trigger that is running.So we will get to know more using the code.Also look at all the valiation rules before running the test class.

Please let us know if it could be of any help.

Thanks!