
Announcements
I'm encountering multiple issues with my Power Automate flow:
Trigger Error:
My trigger is configured with the following setting:
"splitOn": "@triggerBody()?['body/attachments']"
This setting instructs the flow to iterate over the attachments from incoming emails. However, if an email arrives without attachments, the attachments property returns a null value instead of an array. Since splitOn expects a valid array, the trigger fails with an error message like:
"The splitOn expression '@triggerBody()?['body/attachments']' is of type 'Null'. The result must be a valid array."
As a workaround, I've considered either removing thesplitOnconfiguration altogether or wrapping it in a condition to return an empty array when there are no attachments (e.g., usingif(empty(...), json('[]'), ...)). However, I'm unable to modify the code.
Code Unmodifiable:
I cannot modify the code directly in my Power Automate environment, which prevents me from applying any fixes to the splitOn expression.
Incomplete ZIP Export:
Additionally, when I download the flow as a ZIP file, the exported package does not contain the complete code (or definition) of the flow. This makes it even more challenging to troubleshoot or modify the flow as needed.
Any insights or suggestions on how to resolve these issues would be greatly appreciated.