cancel
Showing results for 
Search instead for 
Did you mean: 

File to SFTP file transfer

0 Kudos
564

HI Experts,

I want to transfer files from NFS to SFTP server

I am facing issue in file transfer during file name parameter.

I used ASMA in my both sender and receiver channels with FileName checked

My files are txt and excel files and I gave

1. *.* in my source File name as I want all the files placed in the folder to be picked

and tried many options in target file name parameter like

FileName , %FileName% , .* Also but I couldnot transfer files as the error say "%FileName%" already exists.

My FileName formats will be Ex. ABCD.123 and 123456.789

Please suggest me what will be my filename parameters in sender and receiver channels.

Thanks

View Entire Topic
former_member190293
Active Contributor
0 Kudos

Hi!

It's worth mentioning that SFTP adapter uses namespace for ASMA attributes - "http://sap.com/xi/XI/System", while File adapter uses "http://sap.com/xi/XI/System/File" namespace. Change ASMA attributes namespace accordingly in SFTP channel settings.

Regards, Evgeniy.

former_member190293
Active Contributor
0 Kudos

Hi!

Once again:

Sender file channel puts file name to ASMA attribute "FileName" having namespace "http://sap.com/xi/XI/System/File". Receiver SFTP channel tries to read value from ASMA attribute "FileName" with namespace "http://sap.com/xi/XI/System" (according to your current settings). Are you still sure, that's correct? Or you should change namespace to "http://sap.com/xi/XI/System/File" for your SFTP channel?

Regards, Evgeniy.

0 Kudos

Hi Evgeniy,

Do you mean I have to change my Receiver SFTP channel namespace to "http://sap.com/xi/XI/System/File" . However my Receiver SFTP channel has namespace as "http://sap.com/xi/XI/System" in ASMA now as mentioned in your previous answer. My sender channel has ASMA with this sender-file-channel.jpg

Thanks.

former_member190293
Active Contributor
0 Kudos

Hi!

Yes, in order to read file name from sender channel, SFTP channel needs to refer to the same ASMA atrribute, which contains that name - "FileName" attribute belonging to "http://sap.com/xi/XI/System/File" namespace (since it has been filled by File channel).

Regards, Evgeniy.

0 Kudos

Thanks Evgeniy. Issue resolved.