SFTP Task -- Issue in placing files other than project folder


(sivaraman gangadharan) #1

Hello ,
I designed a SFTP download file task which works fine when placinjg the files in project subfolder but fails when placing the files on separate folder other than project . please let me know if we need to do a workaround to resolve this issue .

error :slight_smile:
29.12.2016 14:44:12 [DEBUG] [WF Persister] saving state-model took: 4
29.12.2016 14:44:12 [INFO] Task ‘SFTP Download File’ : failed with exception: Error downloading /etl/ST/PF/EDWPF/TgtFiles/PA_SHP_Detail_Extract.txt toE:\DQ_Data_Files\Input\dqd_Patient_Financials\Patient_Accounting\PA_SHP_Detail_Extract.txt - Not a directory: E:\DQ_Data_Files\Input\dqd_Patient_Financials\Patient_Accounting\PA_SHP_Detail_Extract.txt
com.ataccama.adt.internal.core.runtime.EwfRuntimeException: Error downloading /etl/ST/PF/EDWPF/TgtFiles/PA_SHP_Detail_Extract.txt toE:\DQ_Data_Files\Input\dqd_Patient_Financials\Patient_Accounting\PA_SHP_Detail_Extract.txt - Not a directory: E:\DQ_Data_Files\Input\dqd_Patient_Financials\Patient_Accounting\PA_SHP_Detail_Extract.txt
at com.ataccama.adt.task.exec.SFTPDownloadFile$EwfCustomStep.run(SFTPDownloadFile.java:90)
at com.ataccama.adt.internal.core.runtime.EwfTaskProcessor$ThreadSlot.run(EwfTaskProcessor.java:330)
29.12.2016 14:44:12 [INFO] — Stop initiated —


(Petya Minovska) #2

Hi Siva,

It seems that the path for targetDirectory is not defined properly. The target path should point to a directory. Could you please verify that the path is pointing to a directory and not to a file?
Here is the documentation for the SFTP Download File task.
In addition, if you have all the parameters defined correctly but still receiving the error, we would like to kindly ask you to share with us your workflow.

Regards,
Petya


(sivaraman gangadharan) #3

Thanks Petya , it worked .

Thanks
Siva


(Petya Minovska) #4

Hi Siva,

We are glad that the issue is resolved.

Regards,
Petya