14 Replies Latest reply: Jul 26, 2012 9:53 AM by Bryan Sanches RSS

SAP PI 7.0 Dynamic Configuration Receiver File Adapter Invalid FileName

Bryan Sanches
Currently Being Moderated

Hello,

 

I searched through all the blogs and forums but I still cannot find the error for my configuration.  Keep in mind that I tried using FileZilla with the requested file name, and it was transferred successfully.

 

We have a request for a specific file name in "OC_RRD_NORSKE_Purchase Order_Timestamp.xml". As such I used ASMA. 

 

I also ticked the following attributes in ASMA:

1. Use ASMA

2. Fail if Adapter-Specific Message Attributes Missing

3. File Name

 

Below is my UDF

 

UDF: where a = Purchase Order and b = currentDate

 

String filename = new String("");

 

 

DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

 

DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");

 

filename = "OC_RRD_NORSKE_"+a+"_"+b+".xml";

 

conf1.put(key1,filename);

 

return filename;

-------------

 

 

 

Here is the error log in the Runtime Workbench:

 

25.07.2012 15:24:59 Success The message was successfully retrieved from the receive queue.

25.07.2012 15:25:00 Success Write to FTP server "10.111.2.34", directory "\test\out", -> file "OC_RRD_NORSKE_00201/12001772/OP_20120725150238.xml"

25.07.2012 15:25:00 Success Transfer: "BIN" mode, size 11825 bytes, character encoding -

25.07.2012 15:25:00 Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 Unexpected reply codeFilename invalid

25.07.2012 15:25:00 Success Acknowledgement creation triggered for type: SystemErrorAck

25.07.2012 15:25:00 Success Acknowledgement creation triggered for type: AckNotSupported

25.07.2012 15:25:00 Error Exception caught by adapter framework: Unexpected reply codeFilename invalid

25.07.2012 15:25:00 Success Acknowledgement sent successfully for type: SystemErrorAck

25.07.2012 15:25:00 Success Acknowledgement sent successfully for type: AckNotSupported

25.07.2012 15:25:00 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Unexpected reply codeFilename invalid: com.sap.aii.adapter.file.ftp.FTPEx: 550 Unexpected reply codeFilename invalid

25.07.2012 15:25:00 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Unexpected reply codeFilename invalid: com.sap.aii.adapter.file.ftp.FTPEx: 550 Unexpected reply codeFilename invalid.

25.07.2012 15:25:00 Error The message status set to NDLV.

-----------

Actions