Attribute Order

Hi,
I have a data type that amongst other things has an element which has three attributes. Those attributes look correct when I view the data type. However, in the message mapping the attribute order has changed. Surely the attributes should be in the order defined in the data type. I hope the example below helps
DATATYPE
..Element1
.....Attribute1
.....Attribute2
.....Attribute3
MAPPYING
..Element1
.....Attribute1
.....Attribute3
.....Attribute2
This is causing problems as the order of the attributes in the XML output to the client is different to that agreed. I would appreciate your help with this.

I have tested this by created a message type with the attributes (sorry but I couldn't upload a screen shot)
TREE                            CATEGORY            TYPE
TEST                             ELEMENT               TEST             
.....A                              ELEMENT                           
..........B                         ELEMENT                       
...............C                    ELEMENT               XSD:STRING
....................CA            ATTRIBUTE              XSD:STRING
....................CB            ATTRIBUTE              XSD:STRING
....................CC            ATTRIBUTE              XSD:STRING
I then created a message type and a message mapping. When in the message mapping the message type appears as follows
TREE                            CATEGORY            TYPE
TEST                             ELEMENT               TEST             
.....A                              ELEMENT                           
..........B                         ELEMENT                       
...............C                    ELEMENT               XSD:STRING
....................CA            ATTRIBUTE              XSD:STRING
....................CC            ATTRIBUTE              XSD:STRING
....................CB            ATTRIBUTE              XSD:STRING
Notice that attributes CC and CB have swapped places.

Similar Messages

  • Maintain attribute order in XML with a structure?

    I'm using xmlParse() to read an XML file into a structure, and then process the structure (replace some of the XML attributes) and then write the structure back out as an XML file. The problem is that I loose the original ordering of XML attrbutes when I convert to a structure, and instead end up with a new attribute order for each element that is alphabetical.
    In otherwords: <element c="text" d="text" a="text" />
    gets rewritten as: <element a="text" c="text" d="text" />
    which is a problem for this application.
    Is there a way to work with XML in CF but maintain attribute ordering (LinkedHashMap instead of a structure, maybe)?
    Thanks.
    Walter

    but using ColdFusion to process XML in this way is making a pretty big change in the XML structure.
    No, it's not changing the structure in any meaningful way: the attribute ordering isn't meaningful in XML, so if the order of them changes, then that's not a meaningful change.  In any way that XML should be used, it doesn't matter.
    When CF reads an string (like file contents) and parses it as XML, it needs to create an XML object; that XML object will adhere to the rules of XML; one of which is "atribute order has no significance", so it will not (and ought not) bother to "remember" the order that the attributes were in in the original string.  When one converts that object back into a string, some sort of ordering needs to be used to write them back, and CF seems to arbitrarily use alphabetical order.  But it cannot refer back to information that it doesn't have (the original ordering), so the original ordering can't be preserved.
    There's nothing unreasonable or that shouldn't be expected in this process, unfortunately (for you, I mean).
    Adam

  • Attribute order changed

    Hello all!
    I'm developing a webapplication with JSP technology.
    i have to manage xml files, change and rewrite them.
    i use those pakage for manage and edit xml files :
    "javax.xml.parsers.DocumentBuilder and DocumentBuilderFactory"
    and that one for rewrite in a file:
    "javax.xml.transform"
    Now the problem is that the xml file edited had a particular element attribute order. the file rewrited change this order into an alphabetical order.
    i want to mantein the previous order.
    Is that possible? how?
    Thanks!

    No you get over it. The spec doesn't say it, but it is clearly an oversight by engineers more concerned with computer consuming XML then humans. One of the big selling points is that it is human readable and editable, this goes right against that.
    Now that XML is more of a standard, programming languages and other things are being generated using it. Configuration files and all sorts of things. Consider you have a tag like <function name="" comment="" >
    Suppose comment becomes really long while name is very short. Right now XSLT will reverse these attributes..now comment comes before the name and the file becomes unreadable....XML is used by humans too!
    The spec also doesn't say you need it or not. Java and the rest of the community have actively decided to be like you, a complete dick, for no reason and not support it. Just lazying coding for no reason. I guess maybe open standards are a bad way to go huh? Man up and have the right attitude...no reason not to make it an option other then total disregard for other peoples real world ( not virtual specification ) problems.

  • Parse and output XML document while preserving attribute order

    QUESTION: How can I take in an element with attributes from an XML and output the same element and attributes while preserving the order of those attributes?
    The following code will parse and XML document and generate (practically) unchanged output. However, all attributes are ordered a-z
    Example: The following element
    <work_item_type work_item_db_site="0000000000000000" work_item_db_id="0" work_item_type_code="3" user_tag_ident="Step" name="Work Step" gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_site="0000000000000000" last_upd_db_id="0" rstat_type_code="1">
    </work_item_type>is output as:
    <work_item_type gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_id="0" last_upd_db_site="0000000000000000" name="Work Step" rstat_type_code="1" user_tag_ident="Step" work_item_db_id="0" work_item_db_site="0000000000000000" work_item_type_code="3">
    </work_item_type>As you may notice, there is no difference in these besides order of the attributes!
    I am convened that the problem is not in the stylesheet.xslt but if you are not then it is posted bellow.
    Please, someone help me out with this! I have a feeling the solution is simple
    The following take the XML from source.xml and outputs it to DEST_filename with attributes in a-z order
    Code:
    private void OutputFile(String DEST_filename, String style_filename){
         //StreamSource stylesheet = new StreamSource(style_filename);
         try{
              File dest_file = new File(DEST_filename);
              if(!dest_file.exists())
                  dest_file.createNewFile();
              TransformerFactory tranFactory = TransformerFactory.newInstance();
              Transformer aTransformer = tranFactory.newTransformer();
              aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
              Source src = new DOMSource("source.xml");
              Result dest = new StreamResult(dest_file);
              aTransformer.transform(src, dest);
              System.out.println("Finished");
         catch(Exception e){
              System.err.print(e);
              System.exit(-1);
        }

    You can't. The reason is, the XML Recommendation explicitly says the order of attributes is not significant. Therefore conforming XML serializers won't treat it as if it were significant.
    If you have an environment where you think that the order of attributes is significant, your first step should be to reconsider. Possibly it isn't really significant and you are over-reaching in some way. Or possibly someone writing requirements is ignorant of this fact and the requirement can be discarded.
    Or possibly your output is being given to somebody else who has a defective parser which expects the attributes to be in a particular order. You could quote the XML Recommendation to those people but often XML bozos are resistant to change. If you're stuck writing for that parser then you'll have to apply some non-XML processing to your output to fix it up on their behalf.

  • Changing attribute order in a planning layout

    Hi all,
    I have a planning layout with one characteristic in lead column and 4 others attributes to be displayed with. The attributes appear with the following order:
    -standard infoobject (sort by technical name).
    -all other custom infoobjects /(sort by technical name too).
    Is it possible to change this order?
    Thanks for help
    Vincent

    No
    I dont think that is possible.
    Chirag S

  • Attribute Order in generated WSDL

    Hi,
    Is it possible to have autotype or servicegen maintain the order of my attributes as defined in my input schema? The WSDL file generated by the weblogic tasks is alphabitizing the input attributes and this is leading to an interoperatiblity issue with a .NET client that is calling my service.
    My input schema is defined as follows:
    <xs:element name="Response">
    <xs:annotation>
    <xs:documentation>Comment describing your root element</xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="SessionID" type="xs:int"/>
    <xs:element name="LoanRegistration" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="LoanID" type="LoanID_Type" />
    <xs:element name="PropertyID" type="ID_Type" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="ContactID" type="ID_Type" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="RateLock" minOccurs="0"/>
    <xs:element name="TradeAuthorizationComplete" minOccurs="0"/>
    <xs:element name="GeneralUpdate" minOccurs="0"/>
    <xs:element name="ApprovedByCreditCommittee" minOccurs="0"/>
    <xs:element name="ApplicationIssued" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    This is translating into the following response as defined in the WSDL:
    - <xsd:complexType name="Response">
    - <xsd:sequence>
    <xsd:element type="xsd:anyType" name="applicationIssued" minOccurs="1" nillable="true" maxOccurs="1" />
    <xsd:element type="xsd:anyType" name="approvedByCreditCommittee" minOccurs="1" nillable="true" maxOccurs="1" />
    <xsd:element type="xsd:anyType" name="generalUpdate" minOccurs="1" nillable="true" maxOccurs="1" />
    <xsd:element type="stns:LoanRegistration" name="loanRegistration" minOccurs="1" nillable="true" maxOccurs="1" />
    <xsd:element type="xsd:anyType" name="rateLock" minOccurs="1" nillable="true" maxOccurs="1" />
    <xsd:element type="xsd:int" name="sessionID" minOccurs="1" maxOccurs="1" />
    <xsd:element type="xsd:anyType" name="tradeAuthorizationComplete" minOccurs="1" nillable="true" maxOccurs="1" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    Thanks much for any assistance!
    Regards,
    Michaelp

    Hi
    Which order should I use for the index? Someone said it should be (C2, C1)
    because of the smaller cardinality of C2, but since we use C1 for an equi-join
    (right word?) I wonder if (C1, C2) might be better.If substr(A.C2) is an option (does that really makes sense?) the index (C2, C1) will not be used by the query optimizer. Therefore, I see only (C1, C2) as option.
    To complicate things there is also a column C3 in both tables, which will be
    used for partitioning (so no index necessary?) and might be used in the
    where-condition as well, if it helps.If the indexes are local when also C3 is specified partition pruning will be used in addition to the index lookup. This can only improve the performance.
    HTH
    Chris

  • Changing attribute order in a mapping operator

    Is there a way that I can easily change the position or order of a mapping operator or object (e.g. Joiner object) without having to remove all the attributes in an object, and then either entering them manually or pulling them from the source to the mapping object (the target).

    Hi Kurt,
    Unfortunately that is not possible, operator attributes always show in the order you created it.
    Only tables, views, snapshots, dimensions and cubes allow to change the order of their attributes, but then only in their respective editors, not in a mapping.
    Regards, Patrick

  • Transporting Master data & Attribute Order

    Hi there,
    is there an easy way to also transport all master data from Development (D) to Production (P)?
    I only found a how-to paper for importing master data from the BW where BPC is running into BPC itself.
    For small projects, opening the dimension sheet for a dimension on D in the admin client, copying all  masterdata to an Excel file, opening the dimension sheet for the corresponding dimension on P (which is initially empty) and copying all the data there from the Excel file was the workaround. Is there a more sophisticated way to do this automatically?
    One more thing: is it normal that the order of attributes in the dimension sheet for a dimension on D and the corresponding created dimension on P is not the same (the columns' order is not mantained)? Is there a way to have the same order on both systems?
    Thanks for your help!

    Okay, I understand and I think I ran into this once before.   What I did was choose one and test it out .... if it works, it works .... move on and forget.  If it doesn't work, try the other one.
    It should work with either because you are merely looking up 0MAINTPLANT from 0CS_DOC.  You are choosing 1 of two options that are exactly the same, so they should give you exactly the same result.
    Brian

  • Value attributes order in the table

    hi experts,
           i want to design a table as per the client specific.all i need is order is..after creating value attributes in the context,dragging from node to view,am not getting as required by the client.i want to set the table colums as specified in the requirements.Please guide me in this regard.
    thank's@regard's,
    Prashanth

    Hi
    Go to the outline view of your view for your layout. Right click the column and do 'Move up/down' based on your requirement.
    If your outline view is not open then go to Windows->Open View->General->Outline and open the outline view. Then open the View editor(designer) of your View and select the Layout tab. In the outline view you'll see all the UI elements of your view. Go to the table in question and move up/down the columns by right clicking them.
    Regards,
    Ajay

  • XML Parsing attributes with encoded ampersand causes wrong order

    Hi all,
    I am writing in the forum first (because it could be that i am doing something wrong.... but i think it is a bug. Nonetheless, i thought i'd write my problem up here first.
    I am using Java 6, and this has been reproduced on both windows and linux.
    java version "1.6.0_03"
    Problem:
    read XML file into org.w3c.dom.Document.
    XML File has some attributes which contain ampersand. These are escaped as (i think) is prescribed by the rule of XML. For example:
    <?xml version="1.0" encoding="UTF-8"?>
         <lang>
              <text dna="8233" ro="chisturi de plex coroid (&gt;=1.5 mm)" it="Cisti del plesso corioideo(&gt;=1.5mm)" tr="Koro&#305;d pleksus kisti (&gt;=1.5 mm)" pt_br="Cisto do plexo cor&oacute;ide (&gt;=1,5 mm)" de="Choroidplexus Zyste (&gt;=1,5 mm)" el="&Kappa;&#973;&sigma;&tau;&epsilon;&iota;&sigmaf; &chi;&omicron;&rho;&omicron;&epsilon;&iota;&delta;&omicron;&#973;&sigmaf; &pi;&lambda;&#941;&gamma;&mu;&alpha;&tau;&omicron;&sigmaf; (&gt;= 1.5 mm)" zh_cn="&#33033;&#32476;&#33180;&#22218;&#32959;&#65288;&gt;= 1.5 mm&#65289;" pt="Quisto do plexo coroideu (&gt;=1,5 mm)" bg="&#1050;&#1080;&#1089;&#1090;&#1072; &#1085;&#1072; &#1093;&#1086;&#1088;&#1080;&#1086;&#1080;&#1076;&#1085;&#1080;&#1103; &#1087;&#1083;&#1077;&#1082;&#1089;&#1091;&#1089; (&gt;= 1.5 mm)" fr="Kystes du plexus choroide (&gt;= 1,5 mm)" en="Choroid plexus cysts (&gt;=1.5 mm)" ru="&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (&gt;=1.5 mm)" es="Quiste del plexo coroideo (&gt;=1.5 mm)" ja="&#33032;&#32097;&#33180;&#22178;&#32990;&#65288;&gt;=1.5mm&#65289;" nl="Plexus choroidus cyste (&gt;= 1,5 mm)" />
    </lang>As you might understand, we need to have the fixed text '>' for later processing. (not the greater than symbol '>' but the escaped version of it).
    Therefore, I escape the ampersand (encode?) and leave the rest of the text as is. And so my > becomes >
    All ok?
    Symptom:
    in fetching attributes, for example by the getAttribute("en") type call, the wrong attribute values are fetched.
    Not only that, if i only read to Document instance, and write back to file, the attributes are shown mixed up.
    eg:
    dna: 8233, ro=chisturi de plex coroid (>=1.5 mm), en=&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (>=1, de=Choroidplexus Zyste (>=1,5 mm)Here you can see that 'en' is shown holding what looks like greek, ... (what is ru as a country-code anyway?) where it should have obviously had the english text that originally was associated with the attribute 'en'
    This seems very strange and unexpected to me. I would have thought that in escaping (encoding) the ampersand, i have fulfilled all requirements of me, and that should be that.
    There is also no error that seems to occur.... we simply get the wrong order when fetching attributes.
    Am I doing something wrong? Or is this a bug that should be submitted?
    Kind Regards, and thanks to all responders/readers.
    Sean
    p.s. previously I had not been escaping the ampersand. This meant that I lost my ampersand in fetching attributes, AND the attribute order was ALSO WRONG!
    In fact, the wrong order was what led me to read about how to correctly encode ampersand at all. I had been hoping that correctly encoding would fix the order problem, but it didn't.
    Edited by: svaens on Mar 31, 2008 6:21 AM

    Hi kdgregory ,
    Firstly, sorry if there has been a misunderstanding on my part. If i did not reply to the question you raised, I appologise.
    In this 'reply' I hope not to risk further misunderstanding, and have simply given the most basic example which will cause the problem I am talking about, as well as short instructions on what XML to remove to make the problem disappear.
    Secondly, as this page seems to be displayed in ISO 8859-1, this is the reason the xml I have posted looks garbled. The xml is UTF-8. I have provided a link to the example xml file for the sample below
    [example xml file UTF-8|http://sean.freeshell.org/java/less2.xml]
    As for your most recent questions:
    Is it specified as an entity? To my knowledge (so far as my understanding of what an entity is) , yes, I am including entities in my xml. In my below example, the entities are the code for the greater than symbol. I am under the understanding that this is allowed in XML ??
    Is it an actual literal character (0xA0)? No, I am specifying 'greater than' entity (code?) in order to include the actual symbol in the end result. I am encoding it in form 'ampersand', 'g character', 't character', 'colon' in order for it to work, according to information I have read on various web pages. A quick google search will show you where I got such information from, example website: https://studio.tellme.com/general/xmlprimer.html
    Here is my sample program. It is longer than the one you kindly provided only because it prints out all attributes of the element it looks for. To use it, only change the name of the file it loads.
    I have given the xml code seperately so it can be easily copied and saved to file.
    Results you can expect from running this small test example?
    1. a mixed up list of attributes where attribute node name no longer matches its assigned attribute values (not for all attributes, but some).
    2. removing the attribute bg from the 'text' element will reduce most of these symptoms, but not all. Removing another attribute from the element will most likely make the end result look normal again.
    3. No exception is thrown by the presence of non xml characters.
    IMPORTANT!!! I have only just (unfortunately) noticed what this page does to my unicode characters... all the the international characters get turned into funny codes when previewed and viewed on this page.
    Whereas the only codes I am explicitly including in this XML is the greater than symbol. The rest were international characters.
    Perhaps that is the problem?
    Perhaps there is an international characters problem?
    I am quite sure that these characters are all UTF-8 because when I open up this xml file in firefox, It displays correctly, and in checking the character encoding, firefox reports UTF-8.
    In order to provide an un-garbled xml file, I will provide it at this link:
    link to xml file: [http://sean.freeshell.org/java/less2.xml]
    Again, sorry for any hassle and/or delay with my reply, or poor reply. I did not mean to waste anyones time.
    It will be appreciated however if an answer can be found for this problem. Chiefly,
    1. Is this a bug?
    2. Is the XML correct? (if not, then all those websites i've been reading are giving false information? )
    Kindest Regards,
    Sean
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class Example
        public static void main(String[] argv)
              try
                   FileInputStream fis = new FileInputStream("/home/sean/Desktop/chris/less2.xml");
                 Document doc = DocumentBuilderFactory.newInstance()
                 .newDocumentBuilder()
                 .parse(new InputSource(fis));
                   Element root = doc.getDocumentElement();
                   NodeList textnodes = root.getElementsByTagName("text");
                   int len = textnodes.getLength();
                   int index = 0;
                   int attindex = 0;
                   int attrlen = 0;
                   NamedNodeMap attrs = null;
                   while (index<len)
                        Element te = (Element)textnodes.item(index);
                        attrs = te.getAttributes();
                        attrlen = attrs.getLength();
                        attindex = 0;
                        Node node = null;
                        while (attindex<attrlen)
                             node = attrs.item(attindex);          
                             System.out.println("attr: "+node.getNodeName()+ " is shown holding value: " + node.getNodeValue());
                             attindex++;                         
                        index++;
                        System.out.println("-------------");
                 fis.close();
              catch(Exception e)
                   System.out.println("we've had an exception, type "+ e);
    }  [example xml file|http://sean.freeshell.org/java/less2.xml]
    FOR THE XML, Please see link above, as it is UTF-8, and this page is not. Edited by: svaens on Apr 7, 2008 7:03 AM
    Edited by: svaens on Apr 7, 2008 7:23 AM
    Edited by: svaens on Apr 7, 2008 7:37 AM
    Edited by: svaens on Apr 7, 2008 7:41 AM

  • The order of attributes from an Attribute Group is not reflected in Excel Add-in

    It looks like the order of my attributes in an attribute Group is not reflected in the Filter dialog in the Excel Add-in. Any way that I from server side can handle the attribute order in Excel?
    The order is correct in the Attribute Groups in the Web UI.
    /Stig

    Dear Sai,
    Take help of ABAPer to capture the header or item text in to the print copy of sales order ,delivery and invoice.
    I hope this will help you,
    Regards,
    Murali.

  • Oracle.jbo.AttrValException: JBO-27019: Get method for attribute

    Hi Guys,
    I am trying to add a new column to Oracle quoting.It has already been customized by some consultant few years back. I followed the note 392728.1 on metalink and also have the documentation by the previous consultant but getting the error oracle.jbo.AttrValException: JBO-27019: Get method for attribute Draft in HeaderVO could not be resolved after adding my column, when I try to print the quote.
    Here are the steps I took
    1) added a column to the query (at the end) in HeaderVO.xml
    2) added the below code in the HeaderVO.xml
    <ViewAttribute
    Name="DRAFT"
    IsQueriable="false"
    IsPersistent="false"
    Precision="100"
    Type="java.lang.String"
    AliasName="DRAFT"
    ColumnType="VARCHAR2"
    Expression="DRAFT"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100" />
    </DesignTime>
    </ViewAttribute>
    3). Modify HeaderVORowImpl.java file to add setters and getters for the newly added view attribute. For example,
    a) case 67: //
    setDRAFT((String)obj);
    return;
    b) case 67:
    return getDRAFT();
    c) ublic void setDRAFT(String s)
    setAttributeInternal(67, s);
    public String getDRAFT()
    return (String)getAttributeInternal(67);
    d) protected static final int DRAFT = 67;
    Everything is dont exactly as per the manual but not sure why I am getting this issue. Any help will be appreciated.

    a) case 67: //
    setDraft((String)obj);
    return;
    b) case 67:
    return getDraft();
    c)public void setDraft(String s){
    setAttributeInternal(67, s);
    public String getDraft(){
    return (String)getAttributeInternal(67);
    d) protected static final int DRAFT = 67;
    can u change it as explained above.. setDRAFT should be setDraft.. and getDRAFT should be getDraft..
    and make sure that the index.. number is exactly matching with the attribute order in the VO

  • Error OIM when open User Attributes

    Hi All
    I am get an error when opening User Attributes button on Configuration --> User Configuration --> Action --> User Attributes
    error form log OIM = <Error> <oracle.iam.configservice.impl> <IAM-3020003> <The attribute null does not exist!>
    anyone could help me??

    I just got through this one.
    In my case, the file "/file/User.xml" in the MDS repository needed to be fixed.
    One part of this file describes categories' attributes order :
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <entity-definition xmlns="http://www.oracle.com/schema/oim/entity">
    <metadata-attachment xmlns="">
    <metadata>
    <name>1</name>
    <value>MyAttr1</value>
    <category>categories.MyCategory</category>
    </metadata>
    <metadata>
    <name>3</name>
    <value>MyAttr2</value>
    <category>categories.MyCategory</category>
    </metadata>
    </metadata-attachment>
    </entity-definition>When opening User Attributes configuration, OIM processes each categories to sort its attributes.
    Here, we get :
    Category : MyCategory
    1 - MyAttr1
    2 -
    3 - MyAttr2Notice the gap in the order sequence ? That is the cause of your issue.
    To fix it, edit the file "/file/User.xml" so that there is no gap in the category's attibutes order.
    In our hereabove example, we simply need to replace
    <metadata>
    <name>3</name>
    <value>MyAttr2</value>
    <category>categories.MyCategory</category>
    </metadata>by
    <metadata>
    <name>2</name>
    <value>MyAttr2</value>
    <category>categories.MyCategory</category>
    </metadata>When this is done, import the fixed "/file/User.xml" in MDS and restart OIM.
    Here is a query tha can help you to identify where the problem is :
    select cn.comp_localname, cn.comp_value, cv.comp_localname, cv.comp_value, cc.comp_localname, cc.comp_value
    from mds_paths p1
    left outer join mds_components c1 on c1.comp_partition_id=p1.path_partition_id and c1.comp_contentid=p1.path_contentid
    left outer join mds_components cn on cn.comp_partition_id=p1.path_partition_id and cn.comp_contentid=p1.path_contentid and cn.comp_seq = c1.comp_seq+1
    left outer join mds_components cv on cv.comp_partition_id=p1.path_partition_id and cv.comp_contentid=p1.path_contentid and cv.comp_seq = c1.comp_seq+2
    left outer join mds_components cc on cc.comp_partition_id=p1.path_partition_id and cc.comp_contentid=p1.path_contentid and cc.comp_seq = c1.comp_seq+3
    where p1.path_fullname='/file/User.xml' and p1.path_high_cn is null
    and c1.comp_localname='metadata' and c1.comp_level=2
    and cc.comp_value like 'categories.%' and cc.comp_value != 'categories.order'
    order by cc.comp_value,TO_NUMBER(cn.comp_value);

  • Ordering of xml group elements

    Hi
    I have a Document object created over the xml file, initially having same type of group elements with differen type of information in the predefined order. later if any time i modify it to add new group of same type by default i am able to add it to next sibiling, instead i want to maintain the order.
    i am having order number as part of group elemnt attribute order.
    e.g
    i have initial xml document like below
    <product order ="2">
    <name/>
    <price/>
    </product>
    <product order ="4">
    <name/>
    <price/>
    </product>
    now if the use want to add the anotherelemtn like
    <product order ="3">
    <name/>
    <price/>
    </product>
    it should go into proper sequence.
    How to do this
    expected will be
    <product order ="2">
    <name/>
    <price/>
    </product>
    <product order ="3">
    <name/>
    <price/>
    </product>
    <product order ="4">
    <name/>
    <price/>
    </product>

    Use the element's append() method if you want to add a child element as the last child, otherwise use its insertBefore() method.

  • JBO-27021 error when a new attribute is added

    I am getting this error:"oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 14 with java object of type oracle.jbo.domain.Raw due to java.sql.SQLException."
    I added a new attribute "violation_guid" to sql query in VO
    Query:
    select rule_name, target_name, severity, recommendation, target_type, ROOT_CS_GUID,
    event_instance_id,
    event_seq_id, keywords, lifecycle_status , target_guid, rule_name_nlsid, recommendation_nlsid, violation_guid
    from
    table(EM_COMPLIANCE_EVAL.get_cs_viols(:rootCsGuid, :targetName, :targetType, :plang, :pcountry))
    Before addition of the attribute, things were working fine.
    I also checked the attribute order is correct in attribute list. AFAIK, violation_guid should come in the same position as defined in VO query.
    Its in 14th position both according to query and attribute list.
    I did "Set source order" in the Attributes section of VO. I also regenerated the java classes related to the VO but no luck.
    What else do need to do?
    Thanks
    Parul

    the stack trace:
    oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 14 with java object of type oracle.jbo.domain.Raw due to java.sql.SQLException.
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1380)
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2570)
    at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3929)
    at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2580)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSetDoNotAddToCache(ViewObjectImpl.java:5851)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1394)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:994)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7188)
    at oracle.sysman.core.gccompliance.model.central.standard.view.CSViolationsVOImpl.executeQueryForCollection(CSViolationsVOImpl.java:47.
    Caused by: java.sql.SQLException: Invalid column index
    at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
    at oracle.sysman.jdbc.wrapper.OracleResultSetWrapper.getBytes(OracleResultSetWrapper.java:545)
    at oracle.jbo.domain.Raw$1facClass.createDatum(Raw.java:129)
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1331)
    ... 95 more
    ## Detail 0 ##
    java.sql.SQLException: Invalid column index
    at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
    at oracle.sysman.jdbc.wrapper.OracleResultSetWrapper.getBytes(OracleResultSetWrapper.java:545)
    at oracle.jbo.domain.Raw$1facClass.createDatum(Raw.java:129)
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1331)
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2570)
    at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3929)
    at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2580)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSetDoNotAddToCache(ViewObjectImpl.java:5851)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1394)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:994)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7188)
    at oracle.sysman.core.gccompliance.model.central.standard.view.CSViolationsVOImpl.executeQueryForCollection(CSViolationsVOImpl.java:47)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1239)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1419)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1325)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1310)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7083)
    at oracle.sysman.core.gccompliance.model.central.standard.applicationModule.CentralStandardAMImpl.executeCSViolsVO(CentralStandardAMImpl.java:1431)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    jdev version is: Build JDEVADF_11.1.1.6.2_GENERIC_120329.1447.6268.1

Maybe you are looking for

  • Focus Problem with JTree and Menus

    Hi all, I have a problem with focus when editing a JTree and selecting a menu. The problem occurs when the user single clicks on a node, invoking the countdown to edit. If the user quickly clicks on a menu item, the focus will go to the menu item, bu

  • Install 16 bit Oracle client on Win 2003 server

    Hello, Is it possible to install Oracle SQL* Net 2.3(16 bit) Client on Windows 2003 server. If it is then could someone give me links from where I could get more information on this (like the steps to install 16 bit Oracle client on Win 2003). Thanks

  • Starting Mythfrontend on tv-out - gnome [solved]

    I've been running mythtv on KDE3, running it on my TV.  I did a full system upgrade and with KDE4, my KDE desktop does not extend onto my tv, although I have a mousepointer on a black background. To hopefully get the system back up and running while

  • Poor Quality DVD footage

    Hi There I wandered if anyone can help, please! From FCP, I've exported a QuickTime movie using compressor and the XD CAM 1080 25p codec (as this is the source footage). Open the mov in QT and it plays perfectly. I create and burn my disk using DVDSP

  • Workflow triggers unwantedly

    Hi All , we are a strange issue in EC incoming Invoice workflow in SRM, descriptiojn is as follows we have two workflow in our system for invoice one goes through approval and other auto approval , and on the SRM portal at header level in the basic d