• Callum Van Den Hoek
  • 0 Points
  • Member since 2021

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0
I am attempting to integrate Salesforce using some middleware. 

What the integration does it take an Excel sheet, and from that sheet create a Work Order, Service Appointment and Assigned Resource record for each row.

When I run this integration, the Work Order and Service Appointments are created as expected - however, the AssignedResource creation fails, with the following error message: 
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY:FSL.TR021_AssignedResource_AfterInsert: System.LimitException: Apex CPU time limit exceeded:--

Judging from this error message, it seems that there is a trigger on the AssignedResource object which is exceeding the CPU time limit. The trigger is part of the FSL managed package, so it can't be disabled or changed.

Does anyone know what this trigger does, and if there is a way to disable it or work around the issue to avoid the error?