Skip to Content
avatar image
Former Member

Change root tag in graphical mapping

Following problem: I implemented a graphical mapping, and now the customer decided to change the source structure, the root node will change. If I update the structure, I would loose all mapping information. I thought of exporting the mapping and manually replacing the relevant entries, but there are many text files which have refefences to the root tag. Not sure if this is a good idea.

I could add a first mapping which converts the input structure to the old format, and then the second mapping can remain the same. But this is not a very elegant solution, I would like to avoid that.

Is there a tool or workaround available to update the root tag and keep the mapping information ? PI 7.0

CSY

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 30, 2010 at 02:10 PM

    Hi, Christian.

    You can create an XSLT mapping before the graphical mapping, this mapping will put old root tag and then the other structures. This way you won't lose your mapping

    Regards,

    Federico

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2010 at 02:46 PM

    hi.

    What kind of source do you use ? Message Type o xternal Ddefinition?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi.

      Did you use the root node to map with target structure?

      Try this

      If the case don't use this root to map by the moment in your mapping , then modify the XSD ,active and drag an drop the XSD on source mapping the map againg your root node with target if is the case. if not only change on root.

  • avatar image
    Former Member
    Sep 30, 2010 at 03:34 PM

    You can do followoing:

    1. Create Mapping Template Based on your current mapping

    2. Modify your XSD, change root node name to new name

    3. Force the new mapping to use the mapping template (since it is does not match root name)

    4. Relocated your mapping by selecting new path.

    Regards

    Liang

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2010 at 10:44 AM

    I had luck, the mapping did not loose the information, because all nodes under the root remained the same. But the trick with the mapping template is good to know.

    Add comment
    10|10000 characters needed characters exceeded