Skip to Content
avatar image
Former Member

XML attributes wrong order in mapping

In XI SP16

I am building a mapping based on a dataype using XML attibutes.

The datatype looks like:

Test_Node ComplexType

a attribute xsd:string

<b> b</b> attribute xsd:string

c attribute xsd:string

d attribute xsd:string

e attribute xsd:string

I use this data type in the message type (this is correct).

When I load it into the mapping I can see the following thing:

Test_Node ComplexType

a attribute xsd:string

c attribute xsd:string

d attribute xsd:string

e attribute xsd:string

<b> b</b> attribute xsd:string

The second attribute goes to the last position. As I use this to build a flat file I don't get the expected flat file.

This is a consistent behaviour with all similar mapping.

I tried to put the last attribute in second position but I think this is not the way to do it (if this is fixed in the future that can cause problems).

Any suggestion is welcome.

Thanks.

Gabriel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 14, 2006 at 02:28 PM

    This seems to be a very strange problem. Since you are saying this behaviour is consistent, suggest to raise a OSS Notes.

    Regards,

    Jai Shankar.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      Strange error. But can you try refreshing the cache. helps most of the time if you have created the DT and then changed it.

      Also, if thats not the case , try creating another DT and see if u get the same error.

      Regards

      Vijaya

  • avatar image
    Former Member
    Nov 14, 2006 at 02:46 PM

    Hi,

    You are right even i am facing the same problem.

    Regards,

    Sudheer.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Yes this is kind of a strange error even I faced it when I am doing a External Definition with the attributes xmlns and targetNamespace. Also with some of the attributes so I just changed the name of the attribute with sequence numbers.

      Regards,

      Prakash

  • avatar image
    Former Member
    Nov 14, 2006 at 02:44 PM

    Hi,

    Just some quick ideas :

    -Is the latest version of your datatype, message type active ?

    -Are you sure you are using that message type in the mapping ? ( check namespaces in case similar message types exist )

    -Did you try to create once from scratch again to see if it's always the smae behaviour ?

    rgds dirk

    Add comment
    10|10000 characters needed characters exceeded