cancel
Showing results for 
Search instead for 
Did you mean: 

How to use File Content Conversion at Receiver side

Former Member
0 Kudos

Hi all,

i have file to file scenario, text file (FCC)--text file(FCC)

sender side FCC worked correctly and gave success in MONI

in Receiver Communication channel monitoring, its giving the error as

*java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'*

I have Header and Line Item at Receiver end to generate the file, i mention those parameters in FCC like this

Record set structure -- Header,Line_Item

Header.fieldFixedLengths--3, 5, 16

Header.fieldNames--Row_ID,Company_Code,Reference_No

Line_Item.fieldFixedLengths-- 3, 5, 5

Line_Item.fieldNames-- Invoice_Line_Item,Line_Number,Company_Code

Please suggest what and all the parameters that i need to mention

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please use the following

Recordset structure : Header,Line_Item

Header.fieldFixedLengths: 3, 5, 16

Header.endSeparator: 'nl'

Line_Item.fieldFixedLengths: 3, 5, 5

Line_Item.endSeparator: 'nl'

Thanks

Aamir

Former Member
0 Kudos

Hi Aamir,

This is the Error it is generating if i mention the parameters as u said

Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'

Regards

Former Member
0 Kudos

Hi Krishna,

Can you put the payload after message mapping from sxmb_moni so that we can see the structure what you are sending to the adapter.

Regards,

---Satish

Former Member
0 Kudos

>>Unknown structure '' found in document'

What is this double quote (') in your structure?

Can you test your payload after message mapping in sxmb_moni

sxmb_moni->double click your message->Technical routing->Payloads->Main document.

there seems to be some issue with the payload.

Thanks

Aamir

Former Member
0 Kudos

Aamir,

sxmb_moni->double click your message->Technical routing->Payloads->Main document

There is no content here, it is like this

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

<ns0:MT_Invoice_Details_SAP xmlns:ns0="http://FIle_SAP_Invoice_Details" />

Regards

Former Member
0 Kudos

Hi Krishna,

So some problem with your mapping. Copy the payload before message mapping and test whether it is working or not?

Regards,

---Satish

Former Member
0 Kudos

Satish,

You are right, my inboud payload itself formation is wrong when i test in mapping

Thanks

Regards

Answers (2)

Answers (2)

Former Member
0 Kudos

On the receiver side,you only need fieldSeparator and endSeparator.

Please do your FCC as per the below blog

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Thanks

Aamir

Former Member
0 Kudos

Hi Aamir,

In this Blog, they didnt mentioned the header in Recordset structure

That is the major problem here for me.

i have Header and Line item

and fixed lenghts

Please let me know how to mention all the parameters

Regards

Former Member
0 Kudos

Should'nt the config be -

Record set structure -- Header,1,Line_Item,*

Also check the field name are right...

Regards,

Arvind R

Former Member
0 Kudos

Hi,

I mentioned as you said, and giving this error

Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages

6/18/09 2:57:47 PM 04528570-ea08-4b24-3dcb-8868189196de Channel has not been correctly initialized and cannot process messages

6/18/09 2:57:47 PM 04528570-ea08-4b24-3dcb-8868189196de Message processing started

6/18/09 2:56:47 PM 34351b98-0e64-46c3-13de-de1992175c60 Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages

6/18/09 2:56:47 PM 34351b98-0e64-46c3-13de-de1992175c60 Channel has not been correctly initialized and cannot process messages

Regards