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 / "Source folder doesn't...
Power Automate
Unanswered

"Source folder doesn't exist" error while moving files

(1) ShareShare
ReportReport
Posted on by 32

Hi,

 

I believe I've encountered an issue with PAD error reporting.
Let me explain the situation.

 

I have an .xlsx file that is a kind of database of clients and their data.

For each row (client), robot needs to download certain reports and organize them in file folders.
Before it downloads the reports for a certain client, it extracts client name via SQL select, and creates a folder with the same (client) name.

Downloaded files are located in the system download folder first. Robot renames them first to a non-generic filename and then moves them to the previously created folder. So the actions are "Rename" and "Move".

The issue arises after the successful renaming. In the "Move" action, as the source I state %RenamedFiles[0]% and as the destination %ClientFolder%.

The error I got when it tried to execute the "Move" action was "Source folder doesn't exist" which would mean that the system download folder didn't exist.
I checked all the variables at that point multiple times. Literally pasted the %RenamedFiles[0].FullName% value into file explorer and it opened the correct .pdf file. So the conclusion was that was actually nothing wrong with the source.


After a bunch of checking I found out that the issue was actually in the destination folder. As it pulled the client name from the .xlsx, some clients were named with a space at the end (client name ), but since that value was passed in the variable during the creation of the client folder and given the fact that the system doesn't allow creation of folders named with a space at the end, the issue was in fact in the destination, not the source.

 

I would recommend this issue to be fixed and correctly reported in the future, it would save some people a lot of time.

If any additional info needs to be provided, I'm always reachable here.

 

Cheers

 

p.s. I know that the downloads folder has some known accessibility issues, but this was definitely not the case here because all of the correctly named clients (without space) were processed without any problems.

I have the same question (0)
  • Suden Profile Picture
    3 on at

    I've got the same issue, any solutions so far ?

  • pchougule Profile Picture
    on at

    If your destination folder path has more than 40 characters the Move File command won't work.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard