I have a Process model where the flow of nodes is like this: I am sending a file to SFTP temporary folder, and adding a delay time node for 10 seconds and next i am using a Rename and Move file over SFTP smart node where i am renaming the file and then moving it from temporary SFTP folder to another permanent folder. At this point, the system is throwing the below error:
'Error renaming file in the remote server. See application server log for more details. Error Message: Specified file path is invalid.'
My guess here is that the file is not having enough time to move from one folder to another, because if I just restart the node its working fine. How do i add a delay in the 'Rename and Move File Over SFTP' so that the file will have enough time to move from one folder to another.
Discussion posts and replies are publicly visible
poojithak2926 said:Error renaming file in the remote server.
With the error it seems even rename is failing. If the path given to temporary sftp folder is incorrect then system wont be able to find the file to rename. It might also be possible that the 10s delay is not enough. So check the path of temporary folder for any invalid character or increase the delay to 30s or something more to see if it works!Also, if you want to rename ultimately you can rename within Appian using Edit Document smart service and then send to temporary folder/move to expected folder directly. What is the reason for not renaming beforehand?