Good afternoon,
I wonder if someone could help me with an issue I am experiencing:
I created a flow that compiles all the html files from one Sharepoint folder to a .md document on a weekly basis.
The logic is to initialize a string variable, to get files (properties only) from the SharePoint folder, and to Apply to each using the dynamic content - body/value (list of items) from the get files step, within the loop append to the string and eventually create a file.
This morning, the flow ran for the first time and was successfully. However, I found the resulting document too long so I wanted to experiment compiling them by 20 articles per batch. As a result, I saved the live and running flow as a testing one, closed the up and running one, and started working on the testing one.
When I finished modifying everything and wanted to save and test, it would not save and told me that: The input parameter(s) of operation 'Apply_to_each' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Apply_to_each'.
I have not changed anything so I found this error message strange. Nonetheless, I emptied the values in Get Files (properties only) step and manually put in the correct site and folder information. Then I removed whatever that is the input in "Apply to each" and replaced it by dynamically chose the body/value (list of items) from the previous step. When I hit save, it's still showing the same error message. I tried to repeat the above with no success. I then tried to ask copilot and gemini for fix: outputsbody('Get_files_(properties_only)')?['value'] or outputs('Get_files_(properties_only)')?['body']?['value'] and neither of them works.
I also create a new flow from scratch, it saves after I set up "Apply to Each" but not after when I finish everything. The same issue came up.
In the meantime, the original file compiling flow is always working fine.
Any idea what could have caused this and how I might fix this issue?
Thanks,
Rita