I am new to Power Automate.
I have a Recurrence flow. The second step Transforms data using Power Query. PQ looks at an on-premise SQL table for qualifying records. If PQ returns any records, an Apply to each step sends an Office email with fields from the records. I sometimes, not always, get the error:
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Transform_data_using_Power_Query')?['body/value']' is of type 'Null'. The result must be a valid array.
Can you offer any ideas what is happening and how to fix. Thank you.