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 / "If file exists" not w...
Power Automate
Unanswered

"If file exists" not working for files on network drive

(0) ShareShare
ReportReport
Posted on by 7

PAD Version: 2.41.170.24032

Windows: 10 Pro 22H2

Folder Structure:

C:\foo\bar\test.txt

D:\foo\bar\test.txt (D: is assigned to a separate HDD as a drive.)

Y:\foo\bar\test.txt (Y: is assigned from a network drive, such as \255.255.255.255.)

 

Detaile:

When testing the "If file exists" with the folder structure mentioned above, the test.txt placed on C: and D:drives is correctly identified as "existing." However, the test.txt placed on the Y: drive is determined to be "non-existent."

Why is this happening?

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @oscar_  Hope you are doing well!!

     

    I suggest utilizing the complete network path notation instead of using the drive letter Y as highlighted in the below image

    Deenuji_1-1708499769998.png

    Deenuji_2-1708500204350.png

     

    Code:

    IF (File.IfFile.Exists File: $'''\\\\Server19\\Deenu\\SQLScripts.sql''') THEN
    Display.ShowMessageDialog.ShowMessage Title: $'''File Exists''' Message: $'''Exists''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed2
    END

     

     

    Best regards,

    Deenuji Loganathan
    Follow me on LinkedIn - Deenuji Loganathan 

     

    If I've successfully resolved your queries, please consider accepting this as the solution and giving it a thumbs up. Your feedback is greatly appreciated!

     

  • oscar_ Profile Picture
    7 on at

    Thank you for the response. I'll try giving instructions from the hostname.

    By the way, I forgot to mention earlier, but it used to work on Y: in the past (I don't remember which PAD version).

     

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @oscar_  Yeah even I got surprised when you are saying that is not working.

     

    For me its working on the both ways.

     

    Deenuji_0-1708500612659.png

     

    I am currently using PAD version 2.39.

     

    Thanks,

    Deenu

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If it used to work on previous versions, but does not work anymore, it might be a bug with the latest version. I suggest you report it to MS support. Also, try rolling back to a previous version, if you have it available.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard