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
Satheesh BojanapuSatheesh Bojanapu 

Getting FSL Apex Trigger Error on loading Service Appointments using CLI

Hi Excells,

I badly need your help on resolving the Issue:
I am getting following error message while attempting to load the service appointments for FSL thought I provided all required fields.
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY:FSL.TR001_Service_BeforeInsert: execution of BeforeInsert

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

Class.FSL.TR001_ServiceUtils.assignDurationAndDDOffsetByWorkType: line 1689, column 1
Trigger.FSL.TR001_Service_BeforeInsert: line 13, column 1

I am using CLI for uploading the data.

Thanks in Advance.
Satheesh.
Alex Noble 6Alex Noble 6
I am having this same issue. Did you ever find an answer to this, Satheesh?
Fernando FernandezFernando Fernandez
The error went away when I populated ParentRecordID with a work order id in the test class.
Satheesh BojanapuSatheesh Bojanapu
That's right @Fernando, I figured that out and populated parentRecordId, which is a SFId of parent object.