on 12-14-2011 12:03 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears to be problem with MessageTransformBean parameters. The module is unable to convert the file into xml.
Regards,
Prateek Raj Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.