XSLT Mapping error

Hi All
I am working on PI 7.1 where I have customized standard XSLT mapping according to my requirement.
I have to add 2 fields in the standard data type ReplenishmentOrder_Notfication from SNC 7.0 SWCV.
In standard scenario once IDOC STPPOD.DELVRY03 is released from ECC the PI scenario send this to SNC Proxy ReplenishmentOrderNotification_In.
In my requirement I have to send XML file generated from IDOC to one of Application Folder. I have customized data type, message type, operation mapping, service interface by coping standard things.
So the changes I have done in standard XSLT mapping are just changin name of data type and not added any mapping for the two new fields I have added to the data type as its not require at the moment.
When I am running test I am getting follwoing error in Trace. Here please notice that its mentioning standard xslt mapping program name only though on the top you see customized names.
Please give your inputs to resolve the issue. Thanks.
Operation Mapping
StppodDelvry03_MT_ReceivedDeliveryNotification_01
Name
StppodDelvry03_MT_ReceivedDeliveryNotification_01
Namespace
http://sap.com/xi/SNC/Global
Runtime error
TransformerException occurred during XSLT mapping StppodDelvry03_ReceivedDeliveryNotification_01 (http://sap.com/xi/SNC/Global, 46c20a71-248e-11dc-c4be-dd500a115642, -1)
<Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace> <Trace level="1" type="T">Interface Mapping http://sap.com/xi/SNC/Global StppodDelvry03_ReceivedDeliveryNotification_01 </Trace> <Trace level="1" type="T">TransfromerException during XSLT processing: Thrown: javax.xml.transform.TransformerException: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(, row:1, col:8)(, row=1, col=8) -&gt; com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(, row:1, col:8) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:251) at com.sap.aii.ib.server.mapping.execution.AbstractMappingTransformer.transform(AbstractMappingTransfor
Edited by: Amol on May 22, 2009 3:26 PM

Hi Amol
for the error CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV
<Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace> <Trace level="1" type="T">
just check this Thread issue is solved by restarting  the service verifySenderAgreement
at thread
Re: Wrong Sender Agreement
Thanks
Abhishek

Similar Messages

  • XSLT mapping error in PI 7.1

    Hi,
    The below xslt compiles and runs fine with SAPXML toolkit but the same fails with error
    u201CCannot find external method 'java.util.Map.get' (must be public).".
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:map="java:java.util.Map"
      xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
      xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
    <xsl:output indent="no" />
    <xsl:param name="inputparam"/>
    <xsl:template match="/">
        <!-- change dynamic configuration -->
        <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/File', 'Directory')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
        <xsl:variable name="new-value"    
            select="concat($dynamic-value, 'subfolder\')" />
        <xsl:variable name="dummy"
            select="dyn:put($dynamic-conf, $dynamic-key, $new-value)" />
        <!-- copy payload -->
        <xsl:copy-of select="." />
    </xsl:template>
    </xsl:stylesheet>
    Regards,
    Vishal

    Hi,
    I am already using jdk 5 for the same.
    Can you please tell me what is the setting(s) that need to be done for XSLT to be used with JDK5.
    I have a knowledge on how to develop a XSLT mapping, but fail to understand what is the relation between XSLT and JDK5.
    It will be very helpful to me if you post your reply to my question here: Basic Settings in Operation Mapping
    Appreciate your help and time.
    Thanks.

  • XSLT mapping errors

    Hi,
    I am tring to develope a senario with XSLT mapping. As part of this i have
    1. Created Soruce and Target data types and message types
    2. Created Inbound and outbound message interfaces
    3. Imported both source and target messages types (XSD) files to mapforce tool and did all mapping b/w source and target.
    4. Tested the mappings with input file in mapforce tool and mappings are working fine.
    5. Copied the content from the XSLT tab and saved it as .xsl file and zipped the .xls flle.
    6. Imported  Zip file under import archive section.
    7. Created a interface mapping with the XLS file
    After this i tried to test the mappings in the interface mapping using the 'Test' Tab.  Interface execution failed with below error message.
    "Transformer configuration exception occurred when loading XSLT mm_file.xsl (http://testxslt.com/xsltmap, e4ce06a0-231e-11db-b54f-c55b0aeb1850, -1
    Could not load stylesheet.com.sap.engine.lib.xml.util.NestedException: Attribute 'separator' not allowed for element 'xsl:attribute' "
    Could you please suggest me where i did wrong and give me light on this.
    Thanks in advance..
    Regards
    Sree

    Hi Reddy,
    It says Attribute 'separator' not allowed for element 'xsl:attribute'. So please check this. Probably you would have copied the xsds and done mapping in map force. I feel this attribute has only few values and in that values you dont have separator.
    Try to open the xsd in altova and see the possible values if any are there.
    Regards,
    ---Satish

  • XSLT Mapping Error while receiving Base64Binary content

    Dear Experts,
    I am new to SAP PI and working on PI 7.11. In our project we had a requirement to receive PDF file content in Base64 format from third party system by consuming the service provided by third party system with synchronous communication. The adapter we need to use is SOAP
    The reason to use XSLT mapping is as our third party system used some tokens in both the request and response header, I used XSLT mapping to add the required details in request header after receiving the request from ECC system and skip the details in response to send the response to ECC system.
    I have build two XSL files with XSLT mapping programs one for request and another for response using Oxygen XML editor tool. Both are checked, validated without any errors and also tested in ESB – Operation mapping which is successfully executed without errors.
    The third party is sending the PDF content in Base64Binaryformat. I have also tested the WSDL from Oxygen to check the whether the service is working fine, which also successfully receiving the response from third party system. 
    The thing I do not understand and not able to figure out the problem is, when executing the service from ECC by sending a sample request, there is no response coming back and receiving an error saying
    “TransformerException occurred during XSLT mapping Response_03 (URN:COM.XYZ_GET_ABSENCE_DETAILS, aa3a6491-e318-11e2-c1d7-c14948250cb4, -1)”
    I have checked the Communication Channel which working fine. And also the message status in message monitoring wherein Request message has “Cancelled with errors” status and Response has “To Be Delivered” Status.
    Could you please any of you help to figure out the issue and resolve the same.
    Thank you in advance.....
    Regards,
    Govardhan Duvva.

    The response am receiving is like below
    <!-- XML Validation Inbound Channel Response -->
    <html><head><title>Apache Tomcat/6.0.18 - Error report</title><style>
    <!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
    H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
    H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
    BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
    B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
    P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
    A {color : black;}A.name {color : black;}HR {color : #525D76;}-->
    </style> </head><body>
    <h1>HTTP Status 415 - </h1>
    <HR size="1" noshade="noshade"><p>
    <b>type</b> Status report</p><p><b>message</b>
    <u></u></p><p><b>description</b>
    <u>The server refused this request because the request entity is in a format not supported
    by the requested resource for the requested method ().</u>
    </p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>
    And also in SXMB_MONI, there are two call adaptor nodes as in below picture, which means our request is going to the third party system ?

  • XSLT Mapping Error - Split-MappingRoot-Tag missing

    Hi,
    I am getting "Split-MappingRoot-Tag missing" Error while using XSLT mapping. I am using 3 mappings in one Operation Mapping.
    1)  Java Mapping 2) Message Mapping 3) XSLT Mapping.
    When I have these mappings in a BPM one after another it is working fine.
    But ,if I put these mappings one after another in one Operation mapping it is giving problem after message mapping is complete.
    I tried to remove XSLT mapping and Msg Mapping is producing correct output which can be used as input for XSLT mapping.
    Any idea what could be the reason. Any hep is appreciated.
    ERROR
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>Split-Mapping</SAP:P1>
      <SAP:P2>Root-Tag missing</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Split-MappingRoot-Tag missing</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    Is there any chance XSLT mapping starting before message mapping is complete
    Regards,
    Ramesh

    Thank you for your response.
    I tried to put XSL in the following format by adding that namespace. but it still giving same error.
    <?xml version="1.0"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    Code ---
    </xsl:stylesheet>
    Also I itried to put Java mapping before XSLT mapping to see what payload is coming to XSLT.
    I am getting payload as:
    <?xml version="1.0" encoding="UTF-8"?> <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1>
    XML Payload Data --
    </ns0:Message1></ns0:Messages>
    Any one knows how to fix this issue? appreciate your inputs
    Regards,
    Ramesh

  • XSLT mapping error using document function

    Hello,
    We migrated from XI 3.0 to PI 7.1. XSL is made use of for mapping. We are encountering this error of 'File not found' when we use the document funcion to look into an xml file. The xml file along with the xsl map is zipped and uploaded. I am not sure of why this is happening in PI 7.1. What is the cause. Looking forward to your early replies with solutions.
    Kind Regards,
    InduShekar

    Check the file contents and see whether the content is same as that of the older version.  You can export the same file from xi and pi and  see both are same and having same contents. Check the file is imported in the right namespace.

  • Xslt mapping can't get date from java

    I am trying to get the current date/time from java in my xsl mapping. I can't seem to get it to work. This is the code I am using in my xsl file.
    <IDField>
      <xsl:template name="currentTime" xmlns:date="java:java.util.Date">
    <xsl:value-of select="date:new()"/>
      </xsl:template>
    </IDField>
    also tried
    <xsl:value-of select="java:java.util.Date:new()"/>
    I simply want to put the current date time in the IDField. What am I doing wrong? I am currently getting back a xslt mapping error. Here's the error....
    Transformer configuration exception occurred when loading XSLT
    I've tried a few different ways, but none have worked. What I'm looking for is the specific code that would display the date/time.
            - Emmett

    I figured it out. The main problem was that I didn't have the following in this line....
    <xsl:stylesheet version="1.0" <b>xmlns:java="http://xml.apache.org/xslt/java" </b>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" .....>
    Once I included xmlns:java="http://xml.apache.org/xslt/java" all the java functions were available. I also found the great date template. In case anyone wants to check it out here it is...
    <xsl:template name="today"
                  xmlns:cal="xalan://java.util.GregorianCalendar">
      <xsl:variable name="rightNow" select="cal:getInstance()" />
      <!-- The GregorianCalendar class counts months from zero
           so we have to add one to get the customary number -->
      <xsl:variable name="month" select="cal:get($rightNow, 2) + 1" />
      <xsl:variable name="day" select="cal:get($rightNow, 5) " />
      <xsl:variable name="year" select="cal:get($rightNow, 1)" />
      <xsl:value-of
       select="$year" />-<xsl:value-of
       select="$month" />-<xsl:value-of
       select="$day" />
    </xsl:template>
    I found this template here...
    http://cafeconleche.org/books/xmljava/chapters/ch17s03.html
               - Emmett

  • MIAL RECIEVER CC -- ISSUE USED XSLT MAPPING

    Hi All,
    I have a Scenario   in which  IDOC  is a sender and Mail Adaptert  is reciever .The Xi is supposed to sent the Email notification to the client . Mail adapter is SMTP configured correctly ,Reciever  Mail CC is up and running but Error  is :Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    The Mapping here is used is XSLT mapping and in SXMB_MONITOR , Error shown is :
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">TRANSFORMER_CONF_EX</SAP:Code>
    Could you plesae help  me this  Issue asap .
    Thanks,
    Vara

    Hi Abhi ,
    I checked in ATOVA SPY XML Check , it seems to be the issue in XSLT mapping .
    Part of XSLT mapping  Error line:
    when test="//IDOC/EDI_DC40/RCVLAD = '3157411730014'">   --There was a single  qoute missing
    Tested in Atova with payload , it worked
    Thanks for your  supprt as well.
    Best Regards,
    Vara

  • How to start with XSLT Mapping

    Hi Everyone,
        How to learn XSLT Mapping,Error Analysis,Triggering alerts and Trouble shooting in XI.Plz could anyone help to get through these areas?I'm facing many problems in my inetrviews in the above mentioned areas.I eagerly waiting for the response.
    Regards,
    Swapna..

    Some of the blogs are
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    etc

  • XSLT mapping throws error in XI, but not in XMLSPY

    Hi everybody,
    I got a really complex XSLT mapping. It works fine in XMLSPY.
    But when I execute the mapping in XI, I get the following error:
    Error during XSLT Transformation: Could not load stylesheet.com.sap.engine.lib.xml.util.NestedException: Operator or ')' expected.
    I asume there is a special character that XI cannot execute.
    has anybody an idea of finding this character?
    Thanks, regards Mario

    Hi Mario
    Check your input data, and also try to see test in Interface mapping test tab,
    you will get an idea about the input is correct or not
    see the below links..
    <u><b>XSLT Mapping</b>[/u
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    <u><b>XSLT Mapping with java enhancement</b></u>
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping - Using ABAP XSLT Extensions for XI Mapping
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • Raise error in an external-function of XSLT-mapping (ABAP)

    Hi,
    we implemented a xslt-mapping (ABAP) in PI with external-functions.
    It's a great feature and works fine.
    Now, we have to implement an error handling:
    The external-functions are reading data from an abap table. We have to stop the mapping (if a value in the table is missing).
    We wanna show an error inside the PI-Monitoring (red flag) with a valid error text.
    How can I raise an error inside an external-function?
    regards
    Wolfgang Hummel

    Hi Michal,
    thanks a lot for your answer.
    Can I set dynamic configuration inside an external funktion of an ABAP-XSLT?
    I added the CX_MAPPING_FAULT-Exception to my external-function method and raised an exception inside my external-funktion ... and I got an "UNCAUGHT_EXCEPTION" inside my mapping - bad
    regards
    Wolfgang

  • XSLT Mapping - Configuration error

    Hi there,
    I have loaded an XSLT mapping that references 2 other mapping templates (in separate files). When I test the main mapping (in the Interface Mapping test tool) I get the following error:
    Transformer configuration exception occurred when loading XSLT POSbankingPacketToWPUFIB.xsl (http://ournamespace, 36cb0f00-1a9b-11d8-96af-e1600a114c15, -1)
    The trace in the tool showed the following:
    Creating XSLT mapping POSbankingPacketToWPUFIB
    URIResolver called with href = EDI_DC40.xsl and base =  POSbankingPacketToWPUFIB.xsl
    Source resolved. System id = EDI_DC40.xsl
    URIResolver called with href = WPUFIB.WPUFIB01.xsl and base = POSbankingPacketToWPUFIB.xsl
    Source resolved. System id = WPUFIB.WPUFIB01.xsl
    Any ideas on how to resolve this problem would be appreciated. Info below may also be helpful:
    - I have tested the XSL mapping in xmlSpy and it produces the required result but in the IR the error above occur. - I am using <xsl:stylesheet version="2.0" .... > in my definition
    - I am calling templates from the POSbankingPacketToWPUFIB.xsl that exist in both EDI_DC40.xsl and WPUFIB.WPUFIB01.xsl
    - I am using variables, template parameters and <xsl:text disable-output-escaping="yes"> in the referenced xsl stylesheets.
    Regards
    Christiaan

    Hi there,
    Thank you for your answer. All of those things were okay.
    The problem was related to XPath 2.0 syntax which does not seem to be supported by XI. The statement in question was:
    <xsl:for-each select="POSbankingPacket/DetailGroup[GroupType ne 'HD']">
    I have now switched to XSLT 1.1 and will hopefully find a adequate replacement statement.
    Thank you,
    Christiaan

  • Error in XSLT Mapping when special character is passed through

    Hi Experts,
    We have used the XSLT mapping. When ever any special character like é is being passed, then the below mentioned error is displayed in the Integration engine.
    Error occurred during XSLT mapping of the application
    It is working fine with normal case if we are not sending any special character.
    I am not sure whether the problem exists in XSLT mapping or the issue with the legacy system?
    Early response would be highly appreciated and points will be awarded.
    Thanks in Advance,
    Jitender

    hi,
       [Problem in transforming XML to string using XSLT;
    Chk the above link.might solve ur issue.
    Regards.
    Siddhesh Naik

  • Error in XSLT mapping while using string functions

    Hi All,
    While using tokenize() and substring-before() functions in XSLT mapping,we are getting an error.The error message is Unexpected symbol "" So while using string functions in XSLT mapping do we have to use any header functions.
    Please through light on syntax etc.,of string functions in XSLT.
    Thanx in advance,
    Lokesh Dhulipudi
    Edited by: LOKESH DHULIPUDI on Dec 27, 2007 7:32 AM

    Hi,
    Hope you have gone thru this help:
    http://w3schools.com/xsl/default.asp
    Rgds, Moorthy

  • Error in Current Date in XSLT Mapping

    Hi Experts,
      I am having a problem in Dispaying the current Date and Time ( or System Date and Time ) .As per my Project Requirements I need do XSLT mapping
    My XSLT Mapping Looks like
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://XYZ.eu.ABC.com">
    <xsl:template match="/">
    <a:A2A>
        <a:PNo>
             <xsl:value-of select="Path/Path/PNO"/>
       </a:PNo>
       <a:Rev>
             <xsl:value-of select="Path/Path/REVISION"/>
       </a:Rev>
       <a:Current Date>
             <xsl:value-of select= ""/>
       </a:Current Date>
       <a:Current Time>
             <xsl:value-of select= ""/>
       </a:Current Time>
    </xsl:template>
    </xsl:stylesheet>
    Can any one please let me is there is any function to  dispaly the Current Date and time.

    Hi ..
    I just tried executing both the maps.. Both of them excutes well in both XMLSpy and Stylus Studio .. But having below problems in Executing in PI
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
    <xsl:template match="/aaa">
    <xxx>
    <xsl:value-of select="current-dateTime()"/>
    </xxx>
    </xsl:template>
    </xsl:stylesheet>
    Then I got the error
    javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Function with name 'current-dateTime' not found in context library.
    with
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:datetime="http://exslt.org/dates-and-times"
    exclude-result-prefixes="datetime">
    <xsl:template match="/">
    <currtime>
    <xsl:value-of select="datetime:dateTime()" />
    </currtime>
    </xsl:template>
    </xsl:stylesheet>
    I have got
    Unable to find resource http://exslt/org/dates-and-times.class (http://NAMESPACE Name) in the following software component versions: 0fe18820-410a-11dd-979b-dc8591374305

Maybe you are looking for

  • Unique ID generator?

    Is there a way to give an object a unique ID when inserting it into the document via an extension? I can use a JavaScript random number generator but didn't know if the Dreamweaver API has a built in function. Thanks.

  • How to pass applet variable to a jsp

    I just want to pass applet variable to a jsp page to access database. But how . Help me please.

  • Business Rules take 60 minutes to open in EAS

    We are experiencing an issue with opening individual Business Rules in EAS. The rules associated with a particular application are taking on average 60 minutes to open. Performance for opening these rules had never been great (usually took a minute o

  • LiveCycle Designer 8.0.1291.1.339988

    I have been using this program since November, and while very intuitive and robust, I am finding it has some serious bugs. I have had repeated crashes, often while resizing tables; in fact, the tables in general cause me much grief. Is there an updat

  • Share only one screen in iMessages

    I often screen share with colleagues, but they have two monitors and this makes the screen of relevance very small on my screen. Is there any way to share just one of the screens  in iMessages? Skype, for example, gives the monitor to share as an opt