web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / For each for get attac...
Power Automate
Unanswered

For each for get attachments action stuck for ever

(1) ShareShare
ReportReport
Posted on by

For each is stuck when it is running on Get attachments action to get attachment content.

Sometimes it works but some other times it is just stuck and not moving forward. no clue what is causing this for each to get stuck.

is it due to file size? or any other reason?

 

Any help is much appreciated.

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @amahmood Can you show a screenshot of your flow in edit mode? Ensure you toggle off the new designer. Click on each action to expand it. It would help to provide more insights on your flow logic. 

     

    In the meantime, you might be interested in these YT Tutorials linked below:

    How to Send SharePoint List Attachments 📎 via Email with Power Automate

     

    In this Microsoft Power Automate tutorial, I’ll cover how to create a Power Automate flow to send SharePoint list attachments in an email. Although I don't cover how to embed the attachments in the email—you can refer to this video for reference.

     

    This flow will check the SharePoint list to see if an item is marked as Ready to Send and has attachments. I will also cover how to combine multiple attachments to send in a single email.

     

    IN THIS VIDEO:

     How to attach a single SharePoint list attachment to an email

     How to use the Filter Query to Filter SharePoint List Items by a Single Choice Column

     How to use the Filter Array action to Filter SharePoint List Items that have an Attachment

     How to use turn on Pagination and Set a Threshold in the Get Items action

     How to us the Top Count field in the Get Items action

     How to use the Get Attachments Action

     How to avoid the Apply to Each Action

     How to use the Get File Content Action

     How to Edit an Expression

     How to use the Compose Action

     How to Get Multiple SharePoint Attachments

     How to use the Append to Array Variable Action

     

    ---

    If you are looking for a way to send multiple SharePoint List items that have been assigned to a user in an email—check out this YT Tutorial: How to Send a SINGLE EMAIL ✉️ with multiple SharePoint list items | Build THIS Power Automate Flow

     

    IN THIS VIDEO:

     How to send multiple list items in a single email with a Power Automate Flow

     How to create a dynamic date range

     How to use the Convert Time Zone action

     How to use a Filter Query in the Get Items action

     How to count number of items in an array

     How to use the Select action to extract a users display name and email address

     How to create a unique list of email addresses

     How to use the Create HTML Table action

     How to customize the HTML Table with CSS styles

     How to use the Send an email (V2) action

     How to use the Append to String Variable action

     How to create a custom list of items for an email

     How to use the Send an email (V2) action

     How to display singular or plural text based on the number of items returned

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • arshad236 Profile Picture
    on at

    Thank you @creativeopinion  for your quick response.

     

    attached is for each in edit mode. It is taking body of get attachments to iterate through. It is annoying and no error message at all. for each is just stuck without any error message which is strange. 

  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @amahmood Please click on each action to expand—without seeing how you have the other actions set up, it's hard to provide any recommendations.

     

    Also, can you clarify which action the flow is stuck on? Post a screenshot of your flow run where it was stuck as well.

  • arshad236 Profile Picture
    on at

    Here are more attachments explaining where flow is stuck. it's stuck on for each.

     

     

  • arshad236 Profile Picture
    on at

    Goal is to get file from attachment and create it in document library.

  • arshad236 Profile Picture
    on at

    @creativeopinion  Did you get chance to review screenshots? I don't have any clue why it's stuck on for each without any valid reason and no error message. Thank you for your support on it.

  • arshad236 Profile Picture
    on at

    @creativeopinion I have already attached screenshots. Please let me know if information provided are helpful to understand the root cause of the issue. Thank you.

  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @amahmood You have the incorrect dynamic content in these fields. Reference this section of the tutorial. Please note: In this part of the tutorial I'm using the dynamic content in an Append to Array variable action (not necessary for your flow—unless you plan to email the attachments).

    creativeopinion_0-1720558465186.png

     

    Hope this helps!

  • arshad236 Profile Picture
    on at

    @creativeopinion much appreciated for your help. At least now I know, which action is failing for me and why. Interesting is this create action is still failing even though, I'm calling it outside of the foreach and populating values from the variables. 

    Lastly, I'm curious why action is not failing but stuck since I'm facing similar issue in some other workflows as well and wanted to understand the root cause to not get trapped and waiting for the flow but in reality, it's stuck and not moving.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard