cancel
Showing results for 
Search instead for 
Did you mean: 

File to SFTP scenario. File name dinamic

Former Member
0 Kudos

Hello,

I have a scenario from File(NFS) to a SFTP adapter.

In the sender server there will be a flat file that will change his name everyday, and I just hava to move to a SFTP server the file.

My problem is that in the SFTP adapter I have to put a name for the filename, but I want the same name as it has in the source server. And this name changes.

I have found some post but for me does not work.

Any ideas??

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

sahithi_moparthi
Contributor
0 Kudos


Hi,

In Receiver SFTP server mention ASMA settings as below:

Sender side mark "FileName" under ASMA settings

Former Member
0 Kudos

Hi,

I attach you the pictures

File in  Sender ftp

Sender apater

Receiver adapter

ASMA in receiver adapter

The file in the SFTP server.

It has the name newFile and I want it to be test_20150730_000000038

Thank you very much

sahithi_moparthi
Contributor
0 Kudos

Hi,

Mention In filename as "*" instead of newFile

Muniyappan
Active Contributor
0 Kudos

use namespace as http://sap.com/xi/XI/System/File in the receiver SFTP channel.

Former Member
0 Kudos

Hi, it still does not work

I have change the receiver adapter, but now it shows a problem in the log.

The log error

Any idea?

sahithi_moparthi
Contributor
0 Kudos

Hi,

In the above screen shot,i can see the namespace is mentioned incorrectly.It should be

http://sap.com/xi/XI/System/File

Also Uncheck create directory option.

Remove ~ infront of IN.Mention /IN in  filePath

Please refer my screenshot in the above post and let us know if still issue persits.

Muniyappan
Active Contributor
0 Kudos

could you please check namespace still system is missing in configuration.

it should be http://sap.com/xi/XI/System/File

Former Member
0 Kudos

It works fin, thank you very much

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Alejandro,

Yes, the solution provided by Muniyappan is correct.

For SFTP adapter, the namespace will be a custom which we can see in the receiver channel if we enable ASMA for it. Since you are enabling ASMA in sender file adapter that means PI will capture the filename under the namespace http://sap.com/xi/XI/System/File. So, in order for the sftp adapter to get the same name, enable the ASMA in receiver sftp channel and under the namespace mentioned as http://sap.com/xi/XI/System/File.

This will solve your issue. Try this out and let us know if you get struck anywhere.

Regards

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

Please share your sender and receiver ASMA settings screen shots here.