cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to display tree view; Error when parsing an XML document

Former Member
0 Kudos

Hello Experts,

I am doing JDBC to ABAP PROXY(ECC) using SAP PI 7.4

PI picks the file and shows it as success in PI . The message reaches the ECC and shows success in SXMB_MONI with only header and no payload. The proxy program is not executed because of no payload.

I found that I mapped all fields except the header field and hence the data in the body was not coming in backend systems.

After mapping the Header field new error is coming  like

com.sap.aii.utilxi.misc.api.BaseRuntimeException:The processing instruction target matching "[xX][mM][lL]" is not allowed.

In the payload the format is getting changed.

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

-<MT_SO_PHP> ---- it should be: <ns0:MT_SO_PHP>

-<row>

<inquiry_id>12</inquiry_id>

<inquiry_no>009</inquiry_no>

<order_type>ZCHN</order_type>

</row>

</MT_SO_PHP>

Please help me to resolve this issue.

Thanks,

Sayanti

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Sayanti,

I think you are setting a right source XML, and the root tag can't be generated according your mapping.

Regards.

Former Member
0 Kudos

Hello Inaki,

I have checked the Mapping program but there is no issue with the Source and Target Message type. Also I have checked the 'Document Name' in the Sender Communication Channel and there the Source Message Type name is given.

Please help me to solve this issue.

Thanks,

Sayanti

former_member182412
Active Contributor
0 Kudos

Hi Sayanti,

Make sure XML namespace is defined under your receiver message type.

Regards,

Praveen.

Former Member
0 Kudos

Hello Praveen,

The Namespace is defined under the Message Type.

Thanks,

Sayanti

former_member184720
Active Contributor
0 Kudos

Did you try reloading the message types /re-create the mapping?

Former Member
0 Kudos

Hello Hareesh,

I have changed the occurrence to 0..1 for each fields and recreated the mapping. But the issue is same.

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

-<MT_SO_PHP> ---- it should be: <ns0:MT_SO_PHP>

-<row>

<inquiry_id>12</inquiry_id>

<inquiry_no>009</inquiry_no>

<order_type>ZCHN</order_type>

</row>

</MT_SO_PHP>

former_member182412
Active Contributor
0 Kudos

Hi Sayanti,

Check the XML namespace for MT_SO_PHP message type (Receiver proxy message type).

Regards,

Praveen.

dipen_pandya
Contributor
0 Kudos

Hi,

Refer to this similar thread.

You can try after changing the Occurrence of root node to 0..unbounded instead of 1..unbounded.