cancel
Showing results for 
Search instead for 
Did you mean: 

Unsupported XSL Element Choose

naraayanan
Explorer
0 Kudos

Dear All,

I am getting below error.

Exception line 15 Unsupported XSL Element Choosen

Task Name : B1 PO to B1 SO.

we used Global Table Option in this task. we added one xsl transformation. we added below coding in that file.

<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:js="com.sap.b1i.bpc_tools.Javascript" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:uplt="urn:com.sap.b1i.xcellerator:upltdoc" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="" b1im:force="" uplt:force="" js:force=""> <xsl:output method="xml" encoding="UTF-8" indent="yes"></xsl:output> <xsl:param name="atom"></xsl:param> <xsl:param name="sessionid"></xsl:param> <xsl:variable name="msg" select="/bfa:unbranch/vpf:Msg[1]/vpf:Body/vpf:Payload[./@Role='S']"></xsl:variable> <xsl:variable name="vptsDoc" select="document('/com.sap.b1i.internal/xml/timestamp')"></xsl:variable> <xsl:variable name="vpts" select="concat($vptsDoc/*/@year,'/',$vptsDoc/*/@month,'/',$vptsDoc/*/@date,' ',$vptsDoc/*/@hour,':',$vptsDoc/*/@minute,':',$vptsDoc/*/@second)"></xsl:variable> <xsl:variable name="vpSender" select="/bfa:unbranch/vpf:Msg[1]/vpf:Header/vpf:Sender/@Id"></xsl:variable> <xsl:variable name="vpObject" select="/bfa:unbranch/vpf:Msg[1]/vpf:Header/vpf:Sender/@ObjId"></xsl:variable> <xsl:variable name="vpReceiver" select="/bfa:unbranch/vpf:Msg[1]/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover='P']/@Id"></xsl:variable> <xsl:template match="/"> <Msg xmlns="urn:com.sap.b1i.vplatform:entity"> <xsl:copy-of select="/bfa:unbranch/vpf:Msg[1]/@*"></xsl:copy-of> <xsl:copy-of select="/bfa:unbranch/vpf:Msg[1]/vpf:Header"></xsl:copy-of> <Body> <xsl:copy-of select="/bfa:unbranch/vpf:Msg[1]/vpf:Body/*"></xsl:copy-of> <Payload Role="X" id="{$atom}" ts="{$vpts}"> <xsl:call-template name="transform"></xsl:call-template> </Payload> </Body> </Msg> </xsl:template> <xsl:template name="transform"> <xsl:variable name="HQSysCode" select="/bfa:unbranch/vpf:Msg[1]/vpf:Header/vpf:ReceiverList/vpf:Receiver/@Id"></xsl:variable> <xsl:for-each select="document('/com.sap.b1i.vplatform.scenarios.design/vPac.VSP.B1PO2B1SO/vTbl.SysPropertiesTable.xml')//table/row"> <row> <xsl:for-each select="./col"> <col> <xsl:value-of select="."></xsl:value-of> </col> </xsl:for-each> </row> </xsl:for-each> </xsl:template> </xsl:stylesheet>

<xsl:copy-of select="/bfa:unbranch/vpf:Msg[1]/vpf:Header"></xsl:copy-of>

We bold that error line number (15). why this error occurred and how to solve this issue?


Accepted Solutions (0)

Answers (1)

Answers (1)

HuanYang
Employee
Employee
0 Kudos

Hello Lakshmi Narayanan,

The bold sentence (/bfa:unbranch/...) is generated automatically when you add a conditional processing or for-each processing(branch).

To diagnose the issue, could you please upload the scenario?

Thanks&Best regards

Huan Yang