'SFTP Rename File' Command Query
Posted: Wed Jul 20, 2022 12:09 pm
Hi there,
I've gone through the process of automating one of our daily tasks that has been long overdue to be moved away from a manual run each day. The process is as follows and is rather straightforward:
- A client uploads a file to the root of a folder (Inbound) on their FTP site
- We log in and download the file to a network folder on our server, which imports the file into our system
The above is already automated, but the next part is where the anomaly occurs.
Note: The file in question has the naming convention of 'OR123112.CSV' which is 'Order-MM-DD-HH.CSV'.
I'm using the SFTP Rename File command as I saw recommended on another forum post on here to move the file from the root of the 'Inbound' folder to a folder found in the same directory 'Inbound/Archive'. When the automated step in the task runs, we appears in red and reads:
E: 20/07/2022 11:12:18: Rename error: /Inbound/OR123112.CSV -> Inbound/Archive/OR123112.CSV
E: 20/07/2022 11:12:18: An error occurred. Step #6 (SFTP Rename file "{FILETODOWNLOAD}" to "/Inbound/Archive").
E: 20/07/2022 11:12:18: Task execution is aborted
However, when I check and refresh the directory and folders on the FTP site, the file has been successfully moved.
Can you advise why the error is showing in the log even after it has performed the task successfully? I'm currently running Robotask 9.1.0.1079.
Thanks in advance.
I've gone through the process of automating one of our daily tasks that has been long overdue to be moved away from a manual run each day. The process is as follows and is rather straightforward:
- A client uploads a file to the root of a folder (Inbound) on their FTP site
- We log in and download the file to a network folder on our server, which imports the file into our system
The above is already automated, but the next part is where the anomaly occurs.
Note: The file in question has the naming convention of 'OR123112.CSV' which is 'Order-MM-DD-HH.CSV'.
I'm using the SFTP Rename File command as I saw recommended on another forum post on here to move the file from the root of the 'Inbound' folder to a folder found in the same directory 'Inbound/Archive'. When the automated step in the task runs, we appears in red and reads:
E: 20/07/2022 11:12:18: Rename error: /Inbound/OR123112.CSV -> Inbound/Archive/OR123112.CSV
E: 20/07/2022 11:12:18: An error occurred. Step #6 (SFTP Rename file "{FILETODOWNLOAD}" to "/Inbound/Archive").
E: 20/07/2022 11:12:18: Task execution is aborted
However, when I check and refresh the directory and folders on the FTP site, the file has been successfully moved.
Can you advise why the error is showing in the log even after it has performed the task successfully? I'm currently running Robotask 9.1.0.1079.
Thanks in advance.