ORA-31013: APEX_WEB_SERVICE invalid XPATH Expression

Hello

I am having trouble with the APEX_WEB_SERVICE. Function PARSE_RESPONSE_CLOB.

I called a report in the BI Publisher, to get the value of the column CLOB001 of Apex collection service.

declare
  l_clob CLOB := NULL;
begin


  l_clob := APEX_WEB_SERVICE.PARSE_RESPONSE_CLOB (
  p_collection_name   => 'APEX_BI_REPORT',
  p_xpath             => '//downloadReportObjectReturn',
  p_ns => 'http://xmlns.oracle.com/oxp/service/PublicReportService');




END;

The clob with result XML output looks like (turncated):

" < downloadReportObjectResponse xmlns =" http://xmlns.Oracle.com/OXP/service/PublicReportService ' > < downloadReportObjectReturn > UEsDBBQACAAI... .

I don't know where I am going wrong in the expression of p_xpath. Any help appreciated. Thank you.


Request Express 4.2.2.00.11

Post edited by: xarg-Xrc

I had problems with this before. Try to use something like this:

"p_ns => ' xmlns ="http://xmlns.oracle.com/oxp/service/PublicReportService' "."

Not sure if copy / paste works well here, so please note that the single quotes around the entire value and the double quotes around the path.

I think this article explains of her kind: http://oraclequirks.blogspot.com/2008/05/oracles-xml-sql-functions-and-default.html

Tags: Database

Similar Questions

  • ORA-18126: XUDY0027 - invalid target expression

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    This below returns the above error.

    It is faithful to us in being the base schema.

    DECLARE

    xmlresp CLOB.

    pvxml XMLTYPE.

    l_xml XMLTYPE.

    BEGIN

    xmlresp: = ' <? XML version = "1.0" encoding = "UTF-8"? >

    < HTNG_HotelRoomStatusSearchRS

                 xmlns=" http://HTNG.org/2014B "

    " xmlns: ota = ' http://www.OpenTravel.org/OTA/2003/05 "" "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://HTNG.org/2014B ' HTNG_HotelRoomStatusSearchRS '

    TransactionIdentifier = "10" >

    < errors > < ota:Error Type = '0' doc 'None' = > < / ota:Error > < / errors >

    < success > < / success >

    < RoomInformationList >

    < Rooms >

    < TPA_Extensions >

    < UNIT_NUM UNITI = "0" / >

    < / TPA_Extensions >

    < / Rooms >

    < / RoomInformationList >

    < / HTNG_HotelRoomStatusSearchRS > ';

    l_xml: = xmltype (xmlresp);

    l_xml: = l_xml.createschemabasedxml ("HTNG_HotelRoomStatusSearchRS.xsd");

    IF l_xml.isschemabased () = 0

    THEN

    Dbms_output.put_line ('not good');

    ON THE OTHER

    Dbms_output.put_line ('great plan');

    END IF;

    Dbms_output.put_line (l_xml.getstringval ());

    -declare default element namespace "DEFAULT ". http://HTNG.org/2014B , http://www.OpenTravel.org/OTA/2003/05 DID "ota"

    SELECT XMLQUERY (' copy $d: = .modify (replacement value of the node $d/HTNG_HotelRoomStatusSearchRS/Errors/Error/@ShortText with $txt)

    Change the value of the node $d/HTNG_HotelRoomStatusSearchRS/Errors/Error/@Type by $typ)

    return $of PASSING l_xml, "Error text" AS 'txt', '99' AS 'type' RETURN CONTENT)

    IN l_xml

    FROM DUAL;

    END;

    You are missing the declaration of namespaces again, and error belongs to the namespace ota:

    (SELECT XMLQUERY

    ' declare default element namespace "http://htng.org/2014B";

    declare namespace ota = "http://www.opentravel.org/OTA/2003/05";

    copy $d: =.

    Edit)

    Change the value of the node $d/HTNG_HotelRoomStatusSearchRS/Errors/ota:Error/@ShortText by $txt

    change the value of the node $d/HTNG_HotelRoomStatusSearchRS/Errors/ota:Error/@Type by $typ

    )

    return $from

    PASSAGE l_xml

    , "Error text" AS "txt".

    , '99' AS 'type '.

    RETURN CONTENT)

    IN l_xml

    FROM DUAL;

  • What is the cause of the error in XPath expression concat

    Hello

    In a BPEL process that I work on I have build a list as follows: -.

    < copy >
    < expression = "concat (bpws:getVariableData('FMSNumbersList'),' |)" ',bpws:getVariableData('Invoke_1_GetFmsHeadersSelect_OutputVariable','FmsWaveAssignCollection','/ns5:FmsWaveAssignCollection/ns5:FmsWaveAssign/ns5:fmsHeadersCollection/ns5:FmsHeaders[bpws:getVariableData('FmsHeadersProcessed')]/ns5:fmsNumber'))"/>
    < variable = "FMSNumbersList" / >
    < / copy >

    When I compile the project I get the following error:
    Error (195): invalid xpath expression
    "concat (bpws:getVariableData(&apos;) XPath expression. FMSNumbersList & apos;), & apos; & apos; bpws:getVariableData(&APOs;Invoke_1_GetFmsHeadersSelect_OutputVariable&apos;,&APOs;) FmsWaveAssignCollection & apos; & apos; / ns5:FmsWaveAssignCollection / ns5:FmsWaveAssign / ns5:fmsHeadersCollection / ns5:FmsHeaders [bpws:getVariableData(&apos;) "[FmsHeadersProcessed & apos ;)] / ns5:fmsNumber & apos ;)) ' specified in < from > is invalid, because the XPath query syntax error.
    The syntax error occurs during parsing concat (bpws:getVariableData('FMSNumbersList') XPath expression,' |) ',bpws:getVariableData('Invoke_1_GetFmsHeadersSelect_OutputVariable','FmsWaveAssignCollection','/ns5:FmsWaveAssignCollection/ns5:FmsWaveAssign/ns5:fmsHeadersCollection/ns5:FmsHeaders[bpws:getVariableData('FmsHeadersProcessed')]/ns5:fmsNumber')), at position 255.
    The XPath query syntax was false; the exception was: anticipated :).
    Check the detailed origin described in the text of the exception message and verify that the XPath expression that is named in the error message is correct. The XPath expression is defined in the BPEL process.

    Make sure the expression is valid

    I can't understand what is wrong with the above expression. Can someone please.

    Thanks in advance
    Harish

    I have observed that BPEL uses expression within another expression with altered quotes (which is unique to double and double single). If you see your normal activity entitled, the begins with the double quotes but the part bpws:getVaraibleData is in single quotes. Similarly, you have defined your variable expression of array [] within this bpws:getVariableData Index, so that it looks for different sides. I think technically, that is fair. Would you like to read http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial3-DataManipulationTutorial.pdf

  • Call the PLSQL function - ORA-31013: XPATH not valid expressioon

    I tried the following SQL statement. When I called the function, it in error.


    Select *.

    Since the release of v$.

    ----

    1Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - 64bi
    2PL/SQL version 10.2.0.3.0 - Production
    3CORE 10.2.0.3.0Production
    4AMT for Linux: release 10.2.0.3.0 - Production
    5NLSRTL Version 10.2.0.3.0 - Production



    function READ_SYSTEM_RESPONSE (PARAM IN CLOB)

    RETURN NUMBER

    AS

    " l_namespace varchar2 (1000): =' xsi: schemaLocation =" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader ' PackageProxy.xsd '

                                    xmlns:sh=" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader "

                                    xmlns:ef=" http://www.efatura.gov.tr/package-namespace "

                                    xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "';

    XmlType x

    : = XMLTYPE ("<?") XML version = "1.0" encoding ="UTF - 8"? >

    " < sh: StandardBusinessDocument xsi: schemaLocation =" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader ' PackageProxy.xsd '

                          xmlns:sh=" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader "

                          xmlns:ef=" http://www.efatura.gov.tr/package-namespace "

                          xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance ">

    < sh: StandardBusinessDocumentHeader >

    < sh: HeaderVersion > 1.0 < / sh: HeaderVersion >

    < / sh: StandardBusinessDocumentHeader >

    (< / sh: StandardBusinessDocument > ');

    Ana CURSOR IS

    SELECT 1 - EXTRACTVALUE (VALUE (p),'/ sh: StandardBusinessDocumentHeader/sh: HeaderVersion', l_namespace) AS IMZA

    TABLE (XMLSEQUENCE (EXCERPT of (x,'/ sh: StandardBusinessDocument', l_namespace))) p;

    BEGIN

    FOR ana IN r

    loop

    dbms_output.put_line ('-');

    end loop;

    RETURN 1;

    EXCEPTION WHEN OTHERS THEN

    dbms_output.put_line (SQLERRM);

    RETURN 0;

    END;

    Delete this l_namespace chain, it has nothing to do there, it is not a namespace declaration:

    "xsi: schemaLocation ="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader PackageProxy.xsd

    As a general rule, simply declare the or - prefixes or by default - you need resolve the XPath expression.

    Once you correct this part, you will discover that your query returns null.

    This is because the XPath expression is not point to any node.

    Try this instead:

    SELECT EXTRACTVALUE)

    VALUE (p)

    , ' / sh: StandardBusinessDocument/sh: StandardBusinessDocumentHeader/sh: HeaderVersion'

    l_namespace

    ) AS IMZA

    TABLE)

    XMLSEQUENCE)

    EXTRACT (x, ' / sh: StandardBusinessDocument', l_namespace)

    )

    ) p

    ;

  • BEA-382505 - action ALSB validate invalid; XPath statement production

    When I tray service proxy on my ALSB, we saw this error, what should I do to solve this problem:

    BEA-382505 - action ALSB validate invalid; Instruction XPath produces no nodes to validate

    Maybe everything simply you run an XPath that returns an empty result, and this cannot be validated if necessary.

    Try to assign the result of your XPath to a variable and save it before you post. If it is empty, then fix your Xpath expression - or avoid the step of validation if the variable is empty. I could be wrong however.

  • Evaluation of a String XPath Expression with the Variable

    SQL & gt; Select * from version of v$.

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    5 selected lines.

    SQL & gt; Get & xdb.eval
    1 xquery
    2. let $x: = document {& lt; doc & gt; & lt; a & gt; 1 & lt; /a & gt; & lt; b & gt; 2 & lt; /b & gt; & lt; c & gt; 3 & lt; / c & gt; & lt; / doc & gt ;}}
    3. let $i: = ' / doc/one.
    4 * return $x (: {$i} :))
    SQL & gt; /

    Result sequence
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    & lt; doc & gt; & lt; a & gt; 1 & lt; /a & gt; & lt; b & gt; 2 & lt; /b & gt; & lt; c & gt; 3 & lt; / c & gt; & lt; / doc & gt;

    1 item (s) selected.

    SQL & gt; Edit
    A written file afiedt.buf

    1 xquery
    2. let $x: = document {& lt; doc & gt; & lt; a & gt; 1 & lt; /a & gt; & lt; b & gt; 2 & lt; /b & gt; & lt; c & gt; 3 & lt; / c & gt; & lt; / doc & gt ;}}
    3. let $i: = ' / doc/one.
    4 * return $x {$i}
    SQL & gt; /
    ERROR:
    ORA-19114: XPST0003 - error during parsing of the XQuery expression:
    LPX-00801: XQuery syntax error in ' {'}
    3. return $x {$i}
    - ^


    SQL & gt; -expected result: & lt; a & gt; 1 & lt; /a & gt;

    My goal is to use the results of the xmldiff function to analyze the changes in xml documents. The xmldiff product update-nodes with xpath attribute elements. I want to produce a result extended with surrounding elements of the node has changed. This feature to evaluate the content of a variable in UNIX is provided by the $(expr) or the function eval in other script languages. How this is done in xquery?

    Edited by: 880283 August 18, 2011 19:26

    Hello

    There is no standard XQuery function to do.

    Here are some alternatives:

    1 - construction of the entire XQuery expression dynamically
    2. using a user-defined function to access the items dealt with by the XPath expression
    3 - use excerpt function, but it is obsolete...

    Example 1-

    SQL> var doc1 varchar2(4000)
    SQL> var doc2 varchar2(4000)
    
    SQL> begin
      2
      3   :doc1 := '
      4   
      5    ABC
      6    XYZ
      7   
      8  ';
      9
     10   :doc2 := '
     11   
     12    ABC
     13    XYZ
     14   
     15   
     16    123
     17   
     18  ';
     19
     20  end;
     21  /
    
    PL/SQL procedure successfully completed
    
    SQL> with t as (
      2   select xmldiff(xmltype(:doc1), xmltype(:doc2)) xdiff_doc
      3   from dual
      4  )
      5  select x.*,
      6         xmlserialize(document
      7           xmlquery(x.parent_xpath
      8             passing xmltype(:doc1)
      9             returning content
     10           )
     11           as clob indent
     12         ) parent_node
     13  from t,
     14       xmltable(
     15         xmlnamespaces('http://xmlns.oracle.com/xdb/xdiff.xsd' as "xd"),
     16         '/xd:xdiff/child::*'
     17         passing t.xdiff_doc
     18         columns
     19           op_type        varchar2(30)   path 'local-name(.)'
     20         , node_type      varchar2(30)   path '@xd:node-type'
     21         , parent_xpath   varchar2(2000) path '@xd:parent-xpath'
     22         , attribute_name varchar2(30)   path '@xd:attr-local'
     23       ) x
     24  ;
    
    OP_TYPE                        NODE_TYPE                      PARENT_XPATH                 ATTRIBUTE_NAME                 PARENT_NODE
    ------------------------------ ------------------------------ ---------------------------- ------------------------------ ----------------------------------
    delete-node                    attribute                      /root[1]/item[1]             id                             
                                                                                                                                ABC
                                                                                                                                XYZ
                                                                                                                              
    
    append-node                    element                        /root[1]                                                    
                                                                                                                                
                                                                                                                                  ABC
                                                                                                                                  XYZ
                                                                                                                                
                                                                                                                              
     
    

    Published by: odie_63 on August 19, 2011 10:40

  • ORA-00904: "ORA_ROWSCN": invalid identifier

    Get this error when trying to open tables in SQL Developer and data display.

    ORA-00904: "ORA_ROWSCN": invalid identifier

    Found a very old thread talking about this error, and now it's happening with me with SQL Developer Version on a Mac/Yosemite 4.1.1.19.

    https://community.Oracle.com/thread/1019844

    It happened for awhile and I didn't say anything because I can run a select statement * and get all the data I need. But it is bit boring so wonder if it's a bug that's resurfaced? Anyone else seeing this? Apparently not, because there seems to be no recent discussions on this subject, but maybe I'm not find them.

    Earl

    References to the built-in ORA_ROWSCN function should not return the message "invalid identifier" when connected to Oracle 10 g R1 or higher.  When you connect to a pre - 10 g R1, uncheck the box use ORA_ROWSCN for DataEditor insert and update statements in Tools > Preferences > Database > Object Viewerr.

    Edit:

    Oracle 10 g or higher, tables with a policy defined on them will know it: ORA-00904: 'ORA_ROWSCN': invalid makes unusable 2.1.0.63 output

    Edit2:

    More information, if you wish: using ora_rowscn on a table FGAC: bug?

  • Problem with an xpath expression

    I know this isn't forum BPEL, BPEL forum is not active as a forum of the ADF because I post here. Thank you.

    I have no problem running my SOA BPEL application on test environment. When I deploy the same thing to the prod. environment, I have error "selectionfailure." When I checked the instance I noticed that this block of (operation assign) a single element is repeated twice. He threw the error message "'the result contains 2 nodes for the XPath expression" "

    I tried under code but no luck.

    < copy bpelx:ignoreMissingFromData = 'yes '.
    bpelx:insertMissingToData = "yes" >

    query. query returns 1 row.

    Are you sure that it returns only a single folder on the production environment for given id? (you paste only the payload)

    Can I add indexes like this at the end? ' / ns3:AuthDBServiceOutputCollection / ns3:AuthDBServiceOutput / ns3:USER_ID [1].

    Well, it is rather: /ns3:AuthDBServiceOutputCollection / ns3:AuthDBServiceOutput [1] / ns3:USER_ID

    But if your query returns a single folder, then it is not.

    Dario

  • ORA-00904: "YYYY": invalid identifier using impdp

    Hello

    I am trying to import a part of a table to another table on the remote database using impdp:

    Impdp directory of centrumadmin/centrumadmin = network_link DUMP_LOG_DIRECTORY LOGFILE = backup_2014_01.log = REF2ISKNE = 'AUD$ _BACKUP' content TABLES = QUERY DATA_ONLY =------"WHERE \" NTIMESTAMP # "> to_date\ (January 2, 2014","DD-MM-YYYY '------") "------"; "

    But still get this error:

    Start "CENTRUMADMIN". "' SYS_IMPORT_TABLE_01 ': centrumadmin / * directory = network_link DUMP_LOG_DIRECTORY LOGFILE = backup_2014_01.log = REF2ISKNE TABLES = AUD$ happy _BACKUP = DATA_ONLY QUERY =" WHERE NTIMESTAMP # > to_date (02-2014, MM-YYYY) ""

    Current estimation using BLOCKS method...

    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

    Total estimation using BLOCKS method: 4,473 GB

    ORA-31693: Data Table object 'CENTRUMADMIN '. "" AUD$ _BACKUP "could not load/unload and being ignored because of the error:

    ORA-00904: "YYYY": invalid identifier

    Work "CENTRUMADMIN". "" SYS_IMPORT_TABLE_01 "completed with error (s 1) to Wed Feb 11 09:32:15 2015 elapsed 0 00:00:03

    Any ideas? If I change the date format YYYY-MM-DD or the other, always error is in the last part: ORA-00904: "DD": invalid identifier.

    Thank you.

    Honza

    Hi Mika,

    have you played around with some double 'or triple?

    as

    to_date\ ("02/01/2014","DD-MM-YYYY"------)-«;»

    concerning

    Kay

  • ORA-00904: "PCT_DB_TIME": invalid identifier

    Hello

    on 11.2.0.4 on Win 2008

    I got when running:

    SQL > SELECT EVENT, n.WAIT_CLASS,.

    TIME_WAITED_MICRO, ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) 2 PCT_DB_TIME

    3. IN V$ SYSTEM_EVENT E, V$ EVENT_NAME N,.

    4 (SELECT the DBTIME OF the V VALUE $ SYS_TIME_MODEL WHERE STAT_NAME = 'DB time') S

    5. WHERE E.EVENT_ID = N.EVENT_ID

    6 AND N.WAIT_CLASS NOT IN ('inactive', ' E/s system') and PCT_DB_TIME <>0

    7 ORDER BY PCT_DB_TIME ASC;

    AND N.WAIT_CLASS NOT IN ('inactive', ' E/s system') and PCT_DB_TIME <>0

    *

    ERROR on line 6:

    ORA-00904: "PCT_DB_TIME": invalid identifier

    Thanks for the help.

    This is an invalid identifier because you cannot use a column assigned in the application to the location alias WHERE clause or ORDER BY in the same query.  You have two options to rewrite this query:

    SELECT EVENT, n.WAIT_CLASS,
    TIME_WAITED_MICRO, ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) PCT_DB_TIME
    V $ SYSTEM_EVENT E, V$ EVENT_NAME N,.
    (SELECT the DBTIME VALUE OF V$ SYS_TIME_MODEL WHERE STAT_NAME = "DB time") S
    WHERE E.EVENT_ID = N.EVENT_ID
    AND N.WAIT_CLASS NOT IN ('Idle', ' E/s system') and ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) <> 0
    ORDER BY ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) ASC;

    and

    SELECT * from
    (SELECT EVENT, n.WAIT_CLASS,
    TIME_WAITED_MICRO, ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) PCT_DB_TIME
    V $ SYSTEM_EVENT E, V$ EVENT_NAME N,.
    (SELECT the DBTIME VALUE OF V$ SYS_TIME_MODEL WHERE STAT_NAME = "DB time") S
    WHERE E.EVENT_ID = N.EVENT_ID
    AND N.WAIT_CLASS NOT IN ('Idle', ' E/s system'))
    where PCT_DB_TIME <> 0
    ORDER BY PCT_DB_TIME ASC;

    Both work.

    David Fitzjarrell

  • XQuery insert node and assign the value based on an XPATH expression

    Hello

    I am trying to write a function that receives an XML as input parameters and return updated XML output

    -nodes are removed from the input XML code

    -a node must be inserted and the node value must be 1 or 0, based on an XPATH expression

    I discovered how to remove nodes, I discovered how to insert a new node, but I can not set the value of the conditionally inserted node an XPATH expression.

    Here's my current procedure and below a sample of one XML of entry. I use Oracle 12 c.

    CREATE OR REPLACE FUNCTION STRIP_XML
    (
      IN_XML IN SYS.XMLTYPE
    ) RETURN SYS.XMLTYPE AS
    p_result XMLType;
    BEGIN
      select
          xmlquery(
             'declare default element namespace "http://mad.evs.com/search"; (: :)
              copy $d := .
              modify (
      delete node $d//MainCategory/@logId,
               delete node $d/MainCategory/@id,
    -- a lot more of those delete node
     -- insert a node, but the value 1 is conditional
               insert node <DMZ>1</DMZ> after $d/MainCategory/SDataSection/EventDate)
              return $d'
            passing in_xml
            returning content
            ) into p_result
            from dual;
    
    
      RETURN p_result;
    END STRIP_XML;
    

    The condition for the value of is


    HASPATH (//DigitalAssets/DigitalAsset [@ available = "true" and @videoFormatId = "11"] / VideoLocations/Videorental [@typeId = "8"]) then 1 else 0


    It is complex because DigitalAssets/DigitalAsset is a collection. Here is an example of an XML to entry



    <MainCategory xmlns="http://mad.evs.com/search" id="9" logId="3349" logType="3">
      <Name>Sport</Name>
      <Serie id="163" externalId="557">
      <TitleAKA>UCL 2006/07</TitleAKA>
      <DigitalAssets available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3">
         <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="3">
            <VideoLocations>
                <VideoLocation id="3" path="003349MA.mxf" typeId="1" locationId="1" priority="0"/>
                <VideoLocation id="3" path="003349MA.mxf" typeId="2" locationId="1" priority="0"/>
                <VideoLocation id="3" path="003349MA.mxf" typeId="5" locationId="1" priority="0"/>
             </VideoLocations>
          </DigitalAsset>
          <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="11">
             <VideoLocations>
                <VideoLocation id="101" path="003349MA.mpg" typeId="1" locationId="1" priority="0"/>
                <VideoLocation id="101" path="003349MA.mpg" typeId="2" locationId="1" priority="0"/>
                <VideoLocation id="101" path="003349MA.mpg" typeId="8" locationId="1" priority="0"/>
             </VideoLocations>
          </DigitalAsset>
      </DigitalAssets>
      <SDataSection xmlns="http://mad.evs.com/search">
        <EventDate>2006-08-09</EventDate>
        <LogType>3</LogType>
      </SDataSection>
    </MainCategory>
    


    In this case, because HASPATH expression could be set to true, the value of the added node must be 1.


    Any help or advice how I should fight against that would be appreciated. I have no experience with XML and XQuery, I create my function through from trial and error of the doc.


    Thanks and regards, Pierre

    Hi Pierre,.

    You can use the if-then-else statement, like this:

    Insert the node

    {

    If ($d/MainCategory/DigitalAssets/DigitalAsset[@available="true' and @videoFormatId = '11'] / VideoLocations/Videorental [@typeId = '8'])

    then 1

    0 otherwise

    }

    After $d, MainCategory, SDataSection, EventDate

    XSLT can be an alternative to the XQuery Update in this case.

  • FDMEE failed to import - ORA-00904: "CHECK_FLAG": invalid identifier

    We get this error when importing data from BSE. We use 11.1.2.3.00. Any help would be appreciated.

    < errorMessage > <! [CDATA [ODI-1226: p_bal_check_flag step fails after 1 attempt.]]

    ODI-1228: P_bal_check_flag (Variable) of the task fails when you connect target FDMEE_DATA_SERVER.

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "CHECK_FLAG": invalid identifier

    We have re-imported importing files & data scenario worked. Trying to find how the scenario files has been changed.

    Thank you

  • Change the XPath expression in the data

    Hello

    We have about 2000 variables that are mapped on the underside of XPATH. Now there is a change in the XPATH expression, and new nodes are introduced now.

    ! Request/XmlTransaction/Quote/Product/Form/FormMetaData/NonParseData/FormVariableData

    ! Request/XmlTransaction/Quote/Product * / rental/Section / * Form, FormMetaData, NonParseData, FormVariableData

    Is there a way where I can change all of these XPATH using the wizard of Documaker Studio. We tried to export files FAP and did a find and replace in all files in Notepad and then imported again but the Studio does not show them correctly.

    Before exporting data mask

    VARIABLE 1
    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData/QE5837/FIRST_LIMIT_LIABILITY

    VARIABLE 2

    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData/QE5837/DATE_1_O

    VARIABLE 3

    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData/QE5837/EXCESS_LIMIT_LIABILITY

    4 VARIABLE
    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData/QE5837/DATE_2_O


    After the export in the Studio

    VARIABLE 1
    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData/QE5837/FIRST

    VARIABLE 2
    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData

    VARIABLE 3
    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData/QE5837/EXCESS

    4 VARIABLE
    ! Request/XmlTransaction/Quote/Product/rental/Section/Form [FormId = QE5837] / FormMetaData/NonParseData/FormVariableData

    We could see that search data is truncated during import. We use Studio 12.1 on Windows Server and our resources are stored in the UDB database in Solaris.

    Thanks in advance.

    Hi Pierre,.

    It is not a section of editting good idea in Notepad. If you want to change XPATH in this mode, in addition to the action 'replace', you'll need to find the length of the XPATH expression, you will replace. This information you will also need to be updated accordingly to the line in which your XPATH is replaced. Otherwise when you check the FAP to library, Studio will read only up to the length of previous XPATH.

    for example: length of the underside of XPATH is 106
    ! Request/XmlTransaction/Quote/Product * / rental/Section / * Form, FormMetaData, NonParseData, FormVariableData

    Hope you consider XDD concept in such scenarios.

    Thank you
    Caty chirani

  • ORA-00904: "OCT": invalid identifier

    Hi all

    I serve immediate execulte to create a table as below

    SQL_STR: = ' create table test_archive in select * from test_one where date_key between ' TO_DATE(20121001,'YYYYMMDD') |' and ' | TO_DATE(20121002,'YYYYMMDD');
    run immediately SQL_STR;

    I am getting error below.

    Eexeduting the varSqlstmt.
    Error CODE: ORA-00904: "OCT": invalid identifier

    and it has generated the request as below,

    create the table test_archive in select * from test_one where
    date_key between 1st October 12 and October 3, 12

    My requirement is instead of 'OCT', there on-screen as "10".

    Note: date_key column date datatype.

    Please someone help me in this.

    Thank you
    Sree

    youre not to quote your string correctly either. Use single quotes 4 to wrap where you need a quote in your chain of... for example...

    SQL_STR: = ' create table test_archive in select * from test_one where date_key between TO_DATE (|) '''' || "' 20121001," | '''' || "(AAAAMMJJ || ''' || ') |"

    Edit: Sorry, you get the gist... 4 apostrophes in a dynamic string you give 1 quote. I have not tested the above, so its so probably wrong but the use of this formula and you will get it

  • With the help of the variable? operator in an XPath Expression

    I try using the operator variable (?) in an Oracle statement used in a prepared where query clause. This is the query:
    select xt.APPLICATION_NAME, xt.VERSION, xt.EVENT_TYPE, xt.SENDING_SITE, xt.RECEIVING_SITE, xt.EVENT_ID 
          from AUDITED_EVENT_XML_MIN e,
             XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                    '/xae:auditable-event'
                    PASSING e.xml_event_content
                    COLUMNS
                    APPLICATION_NAME VARCHAR2(255) PATH 'xae:application-name',
                    VERSION          VARCHAR2(255) PATH 'xae:version',
                    EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                    SENDING_SITE     VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.4/HD.2',
                    RECEIVING_SITE   VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.6/HD.2',
                    EVENT_ID         VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.10') xt
                where existsNode(E.XML_EVENT_CONTENT, '/xae:auditable-event[xae:event-type=?]','xmlns:xae="http://gov/va/med/datasharing/audit/endpoint/audit"') = 1
    This code works when the? is replaced by 'aValue '. I need to use the? so that my Java client can pass a variable value in the query.
    Is this a sustainable feature or I do something wrong?
    I've seen examples in the Guide of the Oracle XML DB Developer where there was a? in an XPath expression.
    I also tried '? "with the same question...

    Here is the version information:
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Sep 10 18:41:55 2012
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Any help would be greatly appreciated.
    Thanks in advance...

    Can someone tell me whether or not he is a legal substitution?

    No, this is not legal.

    ? defines a placeholder for a variable binding, that of all he can do, binds a variable (value) at run time, it does not handle identifiers and especially the moving parts of the code.

    You can use the concatenation to add the code fragment:

    " ... AND " + myFilter + " ... remaining for the query string"
    

    BTW, I see you are trying to create a paging query, but the ORDER BY is moved, it must be in the innermost query, not at the same level as ROWNUM:

    SELECT PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID
    FROM (
      SELECT rownum as rn, PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID
      FROM (
        SELECT aet.AUDITABLE_EVENT_XML_PK_ID AS PK_ID, xt.EVENT_TYPE, xt.OUTCOME, xt.SENDING_SITE, xt.RECEIVING_SITE, aet.CREATED_TIME as CREATED_TIME, xt.EVENT_ID, xt.PATIENT_ID
        FROM AUDITABLE_EVENT_XML aet,
             XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
               '/xae:auditable-event'
               PASSING aet.xml_event_content
               COLUMNS
                 EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                 SENDING_SITE     VARCHAR2(255) PATH 'xae:sending-site',
                 RECEIVING_SITE   VARCHAR2(255) PATH 'xae:receiving-site',
                 EVENT_ID         VARCHAR2(255) PATH 'xae:event-id',
                 PATIENT_ID       VARCHAR2(255) PATH 'xae:patient-id',
                 OUTCOME          VARCHAR2(255) PATH 'xae:outcome'
             ) xt
        WHERE aet.CREATED_TIME BETWEEN ? AND ?
        AND (OUTCOME=0 or OUTCOME=1)
        ORDER BY CREATED_TIME desc
      )
      WHERE rownum <= ?
    )
    WHERE rn > ?
    

    or using ROW_NUMBER():

    SELECT PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID
    FROM (
      SELECT aet.AUDITABLE_EVENT_XML_PK_ID AS PK_ID, xt.EVENT_TYPE, xt.OUTCOME, xt.SENDING_SITE, xt.RECEIVING_SITE, aet.CREATED_TIME as CREATED_TIME, xt.EVENT_ID, xt.PATIENT_ID
           , ROW_NUMBER() OVER(ORDER BY created_time DESC) rn
      FROM AUDITABLE_EVENT_XML aet,
           XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
             '/xae:auditable-event'
             PASSING aet.xml_event_content
             COLUMNS
               EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
               SENDING_SITE     VARCHAR2(255) PATH 'xae:sending-site',
               RECEIVING_SITE   VARCHAR2(255) PATH 'xae:receiving-site',
               EVENT_ID         VARCHAR2(255) PATH 'xae:event-id',
               PATIENT_ID       VARCHAR2(255) PATH 'xae:patient-id',
               OUTCOME          VARCHAR2(255) PATH 'xae:outcome'
           ) xt
      WHERE aet.CREATED_TIME BETWEEN ? AND ?
      AND (OUTCOME=0 or OUTCOME=1)
    )
    WHERE rn <= ?
    AND rn > ? 
    

Maybe you are looking for

  • How can I reset my iPhone 5 s when his shot

    To help other members in answering your question, give as much detail as possible. Include your product name and specifications such as processor speed, 16 GB memory storage capacity. 11.8 GB "iOS 9.3.5. Describe the problem and include details on wh

  • Telephone number Facebook replaces all other contact phone numbers

    The title pretty much everything said. I have a facebook contact who has added their phone number to facebook. This phone number is only available when you view the contact through the contact application and when typing his name in the phone app. Be

  • Update fails: KB971644 8007371B and KB970710 error 80070490 error

    I had a lot of mistakes with updates recently in general I can find them in the center of download and manual update.  This does not work for KB970710. Update KB971644 is a novelty of this annoyance Ive been seen every month with updates.  I can't fi

  • Since going to IE8, can receive emails with parts joined most

    I previously posted that I couldn't receive an e-mail with an attachment jpg.   I note many messages about the attachments that cannot be opened in these forums.  Please note that this is NOT my situation.  If an email has a certain type of attachmen

  • Slide show won't play in DVD player

    Well, I never did this before.  I created a slide show and put in Windows Media Player.  I add to my burn list and select burn to DVD.  It goes through the complete process of engraving and allows to eject the disc.  It will play in my computer, but