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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply to each only wor...
Power Automate
Unanswered

Apply to each only working on smaller numbers

(0) ShareShare
ReportReport
Posted on by 5

Hi,

 

I use the flow below to send emails to clients with there specific Excel spreadsheet attached and two other attachments that don't change. It works well 75% of the time. But, it can get very sporadic sometimes. The problem I'm running into today is that files in the name range of 00001 - 10000 work, but when I get to 20000+ it start returning a incorrect "false" expression. I can confirm the file it is looking to match is in the correct folder, but it continues to say it is not. Help!?

PA Screen 5.PNG
PA Screen.PNG
PA Screen 2.PNG
Categories:
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 


    It will all depend on this:

     

    Rhiassuring_0-1672181009510.png


    Is a name getting truncated in OneDrive, maybe? Is it formatted differently somehow? 

    Can we see an example of the file name from Excel & from OneDrive for something in the +20000 range? 

    Also, are  you doing this sequentially? Like, going from 00001, to 00002, to 00003........ to 100099, etc? Or is it all over the place?

    R

  • BWNow Profile Picture
    5 on at

    Thanks for your assistance!

     

    I don't think they are formatted differently, all files are all created by running a macro on the same Excel sheet. I run them sequentially, and try to limit what is in the folder to the series I am running(10000, 20000, etc.) 

    The condition is supposed to just be File Name(Formatted) is equal to Display Name(from list files in folder), I added the other two lines to try and troubleshoot/capture more.

    PA Screen 4.PNG
    PA Screen 3.PNG
    PA Screen 6.PNG
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    And that OneDrive folder is always the same? That's where all of the files exist? 

    I ask because I see you've mentioned, "...try to limit what is in the folder to the series I am running", but in your screenshot from the OP, it looks like it's hardcoded to /Tsomething.

    Or are there subfolders in there? 

     

  • BWNow Profile Picture
    5 on at

    Yes, it's always that folder, and it has no subfolders. I create the file on my desktop, then move the files into the folder Tony when I run the flow.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard