cancel
Showing results for 
Search instead for 
Did you mean: 

B1UDT2B1UDT - markup in the document following the root element

Former Member
0 Kudos

Hi All

I've deleopped a B1 UDT 2 B1 UDT (same table in 2 databases) scenario.

When I try it I obtain this error :

The markup in the document following the root element must be well-formed.

there are the payloads (here in delete case but i've the same in Update or Add case)

- <b1im:Body>

- <b1im:Payload ObjectTypeId="" ObjectRole="A">

- <b1ie:B1IEvent xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" SysId="0010000100" SysTypeId="B1.8.8" Task="D" LocalObjectType="DOR_COLLECTION" UserName="manager">

- <b1ie:PrimaryKeyList>

<b1ie:PrimaryKey Key="Code" Value="9" />

</b1ie:PrimaryKeyList>

</b1ie:B1IEvent>

</b1im:Payload>

- <b1im:Payload ObjectTypeId="Z.B1.8.8_DOR_COLLECTION" ObjectRole="S">

- <DOR_COLLECTION>

- <row>

<Code />

<Name />

</row>

</DOR_COLLECTION>

</b1im:Payload>

- <b1im:Payload ObjectTypeId="Z.B1.8.8_DOR_COLLECTION" ObjectRole="R">

- <B1SQL xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:targetxsl="http://TargetXSLPrefixAlias" autocorrect="true">

- <Table action="delete" id="@DOR_COLLECTION">

<key id="Code" value="9" />

</Table>

</B1SQL>

- <B1SQL xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:targetxsl="http://TargetXSLPrefixAlias" autocorrect="true">

- <Table action="delete" id="@DOR_COLLECTION">

<key id="Code" value="9" />

</Table>

</B1SQL>

</b1im:Payload>

</b1im:Body>

I'm in B1 8.81 PL04 and B1i 8.8 PL04

I also do not understand why I have two B1SQL section...

If someone has an idea ?

Edited by: JULIEN LANCEAU on May 4, 2011 1:02 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Julien,

In order to understand I'll ask you some questions:

1. What is the result of the execution? The MessageLog shows a message in the Failure list? Is it there where you obtain the error message "The markup in the document following the root element must be well-formed"?

2. You are working with the same table name between 2 different databases. In that case you only need 1 object definition for both databases. Can you please confirm you only defined 1 object to be used as sender and receiver object?

3. In order to verify your xslt transformation please use the debug feature of XmlSpy. You can find information on how to debug an xslt transformation with XmlSpy in the web very easily. The option is inside the menu XSL/XQuery -> Start Debugger.

Regards,

Trinidad.

Former Member
0 Kudos

Hi trinidad and thanks regarding this issue.

1)It's the message I got in B1 Technical error and also in the message log failure part !

2)Yes it's the same object type !

3)I use another software (firstobject XML) with a webdav client to edit my XML files so I cannot debug with XMLSpy.

Good evening and thanks for your help

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Julien,

You can use XmlSpy trial version in order to evaluate it during 30 days.

I think it is really worth to pay the license for XmlSpy or any other editor with the debugging feature in order to be able to find out problems in the Xslt code.

Regards,

Trinidad.