cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping, Transformer configuration exception occurred when loading

Former Member
0 Kudos

Hi,

My source message is an IDOC HRMD, I need my target message to include exactly

<EPERSON xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage">

I have therefore suggested to use XSLT mapping.

Here is the test_mapping.xsl that I Imported as Zip in Imported Archives.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://polyright.com/xi/HR">
	<xsl:template match="/">
		<EPERSON xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage">
               	  <xsl:for-each select="HRMD_A07/IDOC/E1PLOGI">
		  <CONTEXTPERSON personid="" id="">
		        <PERSON action="add">
                           <TITLE></TITLE>
                           <FIRSTNAME><xsl:value-of select="E1PITYP/E1P0002/VORNA"/></FIRSTNAME>
                           <SECONDNAME></SECONDNAME>
                           <NAME><xsl:value-of select="E1PITYP/E1P0002/NACHN"/></NAME>
                           <ADDRESS1></ADDRESS1>
                           <ADDRESS2></ADDRESS2>
                           <POSTALCODE></POSTALCODE>
                           <CITY></CITY>
                           <COUNTRY></COUNTRY>
                           <COUNTRYID></COUNTRYID>
                           <PROFESSION></PROFESSION>
                           <LANGUAGE></LANGUAGE>
                           <LANGUAGEID></LANGUAGEID>
                           <PERSONTYPEID></PERSONTYPEID>
                           <CREATIONDATE></CREATIONDATE>
                           <BIRTHDATE></BIRTHDATE>
                           <CATEGORY></CATEGORY>
                         </PERSON>
                  </xsl:for-each>
		</EPERSON>
	</xsl:template>
</xsl:stylesheet>

When I test the Interface mapping, I get the following error:

Transformer configuration exception occurred when loading XSLT test_mapping.xsl (http://polyright.com/xi/HR, 783938d1-4463-11dd-b136-e03ac0a80c15, -1)

Searching through the forum, it is probably an namespace issue, but I have no idea of what needs to be changed. Any suggestions ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The XSLT file was wrong: the </CONTEXTPERSON> was missing...

Now it works...

prateek
Active Contributor
0 Kudos

Try running end-to-end scenario and check if you could get detailed error message.

Also check if the problem arises from the "ns0" usage.

Regards,

Prateek