cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter error in file content conversion

Former Member
0 Kudos

Hi Friends,

I am using FILE receiver adapter, transport protocol- NFS, msg protocol-File content conversion.

Sending msg is an idoc. File is being sent to application server of the XI system (for test purpose)

The message is shown as successful in SXMB_MONI but no file is created .

In message monitoring for adapter engine an error is shown -

"<b></b>file adapter receiver channel <comm channel name> is not initialized. Unable to proceed MP: eception caught with cause com.sap.aii.af.ra.ms.api.Recoverable Exception. Channle has not been correctly initialized & cannot process messages "<b></b>

However if i change the message protocol to FILE then it works correclt & a xml file is saved in system.

It seems the problem is with using file content conversion in the adapter farmework.

Can someone please help.

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

><i>It seems the problem is with using file content conversion in the adapter farmework.</i>

Well your diagnosis is correct.

If you provide with the Target XML and the content conversion parameters you have used we can give this a shot. But with the current info, noone can help you further as the cause of the issue has been already determined.

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

target xml is of type :

<record>

<field1>value</field1>

<field2>value</field2>

<field3>value</field3>

</record>

<record> occurs 1:unbounded, all the elements are of type xsd:string

In file content conversion i use

Recordset structure : record,*

record.fieldSeparator ,

thanks

Former Member
0 Kudos

hey

>><record> occurs 1:unbounded,

this is the problem,a valid XML must have a single root and in ur case it has multiple roots(as u have 1-unbounded for <record>)

try wrapping whole of the data type under one tag, for e.g.<Recordset>

and then give correct FCC parameters

thanx

ahmad

Former Member
0 Kudos

Datta,

After you change your structure as Ahmad specified then you dont give recorset structure as <i><b>record,*</b></i>. Instead you should give as <i><b>record</b></i> only. Then it should work like a boom.

Also you specify

record.fieldSeparator ,

record.endSeparator 'nl'

That should work.

---Satish

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Apart from the Settings provided by Satish, one thing I would suggest you check / confirm is that you have a Root node in the target !

<root>

<record>

<field1>value</field1>

<field2>value</field2>

<field3>value</field3>

</record>

</root>

Regards

Bhavesh

Answers (1)

Answers (1)

Former Member
0 Kudos

problem solved using root node- thanks (&points) to all .

Former Member
0 Kudos

Hi

I have configured in a similar manner

Below is the XML Message

<?xml version="1.0" encoding="UTF-8"?>

<ns0:FileMatFlat_MT xmlns:ns0="http://ztest.com/test/idoc2file">

<RecordSet>

<Row>

<Author>SivaSakthi</Author>

<Transfered_By>SIVASAKTHI</Transfered_By>

<Long_Mat_Num>0000056090</Long_Mat_Num>

<Material_Number>0000056</Material_Number>

<Material_Desc>TESTING132123KLOSDFJ</Material_Desc>

</Row>

</RecordSet>

</ns0:FileMatFlat_MT>

My FCC parameter;

RecordStructure : Row

Row.addHeaderLine 1

Row.fieldSeparator #

Row.endSeparator 'nl'

My Output looks like

Row

SivaSakthi

Can some one please tell me why the others are not coming.