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
Brad Nordling 9Brad Nordling 9 

Why would a flow throw an error on an Update Records component when it is a schedule flow but does not error if it is a non-triggered flow?

If I have the flow set up as a non-triggered flow, it works fine (update records component actually updates!)  When I create the same flow as a scheduled-Triggered flow, the update records piece fails.  Says the records I'm trying to update are null.  (It's a record collection variable).

If I create a new scheduled flow to run the non-triggered flow, the it causes the same error.  Any ideas?
 
Best Answer chosen by Brad Nordling 9
ShirishaShirisha (Salesforce Developers) 
Hi Brad,

Greetings!

I would suggest you to capture the debug logs while the flow triggers as scheduled and compare both working and non working logs to see which is causing the issue.

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri