cancel
Showing results for 
Search instead for 
Did you mean: 

Message content nopt visible in channel- Message transformBean

Former Member
0 Kudos

Hello All,

I am using Message TransformationBean to convert flat file into XML. The channel is able to pick the flat file and in the audit log steps every thing is looking fine. But If I see the payload in the message content tab of channel it says below error:

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

-


XML document must have a top level element. Error processing resource

I mentioned the document namespace and document name correctly.

Can you please tell me the reason for the above

Thanks,

Regards,

M

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

please try to check parametrs in message tranformation bean,

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

Transform.ContentType -


text/plain;charset=utf-8

xml.Detail.endSeparator -


'nl'

xml.Detail.fieldFixedLengths -


<String lenghts>

xml.conversionType ---SimplePlain2XML

xml.recordsetStructure --- node

have you seen below thread,

please go through below blog

regards,

ganesh.

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

It appears to be problem with MessageTransformBean parameters. The module is unable to convert the file into xml.

Regards,

Prateek Raj Srivastava

Former Member
0 Kudos

Hello Prateek,

This is how flat flie strucure is:

BH....

DL....

BH...

DL...

BH...

DL..

TR..

Here BH-Batch Header,DL-Detailed Line Item,TR-trailer

my Message Type strucure is as below:

Message Type

RECORD 1 *

BATCH HEADER 1 1

DETAILD LINEITEM 1 *

TRAILER 1 1

And I defined the parameters as beow in the module configuration:

xml.recordsetName RECORD

xml.recordsetStructure BATCH HEADER,1,DETAILED LINEITEM,*,TRAILER,1

and other necessary parameters.

Now I am getting below error in the channel:

Error: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'HEADER_DETAILS''; nested exception caused by: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'HEADER_DETAILS'

Can you pls help me here

\Regards,

Moorthy

maciej_jarecki
Contributor
0 Kudos

Hi

seems your input file structure is wrong. I'm not sure that elements lik BH and DL can be mixed/alternately. For me file should look like BH,BH,BH,DL,DL,DL...

BR

Maciej