02-27-2020 07:17 AM
HI,
I was reading earlier post ppl are having issue with File Operation Snap.
I am having same issue. I am trying to copy/Move file to one location to another.
I have used File POLLER snap to find the file. and using FIle Operation snap but its giving me an error. enough the folder is empty it says file is already there.
Can some one please help me.?
THanks
Solved! Go to Solution.
03-26-2020 10:35 AM
In that case, the input binary data has zero byte. You need to select the boolean property “Write empty file” in the File Writer Snap.
02-27-2020 09:25 AM
Which protocol are you using? (FTP, SFTP, S3…)
If you are only moving one file, does the Target path specify down to the file name or just the new directory?
02-27-2020 10:01 AM
Hi,
With the file poller snap I m getting files from Our server (3 files)and using SFTP I need to transfer them files to another server and move the send files on our server to send folder
I tried using file operations it’s giving error
02-28-2020 02:03 AM
Hi.
I am trying 2 things
Also image of the snap of file operations
03-02-2020 03:45 PM
Please have a look at the Snap reference document for File Operation Snap.
Snap Behavior for Key Operations > FTP, SFTP and File Protocols > Copy Operation > S. No. 6
S. No. 6 is a case when Source is a regular file, Target is an empty directory and ‘Error if exists’ is true.
As shown in the table, the expected result is an error “Target already exists.”
You may have expected to copy the source file into the directory specified in the Target property, but the Snap does not work that way. You should build an expression which produces a full path for the target file, e.g. _Destination_Path + $Path.substring($Path.lastIndexOf(“/”) + 1)