cancel
Showing results for 
Search instead for 
Did you mean: 

Error while placing file on SFTP server using dynamic configuration

former_member585940
Participant
0 Kudos

Hi

we have one scenario from Idoc to SFTP and we are using dynamic configuration for the file name on receiver side.

This is the udf used for dynamic configuration.

But when we are sending the idoc,we are not able to see the file on receiver SFTP. However, everything is in successfull status. Channel and moni status.

If I uncheck the Adapter Specific attribute,it ll work and i am able to see the file at SFTP side but i will not get the file name.

This is the module parameters used by us.

Hidden is some constatnt value,we need in file name.

Please check it and let me know the solution.

Thanks

Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Your dynamic configuration code is pointing to File Adapter only but not SFTP adapter.

Please use the below line of code and try.

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SFTP","FileName");

Also change the namespace value in the channel (ASMA) to "http://sap.com/xi/XI/System"

Regards,

Veerendra

former_member585940
Participant
0 Kudos

Hi Veerendra,

I have updated the udf and ASMA settings also. Still I am not able to see file on FTP server.

Can you once check the module parameter i have used and tell me if it is correct or not?

Thanks,

Vikram

Former Member
0 Kudos

Hi,

Please delete the "seeburger" module which you have added in the module tab.

Hope you are using the standard SFTP adapter provided by PI?

Regards,

Veerendra.

Former Member
0 Kudos

Hi,

Hope you are using standard SAP provided SFTP adpater.

This issue is because of namespace problem.

Please try the below steps..

Please change the udf code to the below line...

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SFTP","FileName");

Change the namespace value in the channel (ASMA) to "http://sap.com/xi/XI/System/SFTP"

Also delete the seeburger adapter module in the module tab.

Regards,

Veerendra

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Vikram,

Have you started/stopped the cc in RWB after you have made changes to the cc in ID?

Regards,

Mark

former_member585940
Participant
0 Kudos

Hi,

Ok I ll delete it but then which parameter i should use for SFTP file name.

Yes,it is standard SFTP adapter.

Regards,

Varinder Singh

former_member585940
Participant
0 Kudos

Hi Mark,

I have tried that too but no luck

Regards,

Varinder Singh

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Vikram,

How about a java stack restart?

Regards,

Mark

Answers (4)

Answers (4)

former_member585940
Participant
0 Kudos

Hi All,

This issue is resolved now.

Few changes i tried and worked.

1.in dynamic configuration UDF, we need to use http://sap.com/xi/XI/System/SFTP namespace.

The previous one we used was for File adapter.

2.This same namespace needs to be used in ASMA settings.

3.No seprate module parameter required for this standard SFTP adapter.

Thanks a lot for your support.

Regards,

Vikram

Former Member
0 Kudos

Hi Vikram,

Which SFTP adapter are you using exactly? Seeburger or Advantco ?

Because this is not the same!, and you, based on your screenshot, you are using config of both

If Advantco, I can help as mine with DynamicConfiguration + ASMA works...

regards.

Mickael

former_member585940
Participant
0 Kudos

Hi Mickael,

We are using standard SFTP adapter not the seeburger one.

Regards,

Vikram

Former Member
0 Kudos

Hi Vrikram,

ok, so do not try to use parameter options of Seeburger or of Advantco...

on scn, there is a doc called "How to configure SFTP adapter in SAP PI" for PI 7.11 of September 2012.

Moreover in service.sap.com, under section "installation guide", I think there also a doc called "SAPNWSC - PI Secure Connectivity Add_On - Master_Guide" and "Installation Guide" for PO, not yet read.

regards.

Mickael

former_member585940
Participant
0 Kudos

Thanks but it still does not resolve my problem

Former Member
0 Kudos

No, but now you know in which direction to go...:

1. remove your bad seeburger/advantco's options.

2. in UdF, with your DynamicConfiguration use namespace "http://sap.com/xi/XI/System/File" as usual with FILE adapter and variable "FileName".

3. Read this blog, which explain how to say to SFTP adapter, that the target Filename is not stored inside its own namespace (e.g http://sap.com/xi/XI/SFTP), but was stored in namespace "http://sap.com/xi/XI/System/File" under variable: FileName

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/27/pgp-and-sftp-faq-sheet

This other blog is also interesting:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/11/sap-sftp-sender-adapter-a-quick-w...

regards.

Mickael

iaki_vila
Active Contributor
0 Kudos

Hi Vikram,

My few cents, even the sxmb_moni shows a succesful flag you would check the communication channel monitoring, inside this you can get more errors from the receiver side. Go to RWB->Component Monitoring->Adapter Engine->Communication channel monitoring. Check the logs, if you find any error you could share it with us.

Regards.

former_member585940
Participant
0 Kudos

Hi Inaki,

That's what the issue is..even in communication channel mointoring it is successfull..no error nothing..

but at sftp side we are not getting the file.

Regards,

Varinder Singh

Harish
Active Contributor
0 Kudos

Hi Vikram,

check the option of "Fail If adapter specific message attribute is missing" option in ASMA and test the schenario.

Regards,

Harish

former_member585940
Participant
0 Kudos

Hi Harish,

Its SFTP receiver channel and i do not see any option of 'fail if attribute missing' in ASMA.

Regards,

Vikram