Hey there, I am doing an implementation for my client who requires service reports to be generated for their Work Order Line Items on a regular basis.
I have created a daily scheduled Flow that finds all completed Work Order Line Items for that day and loops through each record to create Service Report records for each of those WOLIs.
I am running the flow as a System Administrator user and it works fine when I debug it, but when I activate the schedule triggered flow I get the following error: "INSUFFICIENT_ACCESS_OR_READONLY: null. You can look up ExceptionCode values in the SOAP API Developer Guide.---This error occurred when the flow tried to create records:"
I can't access the Sharing Settings for Service Reports or Work Order Line Items but the user running the flow (who is the same as the Default Workflow User in the Process Automation Settings) is System Admin with ability to View and Modify all data in the environment.
Any ideas? Thanks in advance!
Hi, Camille. I came across your post while troubleshooting a very similar issue in our org. Our scheduled flow fails at the Create Records element when creating a Service Report, with INSUFFICIENT_ACCESS_OR_READONLY: null. The same flow succeeds in Debug when run as the same System Administrator user, but fails when it runs on schedule.
Were you able to identify the root cause or find a solution? Any details you can share would be very helpful. Thank you!