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 / Condition after Get Fi...
Power Automate
Unanswered

Condition after Get Files (Properties only) is acting very strange.

(0) ShareShare
ReportReport
Posted on by 4

I have the following data file.

Polly_0-1647130211412.png

The objective is to check a folder to see if there is a file exists ie. Polly.pdf.

If the file is not there - then the flow is to generate a pdf (I need to ensure I only create the file once .. ever)

I have put a Post message in chat so that I can follow which route the flow in going in.  

What I cant understand is that its is doing some of Condition = True and Some of Condition = false.

 

Can anyone clarify

Here is my flow

Get files (with filter on filename.pdf)

Condition = length(outputs('Get_files_(properties_only)')?['body/value'])  <> 0

If True (ie file exists) - Post a message = File found - take no action

If false - Post a message - File not found - Generate the pdf.

 

Polly_2-1647130533782.png

 

Polly_1-1647130499292.png

 

The folder is empty at first so the first run through Get file will be 0

Polly1 returns - Polly1 not found & file is generate

Polly2 returns - Polly 2 found and still generates the files (note Polly2 isnt in the folder)

Polly3 returns - Polly 2 found and still generates the files (note Polly2 isnt in the folder)

and so on as shown below.

Polly_3-1647130909245.png

 

But it still creates the files 

Polly_4-1647130946077.png

 

 

How can it does a bit of one condition and a bit of the other.

 

Im very new to Power Automate so not sure what is going on.  There is no Generate file If the file has been found.

 

DO i need to clear length(outputs('Get_files_(properties_only)')? or something like that before it loops round again?  Im guessing now!  

Would appreciate any help

 

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard