Error in Get Next Non-Text Sibling for XML without CR at end of tag

Hallo all,
I'm having a strange error parsing XML files with labview. I have an XML file in one single line, without CR at end of each tag. A normal browser or XML parsing tool is capable to read it, but not with Labview.
The error I have is with "Get Next Non-Text Sibling.vi", which internally fails to read Type property (Error -2630, Property Node (arg 1) in NI_XML.lvlib:Get Next Non-Text Sibling.vi->XML Get Siblings Childs Nodes.vi->Encode data to label (Path).vi).
Labview XML parser works if I add a CR at each tag/node.
I'm quite sure this is a labview bug. A workaround I have found is to open the file, then save the file with Save File (Pretty Print) method and reopen it again, but it is time-consuming and I would like to avoid it.
Regards,
Daniele
Solved!
Go to Solution.
Attachments:
xmlwithnoCR.xml.txt ‏1 KB

Which node do you pass to XML Get Siblings Child Nodes.vi ? That is also important.
I can imagine the following scenario causing your problem: Your input node has a child node C,, but this child node has no siblings. Get Next Non-Text Sibling.vi will fail in this case. If you put a <CR> at the right position in your XML you create a text node with content <CR>. If this text node is a sibling of child C then Get Next Non-Text Sibling.vi still won't return anything but no error should occur. IMHO this is expected behavior. You can however implement your own version of Get Next Non-Text Sibling.vi. Use the Next Sibling property and check if it returns a valid refnum.

Similar Messages

  • Error while getting the ORACLE user account for your concurrent request

    Hi ,
    When I am submitting the Concurrent Program from OAF page Iam getting
    Error
    Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.
    When we will face this error.
    Not able to submit the Request
    Krishna

    Krishna
    Try like this
    public int submitCPRequest(String shipmentId) {
    System.out.println("into submitCPRequest");
    try {
    OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
    OADBTransaction transaction = am.getOADBTransaction();
    Connection conn = transaction.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(conn);
    cr.setDeferred();
    String applnName = new String("XXAPL"); //Application that contains the concurrent program
    System.out.println("ApplName"+ applnName);
    String cpName = new String("SHIP_REQ"); //Concurrent program name
    System.out.println("Concc Name"+ cpName);
    // String cpDesc = new String("Shipping Request"); // concurrent Program description
    // Pass the Arguments using vector
    // Here i have added my parameter headerId to the vector and passed the
    //vector to the concurrent program
    Vector cpArgs = new Vector();
    cpArgs.addElement(shipmentId);
    System.out.println("Args"+ cpArgs);
    After this it is going into exception
    // Calling the Concurrent Program
    int requestId = cr.submitRequest(applnName, cpName, null, null, false, cpArgs);
    System.out.println("Req Id"+ requestId);
    tx.commit();
    return requestId;
    catch (SetDeferredException e)
    throw new OAException("SetDeferredException " + e.getMessage(),OAException.ERROR);
    catch (RequestSubmissionException e) {
    System.out.println("Into Exception");
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    }Thanks
    AJ

  • Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator

    Dear Techies,
    We have registered an Extra Information Type as self service OAF page and did some validations using user hook which are working fine. But for some requests EIT creation page is throwing below errors.
    1. Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.
    2. An unexpected situation occurred while executing routine FND_DATA_SECURITY.GET_SECURITY_PREDICATE_HELPER.The cause was: The parameter 'p_object_name' cannot be 'GLOBAL'.
    System throws these errors whenever user hook suppose to throw our customized validation messages.Since we are at UAT instance, we are bouncing apache and oacore to get rid of these errors every time they appear. But we cannot bounce once it is moved to production.
    Kindly share some ideas  to fix these errors as we are very close to Go-Live and we are facing this issue with all EIT's and SIT's.
    Thanks and Regards
    Dileep Kumar.

    Hi Mahesh,
    Thanks for reply.
    I have gone through the link that you have suggested. But our EIT user hook validations doesn't  have any code related to submission of concurrent programs. More over our error is not stable. If we bounce the apache and oacore, the system will work fine without unexpected errors for some time. We are not even able to replicate these errors.
    Thanks and Regards
    Dileep Kumar.

  • In HTTP to SOAP scenario. Error i get is "Invalid content type for SOAP"

    Hi,
    In HTTP to SOAP(synch) scenario. Error i get is <b>"Invalid content type for SOAP"</b>
    When pass my data in the HTTP client, I get the following Error.
    What may be the cause,How to reslove it.
    Response am getting is below............................
    Result:  
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/PLAIN</SAP:AdditionalText></SAP:Error>

    hi ,
    Just refer following 2 links
    Re: Invalid content type for SOAP
    Re: invalid content type for SOAP: TEXT/HTML
    Regards,
    AshwinM
    Reward If helpful

  • Bug in NI_XML.lvlib:Get First Non-Text Child.vi

    This VI fails to handle the output of the first Property Node on its block diagram. Here's a screenshot of the BD in LV 2013 SP1:
    Here's a fixed version:

    I agree with David, but I hesitate to call it a bug.  Spewing meaningless errors into unrelated parts of your code is on the NI-sanctioned Error-handling Greatest Hits album so it is probably intentional.
    There are 4 scenarios here to consider:
    1) Bad reference passed in
    2) Good reference, no child nodes
    3) Good reference, no non-text child nodes
    4) Good reference, 1 or more non-text child nodes.
    What are the outputs:
    1) Error message from first PN, boolean false, NotARefnum
    2) Error message from second PN, boolean false, NotARefnum
    3) No Error, boolean false, NotARefnum
    4) No Error, boolean true, valid Refnum
    How is an outsider suppposed to know from the error messages which of 1 & 2 happened?  You have to know what goes on inside and see which node threw the error.  Having to know the insides of a VI to decipher an error message is not good API design IMO.
    What should happen in my opinion is the following:
    Input check, invalid refnum throws an error clearly indicating "Bad refnum input"
    The output refence would only be valid in case 4, so the boolean is redundant, but I would include it as a usability measure.  No errors should be thrown in cases 2-4, no text nodes versus no nodes at all is almost certainly a distinction without a difference in this case.
    David's fix cleans up the unhelpful error message being thrown during an unsuccessful search of a valid refnum.  I would add an input validation check in the interest of providing a useful error message and not the "random property called with bad reference" error.

  • Where can I get/buy more text bullets for pages?

    The text bullets for iWork Pages are nice, but I would like many more choices.
    Where can I get/buy more text bullets?
    I have done some searching on the web and I am finding it very difficult to find any graphics stores for text bullets.
    I would really appreciate if someone has some suggestions.

    Any character from any font can be used as a text bullet. I suggest that you look at the "special" characters you already have available in many of the fonts that came with your computer. The Character Viewer applet is very useful for this.

  • Can you get any more text tones for your iPhone 4?

    I have had my iPhone for a while now but I am getting bored of the text tones and want something new and interesting. But I can only download ringtones.
    can anyone help?
    thanks

    No.  This will likely change with iOS 5, so hang in there.

  • How to get a deleted text back for iphone5s

    I need to get a text back that i deleted previously that contained a picture I sent. Is this possible and how so. I've read where you can restore but i haven't done a restore after I sent the picture.

    Only way is if you've been backing up yoru phone and that message is included in your backup.
    Then you can restore your phone from that backup.
    other wise that text is gone.

  • OT: So if I wanted to get into non-orchestral music for film...etc

    I know there are a few film guys here. Thought you might through some advice my way. Few years ago I did some stuff for the discovery channel. Also worked on some music for a documentary film. Just last week I got handed a job doing the music for a short film. Anyway this recent job made me think this could be fun. So I'm thinking of exploring. But not really sure where to start. All of my previous experiences came through who I knew. And I'm sure who you know is a big part of it, but I don't know that many people so.... Yeah any ideas.

    LOL!!!
    Touche mon frere!!!
    PS you need a lot of time to set it up properly.
    "Christian Jacob - Timelines"
    One week to set up the 3 instruments,drums,bass and piano...
    4 days to record...
    3 days to mix...
    1 day to master.
    Used a Neve 8048 desk,2" Quantegy GP9 tape at 15ips,with Dobly SR,and hitting at +5dBu.Only EQ'd about half the drumkit.Mainly filtering out the low end from the overheads,and added little "sparkle" on the piano track to compensate for the high end loss inherent in the tape.
    Check it out...
    http://www.rhapsody.com/christianjacob/timelines
    Cheers

  • Get or set security credentials for XML web service client authentication

    Dear,
    I wrote a custom asp.net web service that acts as a wrapper for the taxonomyclientservice.asmx in sharepoint 2010.
    ON my local machine, the following code works:
      using (Taxonomy.Taxonomywebservice TaxonomyClient = new COSMOS_Taxonomy.Taxonomywebservice())
    TaxonomyClient.Credentials = new NetworkCredential("username", "pass", "domain");
    TaxonomyClient.PreAuthenticate = true;
    etc..
    The authentication works when i provide the user credentials.
    the problem is when i deploy the webservice to my production env. I dont know the owner of the metadata term store and its out of the question to get the username and password.
    when i try to run this code on my local machine:
    TaxonomyClient.Credentials = System.Net.CredentialCache.DefaultCredentials;
    i get this error:
    System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    at COSMOS_TermSet.COSMOS_Taxonomy.Taxonomywebservice.GetTermSets(String sharedServiceIds, String termSetIds, Int32 lcid, String clientTimeStamps, String clientVersions, String& serverTermSetTimeStampXml)
    at COSMOS_TermSet.CustomWebService.GetCountryTermSet()
    How can i fix this.
    Many thanks in advance

    Hi Roni,
    Based on your description, the error occurred when using the DefaultCredential in the code.
    I recommend to check if the “<identity impersonate="true"></identity>” is included in web.config file.
    If not, add it to web.config file to see if the issue still occurs.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

  • 105100: non-ORACLE exception for client_image.read_image_file

    Hi Friends,
    I have configured webutil for 10g As I am able open java file bowser for the form also when i am trying load or save the file i am getting
    105100: non-ORACLE exception for this line od code
    client_image.read_image_file:img_file_name,'jpg','SIGN_IMG');
    I have checked some of the thread where it has been said that it jave exception
    I am not getting any error on the java console also i am pasting content of the java console also.
    Please help me is some one has the solution for this.
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\venkatesh
    Proxy Configuration: Manual Configuration
    Proxy: 172.20.2.51:8080
    Proxy Overrides: 192.168.10.100,192.168.10.160,<local>
    JAR cache enabled
    Location: C:\Documents and Settings\venkatesh\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://192.168.10.160:7777/forms/java/frmwebutil.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 1.0.6
    Loading http://192.168.10.160:7777/forms/java/frmall_jinit.jar from JAR cache
    Loading http://192.168.10.160:7777/forms/java/fccicon.jar from JAR cache
    Loading http://192.168.10.160:7777/forms/java/webicons01.jar from JAR cache
    Loading http://192.168.10.160:7777/forms/java/webicons02.jar from JAR cache
    Loading http://192.168.10.160:7777/forms/java/webicons03.jar from JAR cache
    Loading http://192.168.10.160:7777/forms/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0

    Hi Friends,
    This problem got soled.
    LIBPATH=/d02/10gas/products/10.1.2/lib32:/d02/10gas/products/10.1.2/jdk/jre/bin:/d02/10gas/products/10.1.2/jdk/jre/bin/classic:%LIBPATH%
    was commented in env file .
    Thanks

  • ORA-20160: Encountered an error while getting the ORACLE user account.

    when users trying to apply for the leave . Once they apply for the leave and the respective manager approves it.
    They get an notification mail with the error message The changes were not applied because ORA-20160: Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator. ORA-06512: at "APPS.ALR_PER_ABSENCE__800_53447_IAR", line 3 ORA-04088: error during execution of trigger 'APPS.ALR_PER_ABSENCE__800_53447_IAR'
    EBS : 12.1.2
    Database : 11.2.0

    We are also facing the same issue , with the following error.
    The Changes were not applied because ORA-20160: Encountered an error while getting the ORACLE user account for your concurrent request, Contact your system administrator. ORA-06512: at “ APPS.ALR_PAY_ELEMENT_801_53338_IAR”, line 1 ORA-04088: error during execution of the trigger ‘APPS.ALR_PAY_ELEMENT_801_53338_IAR’
    Dear Hussein ,
    As per your suggestion , if we disable the trigger , does it workflow goes ahead without any problems ?
    By Disabling the trigger , what would be the impact ? I mean does we are going to loose the data that was supposed to be updated the trigger.
    And basically please educate me . what is the use of this APPS.ALR_PAY_ELEMENT_801_53338_IAR’ ?
    Regards
    Raghu

  • Next Non Holiday date

    I need to find the next non holiday date for a set of rows in table.I have a separate table where all holidays are listed.Please help me to find the next non holiday date using decode function.
    Holiday Table sructure:
    create table holiday(no number,holidaydate date);
    insert into holiday values(1,to_date('17-AUG-2013','dd/mm/yyyy');
    insert into holiday values(1,to_date('05-SEP-2013','dd/mm/yyyy');
    I have a code which seems to be wrong.
    select decode (lapsedate ,
                                               laps.holidaydate , DECODE
                                                     (lapsedate +1,
                                                      laps.holidaydate + 1, DECODE
                                                              (lapsedate + 2,
                                                                 laps.holidaydate
                                                               + 2, lapsedate
                                                                + 3,
                                                               lapsedate + 2
                                                      lapsedate + 1
                                               lapsedate
                                              ) from dt;

    Hi,
    Here's one way to do that with your current tables:
    WITH    cntr       AS
        SELECT  LEVEL   AS n
        FROM    dual
        CONNECT BY   LEVEL <= 4 -- longest possible distance to next work day
    SELECT    m.ndate
    ,         m.ndate + MIN (c.n)   AS next_work_day
    FROM             mycalendar  m
    CROSS JOIN       cntr        c
    LEFT OUTER JOIN  holiday     h   ON  h.holidaydate = m.ndate + c.n
    WHERE     h.holidaydate  IS NULL
    AND       TO_CHAR ( m.ndate + c.n
                      , 'Dy'
                      , 'NLS_DATE_LANGUAGE=ENGLISH'  -- If needed (but never hurts)
                      )    NOT IN ('Sat', 'Sun')
    GROUP BY  m.ndate
    ORDER BY  m.ndate
    This assumes that the next work day (that is, non-holiday, Monday through Friday) will be within the next 4 days (which is true where I work).  You may need to change the magic number in cntr (4, above) depending on your holidays.
    Instead of a holiday table with 1 row per holiday, consider having a calendar table, with 1 row per day, regardless of whether the day is a holiday, weekend or work day.  You can have a next_work_day column in the table (populated by a query similar to the one above).  It will be more efficient in the long run, and will make coding individual queries much simpler.

  • Problem calling web service: Error while getting the ORACLE user account

    Hi All!
    I was able to call the service EGO_ITEM_PUB-PROCESS_ITEM, but after implemented some patches, suddenly I get this error as result:
    - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    - <env:Body>
    - <OutputParameters xmlns="http://xmlns.oracle.com/apps/ego/soaprovider/plsql/ego_item_pub/process_item__1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <X_INVENTORY_ITEM_ID xsi:nil="true" />
    <X_ORGANIZATION_ID xsi:nil="true" />
    <X_RETURN_STATUS>U</X_RETURN_STATUS>
    <X_MSG_COUNT>1</X_MSG_COUNT>
    <X_MSG_DATA>Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.</X_MSG_DATA>
    </OutputParameters>
    </env:Body>
    </env:Envelope>
    Any ideas?
    Thanks,
    Konrad

    hsawwan wrote:
    Hi,
    I was able to call the service EGO_ITEM_PUB-PROCESS_ITEM, but after implemented some patches, What are those patches?
    # Patch 8407693:R12.TXK.B ISG: Service Generation Failure - Java Compiler Could Not be Found
    # Patch 8459663:R12.OWF.B : Mandatory Consolidated One-Off Fixes for ISG on Top of 12.1.1
    # Patch 8916358:R12.OWF.B : Service Timeout When Invoking Services Deployed to Integrated SOA Gateway
    # Patch 9349321:R12.OWF.B : Issue with item Bulk Load in Oracle Product Hub PIP 2.4
    # Patch 9446625:R12.FND.B : 1OFF:8995921:12.1.1:12.1.1:PERF : LoginModules Performance Issue
    # Patch 9070077:R12.OWF.B : 1OFF:9045280:12.1.1:12.1.1:Invoking a Web Service Requires NLS Lang When It Should be Optional
    # Patch 9153106:R12.OWF.B : IREP_Parser.PL Exits with GETPWUID Function IS Unimplemented in PARSER.PM -> Wichtig für ISG (für custom pl/sqls im ISG)
    # Patch 9004712:R12.OWF.B : One-Off for IREP PARSER on Top of Oracle E-Business Suite Release 12.1.1 -> Wichtig für ISG (für custom pl/sqls im ISG)
    IAS:
    # Patch 8607523 for the AS version 10.1.3.4
    Oracle Support told me that I need this patches because of some other problem (generating wsdl and deploy for BOM_BO_PUB package does not work in my environment) and since that, the process_item call stopped working!
    btw: The EGO_ITEM_PUB-PROCESS_ITEM call for an existing item still works (I can modify the description), but creating a new item does not work anymore. Here are the parameters I send to the web service:
    Header:
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:UsernameToken>
    <wsse:Username>sysadmin</wsse:Username>
    <wsse:Password
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">sysadmin</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    <q0:SOAHeader/>
    Body:
    <q1:InputParameters>
    <q1:P_API_VERSION>1.0</q1:P_API_VERSION>
    <q1:P_INIT_MSG_LIST>T</q1:P_INIT_MSG_LIST>
    <q1:P_COMMIT>T</q1:P_COMMIT>
    <q1:P_TRANSACTION_TYPE>CREATE</q1:P_TRANSACTION_TYPE>
    <q1:P_ITEM_NUMBER>KHR_WS_05</q1:P_ITEM_NUMBER>
    <q1:P_DESCRIPTION>desc2</q1:P_DESCRIPTION>
    </q1:InputParameters>
    Thanks,
    Konrad

Maybe you are looking for