Pentaho

 View Only

 PDI 9.2 carte serving back a malformed xml

Antonio Petrella's profile image
Antonio Petrella posted 12-08-2021 05:21
Hi all,
  I have a transformation called from Carte through the executeTrans endpoint that serves back an xml to Carte via the XML output component configured with the "Pass output to servlet" checked.

In PDI 9.0 this was working fine and I received from carte the XML created in the XML output component as the following example:
<rows>
<Row>
<status>Return status here</status>
<code>123</code>
</Row>
</rows>​

In PDI 9.2 this changed as the system appends the <webresult> element to the XML output , returning this (malformed) xml:

<?xml version='1.0' encoding='UTF-8'?>
<rows>
<Row><status>Return status here</status> <code>123</code></Row>
</rows>
<webresult>
  <result>OK</result>
  <message>Execution of transformation finished</message>
  <id/>
</webresult>

Is there any way to silence the <webresult> element or to make the <row> element a child of <webresult>?

Thanks, 
 Antonio