cancel
Showing results for 
Search instead for 
Did you mean: 

Seeburger SFTP - Message Transformation Bean Issue

Former Member
0 Kudos

Using Seeburger SFTP adapter to read a tab delimited file. File is being successfully read; however, content conversion need to be performed to convert the file content to XML. Thus, using Message Transformation Bean with the following module parameters.

Issue: It is reading the file as is u2013 there is not content conversion is being performed.

Processing Sequence:

1 localejbs/Seeburger/solution/sftp Local Enterprise Bean solutionid

2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean mtb

3 localejbs/CallSapAdapter Local Enterprise Bean exit

Module Configuration:

mtb Transform.Class com.sap.aii.messaging.adapter.Conversion

mtb Transform.ContentType text/xml;charset=utf-8

mtb xml.conversionType SimplePlain2XML

mtb xml.documentName XXX_EXPENSES_mt

mtb xml.fieldContentFormatting trim

mtb xml.fieldNames FIELD1,FIELD2,FIELD3,FIELD4

mtb xml.fieldSeparator '0x09'

mtb xml.processFieldNames fromConfiguration

mtb xml.structureTitle RECORD

The following the noticeable details on CC:

Error type: TASK_ERROR >> Error date: 12/5/10 12:42 PM >> Description: Polling finished with errors. 1 file initiated. 1 file not polled due to errors.

Message initiated succesfully

Error type: TASK_ERROR >> Error date: >> Description: File <amex.dat> could not be polled from directory </usr/sap/interfaces/FTP1/send> on host <sapdv1ci>; Reason: removeFile: File xxx.dat could not be removed. SftpStatusCode: SSH_FX_NO_SUCH_FILE; Reason: No such file

Any help is greatly appreciated.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved by removing the adapter configuration "send message as attachment".

Former Member
0 Kudos

Check the following...

1. Make sure you don't have any scripts running at your target folder.

Example: If you are reading your file from TEST folder make sure you don't have any scripts running here.

2. In File Setting section make sure you uncheck Delete file checkbok.

Regards

Srikanth Baki