I have a few flow that started acting up. On Apply to Each it says that it successfully ran but as I look into it there's no data to be provided. Only when I maunally press "Resubmit" will the flow actually run. Is there a fix for this?
Good morning, @v-bacao-msft
Here's my full flow config:
The logic is to:
1. When an item is created
2. Set variables to retrieve: Folderpath, CreatedBy, Geomarket, ProductLine, DocType, Month, Year, TeamAddress
3. Get Items in SP List filtering out by Geomarket, ProductLine, DocType, Month, Year
4. Set variable Count: length(body('Get_items')?['value'])
5. Each item created has 1 attachment. There's no need to do a check if it exists. Retrieve file attachment ID
6. Apply to each:
7. Get file content using path: Checks to see if the file was successfully created in MS Teams
8. If not, Failed Scope: Email user.
Here's my Apply to each step that's hanging:
Hi @hnguy71 ,
Could you share screenshots of Flow configuration?
If you want to save the attachment in the list item to the specified library, please make sure that list item does contain the attachment.
If there are no attachments, Apply to each traversed Body will be an empty set, and the actions contained in it will not be executed.
Or you could consider adding a Condition to determine whether the current item contains an attachment, and only execute the following action when the attachment is included.
Expression reference:
length(body('Get_attachments'))
Image reference:
Hope it helps.
Edit:
We can use Has attachments directly to determine if an attachment is included in the item.
Best Regards,