Facing the issue on Move file or folder FTP activity

I have a folder with multiple files or empty. Just trying to move the files from one folder to another folder in same FTP by using the “move file or folder” FTP activity.
Facing the Error "Move File or Folder: No such file

when I check with directory exists with the full folder path, its true but getting issue on move file or folder activity.

FTP version using v2.4.0

Can someone assist me

@TJamuna,

  1. Use Enumerate Objects activity to retrieve all the files you have in the desired folder.
  2. Use For Each activity to iterate the output of Step 1.
  3. Inside For each use Move File or Folder activity to move the files.
1 Like

Hi @TJamuna
Try below steps.
Check FTP Permissions – Try moving files manually via an FTP client.
Use Rename Instead – Some FTPs don’t support “Move,” but allow renaming (RNFR → RNTO).

@TJamuna

try to look below thread

Try copy file and delete file instead of move file

@TJamuna

are you moving the folder or the file?

are you getting error only when files are empty?

cheers

Hi @ashokkarale


I have tried as you suggested but facing the same like "Move File or Folder: No such file issue

Hi @Anil_G
I am moving the files inside the folder.
I am getting the issue not only empty folder, Even the file present getting issue.

@TJamuna,

File or folder to move should be currentFile or whatever variable you defined in For Each activity.

hi @prashant1603765
I can be able to move the file manually just tried.

@TJamuna

if it is a file…why is a / at the end of path?

cheers

@ashokkarale
I have provided correct source folder path Inside the enumerate objects & stored variable type as below
image

@TJamuna

use currentFtpObjectInfo.FullName inside the for loop in the file field

cheers

@Anil_G
If i am not using the “/” at the end of the path as well facing the same issue.

@TJamuna

then it is not a full file path as you are trying for file…please try above expression inside for loop and check

cheers

@TJamuna,

Use it like this

@Anil_G

Inside the source files folder only, I have a destination folder means Archive folder.
When I checked currentFtpObjectInfo.FullName inside the for loop, I am getting Archive folder path first instead of files, Is that issue. Please let me know

@TJamuna

that can be an issue…try to ignore the path containing archive and run…use if condition

currentFtpObjectInfo.FullName.contains("Archve") then ignore else move file

if you are using without slsh as well it would fail as archive creates as round reference…so ignore that and make sure you uncheck include subfolders

cheers

@Anil_G @ashokkarale
Please check the xaml . Still facing the same issue
test1.xaml (11.9 KB)

I just tried to search the full file path manually in ftp getting same error no such file please check the screenshot. please assist me.

@TJamuna

as a first check can you please try to run in debug and see the exception details if you might get anymore info

also from screenshot I am not seeing .csv file there

cheers