File TO File-Using XSLT mapping (for Beginners) --- Error in XSLT

I am following this wiki (TO File-Using XSLT mapping (for Beginners))
When creating  Xslt from the MapForce, when I click on the XSLT Tab I am getting the following error
How to correct this error ?.....
Message was edited by:

The XSD you are using is from Data Type and you are using it for mapping.
Instead export XSD for Message Type and also pass the XML schema for source that will solve the issue and your XSLT will be generated.

Similar Messages

  • File to JDBC using JAVA Mapping

      Can u explain me about the above scenario of File to JDBC using JAVA Mapping.
       Iam new to XI explain above in detail.
    *Points will be Rewarded*

    If your mapping is one to one then dont go for java mapping use graphical mapping.
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 --> for jdbc receiver: file -JDBC
    Here are the link which will help you in writing the stored procedure:
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    Stored Procedures-
    Chirag Gohil

  • How to use offline map for windows store app using c# and xaml

    Hi friends,
    I want to integrate offline map in my windows store app but I am not able to achieve that.
    Below is my requirement:
    When a user wants to go somewhere where she/he doesn't want to use wi-fi or mobile data but wants to use map to assist her/him to roam around. For this I want to give an option to download the map for that region/area before leaving for that place and there
    she/he can use map even in offline.
    Is it possible that I can achieve this using Bing maps?
    If yes then tell me the processes to follow.
    If no then can I achieve this using "Here" or by using any other API or by tweaking any way?
    Note: I am showing maps in case of online and user can search for directions or any places in that. I am using Bing maps for that.

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Bug when using a Map for SelectItems?

    Hi there,
    I think I found a pretty bad bug.... I don't think this behaviour is intended:
    I create a selectOneListbox which uses a map for storing the selectItems. The property holding the value is type compatible with the value in the map. When the component is shown, the wrong item is selected (ie NOT The one that is returned by the value property). If I use SelectItem[] for the selectItems, it works. Here is some sample code:
    The methods in the bean (managed bean with the name helloBean). The value property always returns 12 .....
      public Map getItems(){
        Map map = new HashMap();
        map.put("Hello_11", new Integer(11));
        map.put("Hello_12", new Integer(12));
        map.put("Hello_13", new Integer(13));
        map.put("Hello_14", new Integer(14));
        return map;
      public SelectItem[] getItems2(){
        SelectItem[] items = {
            new SelectItem(new Integer(11), "Hello_11"),
            new SelectItem(new Integer(12), "Hello_12"),
            new SelectItem(new Integer(13), "Hello_13"),
            new SelectItem(new Integer(14), "Hello_14"),       
        return items;
      public Integer getValue(){
        return new Integer(12);
      }..... here is how the selectOneListboxes are initialized ......
    <h:form id="helloForm">
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items}"/>
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items2}"/>
    </h:form>.... so both boxes refer to the same value property but their selectItems are taken from a map and a SelectItem[] array respectively. I would expect to see in both boxes the text "Hello_12", BUT:
    <select name="welcomeForm:_id0" size="1">     
         <option value="14">Hello_14</option>
         <option value="12">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="11">Hello_11</option>
    <select name="welcomeForm:_id2" size="1">     
         <option value="11">Hello_11</option>
         <option value="12" selected="selected">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="14">Hello_14</option>
    </select>as you can see, only for the array the correct value is initially selected.
    Can anyone confirm this is a bug - or - what i would prefer tell me how to get around this?
    Thanks a lot!

    If getValue returns "12" (a String value), the situation is reversed.
    See the page 9-31 of the specification. It says:
    4. A java.util.Map where the keys are
    converted to Strings and used as labels, and
    the corresponding values are converted to
    Strings and used as values for newly
    created javax.faces.model.SelectItem
    instances. The instances are created in the
    order of the iterator over the keys provided
    by the Map.

  • Have any books or videos been published on using Director 12 for beginners?

    Have any books or videos been published on using Director 12 for beginners?

    As Sean mentioned, there are no Director 12 books around. Here are some links that may be helpful:
    My tutorial site:
    Video tutorials links I've found:

  • XSLT Mapping for creating Excel files

    Hi ,
    I am following the blog /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible by Michal regarding conversion of Flat files to Excel file format.
    My input xml format is
             <?xml version="1.0" encoding="utf-8"?>
    i need to convert this file into an Excel format with each record in single rows with Column Header names as Name,EmpID,Location.
    Could you please suggest how the XLST mapping should be done for this as i am very new to XSLT mapping concept.
    Please suggest how we can attain the target structure(datatype) and  steps to do this XSLT mapping.
    Note:- We are not doing Adapter module for this conversion.

    > i need to convert this file into an Excel format with each record in single rows with Column Header names as Name,EmpID,Location.
    This can be done with file content convertion. Use delimiter ; for excel
    > Could you please suggest how the XLST mapping should be done for this as i am very new to XSLT mapping concept.
    If you do not understand XSLT, you you want to maintain your development, in case if an error?

  • How to load data using two maps for the same source file in Import Manager

    I am trying to load the source data to MDM using two map files, since one map is too big (creating memory error).
    However the first map data able to see after loading (SAP data) but when loading second map(nonSAP data) using the remote key to match the previously loaded SAP key ,even if MDM is processing the data it is not reflecting in data manager.
    Is there any reason for this.
    Appreciate your suggestion and tips on this.

    Hi Reo,
    As ur requirement seems,In the second pass perform recording matching by select default import action as "<b>update null fields only"</b> for those data records which are matching and "<b>create</b> " for those data records which are not matching with previous data records from SAP system.
    If you define "update null fields only", then only the key of the new record from NON SAP will get appended to the existing record. And if you select "create" then it will create new records and will apply NON SAP key on it.
    Please check the remote key values using data manager.Key is applied in the records or not.
    Remember that import maps are client specific. Remote key comprises of both key and client system.So be sure that you are connecting to two different client systems.
    I have tried this and this is working fine on my system.
    Shiv Prashant Dixit

  • Use XSLT mapping for multiple payloads

    Do you mean multiple mapping as
    If you are generating XSLT mapping using any tool then you have can take xsd from the messagemapping and just map it.
    in you  target structure message1, message2 should be there.
    Gaurav Jain
    Reward Points if answer is helpful

    Thank you for your response.  I tried several variations - including this one - but I can't seem to get the results to match your screen shot.  Also, I am not sure if the tag should be 'Content-Type' or content_type ....
    <xsl:stylesheet xmlns:xsl="" version="2.0" xmlns:ns0="urn:sap-com:document:sap:rfc:functions" xmlns:ns="">
         <xsl:output method="xml" encoding="utf-8" indent="no" omit-xml-declaration="yes"/>
         <xsl:template match="/">
              <xsl:apply-templates select="ORDERS02"/>
         <xsl:template match="ORDERS02">
                        <xsl:text>Purchase Order: </xsl:text>
                        <xsl:text>multipart/mixed; boundary="b1"</xsl:text>
                   <xsl:text>Content-Type: text/plain; charset=us-ascii </xsl:text>
                   <xsl:text>Content-Transfer-Encoding: 7bit </xsl:text>
                   <xsl:text>My Order</xsl:text>
                   <xsl:text>Content-Type: text/plain; charset=us-ascii</xsl:text>
                   <xsl:text>Content-Transfer-Encoding: 7bit</xsl:text>
                   <xsl:text>Content-Disposition: attachment; filename="order.dc"</xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>A </xsl:text>
                        <xsl:text>ORD 238            </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>The Wolf Organization        </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>PO Box 2044                  </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:text>York, PA  17404-2044         </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:apply-templates select="IDOC/E1EDP01"/>
                        <xsl:text> </xsl:text>
         <xsl:template match="IDOC/E1EDP01">
              <xsl:text>                </xsl:text>

  • Dynamic file name while using java mapping

    Hi All,
    i need help.
    I am using java mapping to convert xml file in zip file.
    Now i need to set output file name as
    Site id is comping in xml file.
    How can i do this?
    I tried many thing but didnt get the solution..
    As their is no message mapping so I am unable to use ASMA.
    Please help.

    Did you check the wiki? You just need to add the code into you java mapping..
      Map mapParameters = (Map) transformationInput.getInputHeader().getAll();
       // a) Set Output File name
                                                             StreamTransformationConstants.DYNAMIC_CONFIGURATION), "");
       DynamicConfiguration conf = (DynamicConfiguration) mapParameters.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
       DynamicConfigurationKey key = DynamicConfigurationKey.create("", "FileName");
       //Depending on your requirement edit this logic. Here, NewDynamicName + CurrentDate will be output file name.
       DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
       conf.put(key, ("NewDynamicName_" + dateFormat.format(new Date())) + ".pdf");

  • Is it possible to start a sending file adapter by using a mapping lookup fu

    Our Scenario:
    1) SAP ERP generates a file and an IDOC with information about
        (path/filename and receiver system)
    2) XI takes this IDOC and should collect the file from SAP FTP
    3) Depending on the information XI should send the file to the correct receiver
    Best regards

    Hi Daniel,
    ftp adapter cannot work in sync mode (cannot take a specific file)
    in one of your requirements like that we created
    a java proxy to handle that (asynchonous)
    it fetches the file and sends it to the XI
    if you have IDOC with filename and if you can use a
    proxy then you won't even have to use a BPM for that
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • XSLT mapping for fixed values

    i am doing a XSLT mapping. i have a field which has fixed values(can be performed using graphical mapping). but the same i am not able to implement for XSLT. can anyone give me a idea about this
    <removed by moderator>
    Edited by: Mike Pokraka on Jul 24, 2008 12:57 PM

    Step u2013 By u2013 Step Simple Approach for XSLT Mapping                         
    Step – By – Step Simple Approach for XSLT Mapping                         
    generic xslt mapping part 1                                                                                     
    generic xslt mapping part2                                                                           
    xslt recursive templates                                             
    XSLT: Recursive Templates

  • XSLT Mapping for Namespace Prefix replacement

    Hey All,
    I have below XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:OrderChange ns0:transactionPurposeIndicator="Change" xmlns:ns0="">
    And i need to convert it to below format:
    <?xml version="1.0" encoding="UTF-8"?>
    <pidx:OrderChange pidx:transactionPurposeIndicator="Change"   xmlns:pidx="" xmlns="" xmlns:xsi="" xsi:schemaLocation=" Z:\integration\trunk\schemas\pidx\OrderChange_1-2.xsd">
    Can someone please let me know the XSLT Mapping to achieve this. I have tried searching on the forum but haven't found much help.
    Appreciate your help.

    Hi Saif,
    The below blog and doc will be useful
    Useful XSLT mapping functions in SAP XI/PI
    Changing Namespaces and the encoding format of XML - Process Integration - SCN Wiki…

  • Use google map for find my frinds

    I am using find my friends app. But the apple maps is not as dtailed as google maps.
    Can i use google maps instead of apple one?
    Please help me...


  • Idoc with XSLT Mapping ALE service error

    Hi all,
    I have the same problem with "converting to an ALE logical system".
    In this case I have a Business System without logical system name in the SLD. This information for the IDoc control record, like SNDPOR, I will map with a xslt mapping.
    In weblogs from Michael are the properties for the directory described.
    I selected in the comminication channel the last two check boxes, as described in SAP help.
    "Take Sender from Payload
    If you want to take the sender of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    Take Receiver from Payload
    If you want to take the receiver of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    If you set both of the above indicators, you do not require a heading mapping and do not need to set the alternative identifiers.
    However, you must ensure that the SNDPRN, SNDPRT, RCVPRN, and RCVPRT fields are set in the IDoc control record.
    Setting the senders and receivers of a message from the payload simplifies configuration and speeds up processing.
    If the sender and receiver are not set correctly in the payload, the resulting error is only visible in the receiving system. "
    In my XSLT-Mapping I set the appropriate Idoc fields:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="">
    <xsl:output method="xml"/>
    <xsl:preserve-space elements="*"/>
    <xsl:template match="DATEN">
    <xsl:attribute name="BEGIN">1</xsl:attribute>
    <xsl:attribute name="SEGMENT">1</xsl:attribute>
    <xsl:variable name="pid" select="substring(.,1,1)"/>
    But in the sxmb_moni the message is red with the error message :" converting to an ALE logical system"
    Have you any idea?
    With another interface I used a graphic Mapping and the same properties in the directory and it works.

    Hi togehter,
    it works now, after cpa_cache and sxi_cache.
    and and ...
    Without: _-...
    I would write a blog.
    Does know one how that goes here?
    SDN is great

  • Missing mapping for field error

    Here is the set up:
    Person extends Party using InheritanceType.JOINED
    Household extends Party_Relationship using InheritanceType.JOINED
    Household has a Set of Persons mapped One to Many unidirectional
    When I use PrimaryKeyJoinColumn on the Person and/or Household to rename the column say to PERSON_POID instead of PARTY_POID and when adding Persons to the Household Set the following error occurs:
    Exception Description: Missing mapping for field [PERSON.PARTY_POID].
    Descriptor: RelationalDescriptor(com.dhsnet.cms.domain.Person --> [DatabaseTable(PARTY), DatabaseTable(PERSON)])
    What am I missing? If I do not use the PrimaryKeyJoinColumn mapping this error does not occur. I am stumped! Any help is greatly appreciated.
    Here are the mappings:
    @TableGenerator(name="party", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party", allocationSize=1)
    @DiscriminatorColumn(name = "PARTY_TYPE")
    public abstract class Party extends AbstractEntity{
    public class Person extends Party{
    @TableGenerator(name="party_relationship", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party_relationship", allocationSize=1)
    @Inheritance(strategy = InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_RELATIONSHIP_TYPE", discriminatorType=DiscriminatorType.STRING)
    public abstract class PartyRelationship extends AbstractEntity {
    public class Household extends PartyRelationship {
    On the Household Object:
    @JoinTable(joinColumns = @JoinColumn(name="HOUSEHOLD_POID"),
    inverseJoinColumns = @JoinColumn(name="PERSON_POID"))
    protected Set<Person> getMembers() {
    return members;

    This looks to be the same/related issue that has already been entered. See
    The alternative like you mentioned, is to not use a PrimaryKeyJoinColumn to rename the column in the joined inheritance case.

Maybe you are looking for

  • Need to remove space for a field when displayed in ALV Report

    Hi, I have material field of length 18, but the content is only 10 char. I need to remove the extra space when it is displayed on ALV Report. Is there any option in ALV field catalogue

  • IPod Touch 2G 3.1.1 bug No Music in the Library

    I was shocked when I saw the music library of my iPod Touch, my music files were all erased from the library but the free space is still the same and no videos erased. I am sure that I did not pressed the option to erase anything from the iPod. Just

  • Do I need to shut down my iMac (intel) before attaching an external HD?

    Hi Should I be shutting down my iMac before plugging in an external HD (LaCie).  It'll go to the FW800 or eSata port. Thanks Allen

  • Copying movie clip with flv

    Hi, I am trying to copy a movie clip with an flv in it from one project to another. Everything works fine except the flv just keeps trying to load and never plays. I am not sure what to do. Any suggestions?

  • How to preserve your battery all day - MUST READ

    when roaming out in the boonies this past weekend, my phone died within ~6 hours without using it at all.  i was pretty annoyed. the second day, i did the following: 1) turned off GPS and Google location services 2) turned off data roaming 3) turned