Documaker 12.1 XPath Syntax Issue

We are moving to Documaker Studio 12.1 from Docucreate 11.0. So, I am importing few forms into 12.1 and doing test runs. I ran into a XPath syntax issue. We use XPath manual triggers to trigger forms and sections.
In 11.0, the following trigger (use as Search Mask (True/False) in Manual Triggers) works perfectly fine. But it doesn't work in 12.1
*!/Acord/Bills/Form/[FormNumber='U61']FormNumber*
In 12.1, I have to remove the "/" present before "[" to make it work - as shown below.
*!/Acord/Bills/Form[FormNumber='U61']FormNumber*
Is there a way we can make the old syntax work with 12.1 as well? It would save us from changing thousands of Form and Section Triggers?
Thank you,
SGov.

I suspect the short answer is No. The initial xPath syntax appears invalid as you would not define a slash between the node and the attribute that belongs to the node. The fact that it somehow succeeded was an anomaly that must have been corrected.

Similar Messages

  • Dynamic SQL from within DML - merging syntax issue #2

    Further to my previous thread on a SQL - DML merging syntax issue, I have another problem with multiple conditions in the WHERE-clause:
    vrb _retval decimal
    vrb _val1 text
    vrb _val2 text
    _val1 = 'value1'
    _val2 = 'value2'
    SQL SELECT DIM1_ATTR1 FROM MYSCHEMA.DIM1_DIM WHERE COL1 = :_val1, AND COL2 = :_val2, INTO :_retval
    The above SQL will return NA. If I use the text literals instead of the OLAP variables, the query just runs fine. Also, with a single condition (on COL1 only) the query returns the expected value.
    A note in the help states that OLAP DML objects should clearly be sperated from the rest of the SQL but does not say how. I am using a colon before and a comma after as without them the line would not compile. I could not find any example that would use multiple conditions in the WHERE-clause however the help text indicates that it is possible.
    Please help me, how.
    Regards,
    Csaba
    Windows, Oracle10gRel2 Ver. 10.2.0.1.0 eversion: 84090

    It does work, although I applied the finishing touch by removing the commas as well!
    Thanks a lot! Good job!
    Could you please have a look at issue #1 too? :-)
    Regards,
    Csaba

  • XPath Syntax Query

    Hello,
    I am trying to write an XPath syntax query to retrieve some specific child nodes in a loop (in PLSQL) from the following document excerpt..
    <?xml version="1.0" encoding="utf-8" ?>
    <Request RequestNumber="">
    <TargetServers>
    <TargetServer>
    <HARDWARE>
    <HOSTNAME>HNSS1</HOSTNAME>
    </HARDWARE>
    <PRODUCTS>
    <PRODUCT PRD_ID="123" QUANTITY="10">
    <PERIOD></PERIOD>
    <PROD_ATTRIBUTES>
    <SUPP>ven1</SUPP>
    <EDITION>ENTERPRISE</EDITION>
    <VERSION>1.0</VERSION>
    </PROD_ATTRIBUTES>
    </PRODUCT>
    <PRODUCT PRD_ID="234" QUANTITY="3">
    <PERIOD></PERIOD>
    <EXEMPTIONS>
    <EXEMPTION_CODE>xxx1</EXEMPTION_CODE>
    </EXEMPTIONS>
    <EXCEPTIONS />
    <PROD_ATTRIBUTES />
    </PRODUCT>
    <PRODUCT PRD_ID="345" QUANTITY="5">
    <PERIOD></PERIOD>
    <EXCEPTIONS />
    <PROD_ATTRIBUTES />
    </PRODUCT>
    </PRODUCTS>
    </TargetServer>
    <TargetServer>
    <HARDWARE>
    <HOSTNAME>HNSS2</HOSTNAME>
    </HARDWARE>
    <PRODUCTS>
    <PRODUCT PRD_ID="123" QUANTITY="10">
    <PERIOD></PERIOD>
    <PROD_ATTRIBUTES>
    <SUPP>ven1</SUPP>
    <EDITION>ENTERPRISE</EDITION>
    <VERSION>1.0</VERSION>
    </PROD_ATTRIBUTES>
    </PRODUCT>
    </PRODUCTS>
    </TargetServer>
    </TargetServers>
    </Request>
    What I am trying to do is retrieve only those products associated with a given hostname but the xpath query I have come up with returns ALL the products for the entire document.
    I am using the following code
    xpath.selectnodes(doc,'/Request/TargetServers/TargetServer/PRODUCTS/PRODUCT');
    Which I think is correctly returning (in the example above) all three product nodes.
    My question is how do I make the xpath query ONLY select the nodes for a given specific hostname ?
    I tried adding an HN attribute to the TARGETSERVER node and then using the following syntax
    xpath.selectnodes(doc,'/Request/TargetServers/TargetServer[@HN="HN1"]/PRODUCTS/PRODUCT');
    but that didn't work..
    Any other suggestions gratefully received.
    Thanks

    Hi,
    Based on the sample document you provided, this should work :
    /Request/TargetServers/TargetServer[HARDWARE/HOSTNAME="HNSS1"]/PRODUCTS/PRODUCT
    I am using the following code
    xpath.selectnodes(doc,'/Request/TargetServers/TargetServer/PRODUCTS/PRODUCT');You said you're using PL/SQL, but isn't that a Java method?

  • XPATH Syntax

    Simple question. Can someone please provide the proper syntax for placing an Input Variable into the query-database XPATH statement? I cannot even get this statement to compile (or any variants of it):
    orcl:query-database('select ename from emp where empno = bpws:getVariableData('inputVariable','payload')',false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')
    Here is the detailed error:
    Error(30): [Error ORABPEL-10039]: invalid xpath expression [Description]: in line 30 of "C:\OraBPELPM_1\integration\jdev\jdev\mywork\BPELws\JDBC\JDBC.bpel", xpath expression "orcl:query-database('select ename from emp where empno = bpws:getVariableData('inputVariable')',false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')" specified in <from> is not valid, because XPath query syntax error. Syntax error while parsing xpath expression "orcl:query-database('select ename from emp where empno = bpws:getVariableData('inputVariable')',false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')", at position "79" the exception is Expected: ). Please verify the xpath query "orcl:query-database('select ename from emp where empno = bpws:getVariableData('inputVariable')',false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')" which is defined in BPEL process. . [Potential fix]: Please make sure the expression is valid.
    I have been trying to XSQL to work and it suffers from XPATH issues at runtime.
    Clemens, any suggestions here? I was thinking perhaps of using ora:parseEscapedXML to forceably create the proper expression after concatenating the orcl:query-database together with the EMPNO after it is assigned to a holding String variable. Not sure it would work though. It does not look like you can perform 2 successive COPY TO / FROM in one set of tags.
    Thanks!

    Does anybody have any suggestions for this issue? Has anyone gotten this aspect of XPATH to work correctly? HELP!

  • 'How to..use reporting variables in BPS'  syntax issue

    Hi,
    I am implementing the white paper 'How to...use reporting variables in BW-BPS' and I am getting a syntax error in the include YBW_BPS_VAR_READ. The error indicates 'Statement is not accessible' for my line:
    SELECT SINGLE * FROM ybw_bps_var_map
    ybw_bps_var_map being my transparent table as described in the white paper.
    I have never seen such a syntax error, has anyone had the same issue? My code is the one in the white paper.
    Thanks for any help.
    David

    Hi David,
    I have the coding up and running. I have not seen this error before and don't know how to resolve it. If you cut&paste it from the PDF, then maybe some special characters got pasted into the ABAP editor. Try to delete the line and type it in manually.
    Regards
    Marc
    SAP NetWeaver RIG

  • Sql loader syntax issue

    SQL*Loader: Release 11.1.0.7.0 - Production on Thu Mar 18 07:21:37 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-350: Syntax error at line 1.
    Expecting keyword LOAD, found "ÐÏ".
    ÐÏࡱá
    ^
    My sqlldr file looks like this:
    sqlldr control=C:\data\ctl\ss.ctl log=C:\data\logs\ss.log userid=User/Password errors=999 discard=C:\data\discard\ss.dis
    control file looks like this:
    LOAD DATA
    INFILE 'C:\data\SS.TXT' "STR '\r\n'"
    REPLACE
    INTO TABLE SS
    FIELDS TERMINATED BY ';'
    TRAILING NULLCOLS
    ACCOUNT_NBR CHAR,
    ADDR1 CHAR,
    ADDR2 CHAR,
    ADDR3 CHAR,
    ADDR4 CHAR,
    CITY CHAR,
    STATE CHAR,
    ZIPCODE CHAR ,
    more columns all of the are the same syntax column name and char
    I can load this table using the enterprise manager but when using the sqlldr its not working.
    Anything stand out?
    Edited by: mlojan on Mar 18, 2010 5:33 AM

    Only thing I can think of is there is some character set issue between the control file and the operating syste/oracle server.
    You did you create the control file using a text based editor such as notepad or wordpad didn't you? You haven't used something like MS Word?

  • Submit Syntax issue

    Dear experts,
        I have an issue with the stmt SUBMIT.
    I have a custom program that runs in dialog mode thru which I need to call RSNAST00 program.
    Can some one please specify the syntax to call this program such that it doesn't return with the success or failure messages, I do not want the user to see the message regarding the Idoc.  Also, the program has to continue execution once the submit is done with out manual intervention.
    Please suggest.
    Here is how my systax is currently.
    SUBMIT RSNAST00
               WITH S_KAPPL EQ C_V2
               WITH S_OBJKY EQ P_num
               WITH S_KSCHL EQ C_Zabc
               WITH S_NACHA EQ C_6
                        AND RETURN
    -Amit

    Hi Amit
    I do not think that you're able to supress the messages coming out of RSNAST00. The only way I see is to submit RSNAST00 in background in synchrohous mode and return. Doing that way messages will be in spool instead of displaying to the user and you can delete spool in your program after calling RSNAST00 if any exists.
    Regards
    Dean Q.

  • XMLdb: SQL query/XPATH/RDF issue

    Hello -
    a small question about the extraction of data from a XML document using XPATH.
    I have modified a local copy of a XML schema (foxml1-0.xsd) in order to add the xdb namespace and a "defaultTable" attribute to be able to store the object in a table called MAPDO
    <xsd:element name="digitalObject" xdb:defaultTable="MAPDO">
    Then I've registered this XML schema using the statement:
    BEGIN
    DBMS_XMLSchema.registerSchema(
    schemaurl=>'http://www.fedora.info/definitions/1/0/foxml1-0.xsd',
    schemadoc=>bfilename('XMLDIR','foxml1-0.xsd'),
    CSID=>nls_charset_id('AL32UTF8'));
    END;
    After that, when I describe the table I get this:
    SQL> desc mapdo;
    Nom NULL ? Type
    TABLE of SYS.XMLTYPE(XMLSchema
    "http://www.fedora.info/definitions/1/0/foxml1-0.
    xsd" Element "digitalObject") STORAGE Object-relational TYPE
    "digitalObject730_T
    The next step: I have inserted one XML record in the table.
    => No error. The record is valid.
    It contains data from differents namespaces (foxml, rdf, oai_dc...)
    my problem:
    I can get the values for XML elements from the namespace "foxml" (the main one)
    but not from the others. (you can see the XML record at the end of the message)
    SELECT
    extract(object_value,'/digitalObject/@PID') as PID,
    extract(object_value,'/digitalObject/datastream[position()=2]/@ID') as
    sObjProp,
    extract(object_value,'/digitalObject/datastream[position()=2]/datastreamVersion/
    @LABEL') as sLabel,
    extract(object_value,'/digitalObject/datastream[position()=2]/datastreamVersion/
    @CREATED') as sCreated
    FROM mapdo e;
    The fields PID, sObjProp and sLabel are well retrieved
    But... about RDF data (see the xml record below), it describes links between objects in my database.
    <foxml:xmlContent>
    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rel="info:fedora/fedora-system:def/relations-external#">
    <rdf:Description rdf:about="info:fedora/boreal:1437">
    <rel:isMemberOf
    rdf:resource="info:fedora/boreal:1414"/>
    </rdf:Description>
    </rdf:RDF>
    </foxml:xmlContent>
    How can I extract data from rdf:RDF elements ?
    SELECT
    extract(object_value,'/digitalObject/datastream[position()=2]/datastreamVersion/
    xmlContent/RDF/Description') as sLink
    FROM mapdo e;
    It doesn't work. I get a NULL record.
    What's the solution ?
    Thank you
    Benoit Erken
    XML record:
    <?xml version="1.0" encoding="UTF-8"?>
    <foxml:digitalObject xmlns:foxml="info:fedora/fedora-system:def/foxml#"
    xmlns:fedoraxsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:audit="info:fedora/fedora-system:def/audit#"
    fedoraxsi:schemaLocation="info:fedora/fedora-system:def/foxml#
    http://www.fedora.info/definitions/1/0/foxml1-0.xsd" PID="boreal:1437">
    <foxml:objectProperties>
    <foxml:property NAME="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
    VALUE="FedoraObject"/>
    <foxml:property NAME="info:fedora/fedora-system:def/model#state"
    VALUE="Active"/>
    <foxml:property NAME="info:fedora/fedora-system:def/model#label"
    VALUE="Thèses"/>
    <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate"
    VALUE="2007-05-22T11:35:13.004Z"/>
    <foxml:property
    NAME="info:fedora/fedora-system:def/view#lastModifiedDate"
    VALUE="2007-05-22T11:35:18.412Z"/>
    <foxml:property NAME="info:fedora/fedora-system:def/model#contentModel"
    VALUE="com.vtls.vital.redrocket.collection"/>
    </foxml:objectProperties>
    <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X"
    VERSIONABLE="false">
    <foxml:datastreamVersion ID="AUDIT.0" LABEL="Fedora Object Audit Trail"
    CREATED="2007-05-22T11:35:13.004Z" MIMETYPE="text/xml"
    FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
    <foxml:xmlContent>
    <audit:auditTrail
    xmlns:audit="info:fedora/fedora-system:def/audit#">
    <audit:record ID="AUDREC1">
    <audit:process type="Fedora API-M"/>
    <audit:action>modifyDatastreamByValue</audit:action>
    <audit:componentID>DC</audit:componentID>
    <audit:responsibility>fedoraAdmin</audit:responsibility>
    <audit:date>2007-05-22T11:35:16.921Z</audit:date>
    <audit:justification/>
    </audit:record>
    <audit:record ID="AUDREC2">
    <audit:process type="Fedora API-M"/>
    <audit:action>addDatastream</audit:action>
    <audit:componentID>RELS-EXT</audit:componentID>
    <audit:responsibility>fedoraAdmin</audit:responsibility>
    <audit:date>2007-05-22T11:35:18.412Z</audit:date>
    <audit:justification/>
    </audit:record>
    </audit:auditTrail>
    </foxml:xmlContent>
    </foxml:datastreamVersion>
    </foxml:datastream>
    <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X"
    VERSIONABLE="true">
    <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Relationship Metadata"
    CREATED="2007-05-22T11:35:18.412Z" MIMETYPE="text/xml" SIZE="0">
    <foxml:xmlContent>
    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rel="info:fedora/fedora-system:def/relations-external#">
    <rdf:Description rdf:about="info:fedora/boreal:1437">
    <rel:isMemberOf
    rdf:resource="info:fedora/boreal:1414"/>
    </rdf:Description>
    </rdf:RDF>
    </foxml:xmlContent>
    </foxml:datastreamVersion>
    </foxml:datastream>
    <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
    <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Metadata"
    CREATED="2007-05-22T11:35:13.004Z" MIMETYPE="text/xml" SIZE="243">
    <foxml:xmlContent>
    <oai_dc:dc
    xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:title>Thèses</dc:title>
    <dc:identifier>boreal:1437</dc:identifier>
    </oai_dc:dc>
    </foxml:xmlContent>
    </foxml:datastreamVersion>
    <foxml:datastreamVersion ID="DC.1" LABEL="Dublin Core Metadata"
    CREATED="2007-05-22T11:35:16.921Z" MIMETYPE="text/xml" SIZE="321">
    <foxml:xmlContent>
    <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">
    <dc:identifier>boreal:1437</dc:identifier>
    <dc:title>Thèses</dc:title>
    <dc:description>FUNDP - MED : Département d&apos;Histologie
    - Embryologie - Thèses</dc:description>
    </oai_dc:dc>
    </foxml:xmlContent>
    </foxml:datastreamVersion>
    </foxml:datastream>
    </foxml:digitalObject>

    Forget this question.
    I have found more info here
    Re: XMLQuery (XQuery) with namespace

  • Java syntax issues

    Hi,
    I am getting syntax errors in below code,
    D:/usr/sap/XIQ/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map98ec4020b05611dfa9e0005056a47072/source/com/sap/xi/tf/_MM_RSPD_INFILE_RSPD_OUTFILE_.java:165: cannot resolve symbol symbol : class string location: class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ string out1 = contractNo + tmpqtystr1 + price + delperiod.substring(0,4)+"01" + condate + shipwts + mtype + cif + comtype + rejreason ^ D:/usr/sap/XIQ/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map98ec4020b05611dfa9e0005056a47072/source/com/sap/xi/tf/_MM_RSPD_INFILE_RSPD_OUTFILE_.java:177: cannot resolve symbol symbol : class string location: class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ string out2 = out1; ^ 2 errors
    is there any declaration issue..........
    string out1 = contractNo + tmpqtystr1 +  price +  delperiod.substring(0,4)+"01" +  condate +  shipwts +  mtype +  cif +  comtype +  rejreason
    +  type +   usrname +impdate +  imptime ;
    int strlen = out1.length();
    for (int s = strlen; s<178; s++)
    out1 = out1.concat("");
    string out2 = out1;
    out1 = out1.concat(delperiod.substring(0,4)+"01");
    result.addValue( out1 );
    out2 = out2.concat(delperiod.substring(0,4)+"03");
    result.addValue( out2 );

    Thanks a lot dude....
    this did solved the issue........
    lemme keep this post open.......
    seems to be some logic issue.........
    even the logic issue got solved...... thanks again....
    Edited by: san485 on Aug 25, 2010 6:13 PM

  • Xpath syntax for "a number"

    In regex, it's [0-9]+ or \d+.  I'm trying to use xpath to match a number that's any value of 18 digits long.  What's the syntax?

    DuckDuckGo: http://www.regular-expressions.info/xpath.html

  • PHP visibility on local- syntax issue

    I am changing my WYSIWYG from GoLive to Dreamweaver.
    Imported my site, that has some header and menu includes in
    php. The pages open with only the header include showing and
    nothing on the page beyond (I just see the header inlcude on the
    page, not the page design I'm working on) when I use
    <?php include ('header_incl.htm'); ?>
    When I change the code to
    <? php include ('header_incl.htm'); ?>
    I can see the design/layout of the page (with just a PHP
    shield graphic for the includes), but I get a browser error on the
    live site.
    Is there a setting in Dreamweaver to be able to view the
    page, with the syntax I'm using, on my local machine? If not, I'm
    going to sacrifice my WYSIWYG cababilities, and I'm a designer, not
    a programmer...
    Thanks.

    jcamrud wrote:
    > The include file validates out fine. As does the main
    file.
    You have a basic misunderstanding of how include files work.
    The fact
    that the two files validate independently is totally
    irrelevant. Once an
    external file is included, the *combined* code must validate.
    > I did a basic test. Created a page with just an include
    and a sentence. Same
    > thing. Doesn't show me the sentence in Dreamweaver on my
    local, but shows it
    > on the live site.
    Yes, that's browsers being tolerant of crap code. Dreamweaver
    is not a
    browser. It's designed to create standards-compliant code.
    > However, I do get a yellow box on the local version of
    the page that says
    > </head>, above the include.
    Yes, that's exactly what I expected would happen. The yellow
    box is
    Dreamweaver's way of telling you that you have incorrectly
    nested tags.
    A web page can have only one html tag, one head tag, and one
    body tag.
    When you use an include file, the *combination* of the two
    must create a
    single valid HTML document.
    > If I take out the single quote marks within the inlcude
    > <?php inlcude(header.htm); ?> it shows me the page
    with the php-shield-graphic
    > placeholder, but it doesn't recognize the include on the
    live version.
    Stop playing around with the PHP code. What you're creating
    is
    syntactical nonsense.
    The problem that you have encountered is probably the most
    common cause
    of mistakes with include files. Strip the html, head, and
    body tags out
    of your include file, and everything should fit together just
    fine and
    dandy.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • SQL Syntax Issue

    This is a weird one!!!
    I am using Dreamweaver/php/mysql and I am in the process of
    developing the forms that edit articles that have been added to the
    CMS. I have a page called edit.php which has the current list of
    articles. Each article has a radio button next to it and have given
    it an id of "id" (which is what I called it in the DB). On
    selecting this article, and hitting submit, this should load up a
    editnews2.php. On editnews2.php I have a filtered recordset that
    filters on "id " so that it loads the article selected into the
    editnews2 form. I have bound the fields in the form to the related
    fields in the recordset.
    When I test this out using the TEST button, in the recordset
    pop-up window and enter an id, it retrieves the correct article
    from the database. However, when I do it using the forms, I get an
    error:
    "You have an error in your SQL syntax; check the manual that
    corresponds to your Mysql server version for the right syntax to
    use near " at line 1"
    This is really weird because the recordset works and
    retreives the data no problems, which mean the connection file path
    is correct and other parameters are correct. I have tried lots of
    times to try and figure this out but I am now really stuck.
    Could anyone shed some light on this one?
    regards
    orange22

    orange22 wrote:
    > When I test this out using the TEST button, in the
    recordset pop-up window and
    > enter an id, it retrieves the correct article from the
    database. However, when
    > I do it using the forms, I get an error:
    >
    > "You have an error in your SQL syntax; check the manual
    that corresponds to
    > your Mysql server version for the right syntax to use
    near " at line 1"
    What that means is that the way Dreamweaver is building your
    query
    contains a mistake - probably an extra quotation mark or
    something like
    that.
    Go into Code view and use echo to display the actual SQL
    query being
    sent to the database. That will give you a clue as to where
    to start
    troubleshooting the rest of the code.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Syntax issue when having more than 20 warnings

    Hello,
    when having more than 20 warnings in a compilation unit (package, procedure ...),
    SQL Developer ( version 1.5.0.53)
    doesn't always flag an error (like, for example, a misspelled local variable),
    so instead of a compile-time error a runtime error is generated.
    I tried to reproduce the situation and here is a simplified case where i've
    encountered the same error.
    Best regards
    Alexander Andris, Prague
    [email protected]
    CREATE OR REPLACE
    PROCEDURE PROC AS
    l_arg1 pls_integer;
    l_arg2 pls_integer;
    -- declarations which issue PLW-07204 warnings ...( 20 or more ...)
    cursor c1 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c2 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c3 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c4 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c5 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c6 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    procedure proc1 is
    begin
    null;
    end;
    BEGIN
    l_arg_notdef := 42;
    -- next line would not be displayed.
    dbms_output.put_line (
    'Error in SQLDev 1.5.0 - error on the assignment line not flagged '
    || ' by the compiler when preceded by > 20 warnings ...' ||
    ' (Error not shown in navigator.Same behavior also in SQLDev 1.21 ...).');
    -- So, when lines 5 - 23 are commented out then line 31 is flagged as an
    -- error (PLS-00201), otherwise not (runtime error only).
    -- When working on a large package with more than 20 warnings and a lot of
    -- code, to find an error like a misspelled local variable one would need to
    -- a different IDE.Hope it is not difficult to fix this quickly ...
    -- Details:
    -- client platform: Windows XP
    -- SQLDev: Version 1.5.0.53 Build MAIN-53.38
    -- db.: Oracle 10.2 on Windows
    END PROC;

    Unfortunately, that's the intended behaviour.
    After complaining about errors not being reported in previous versions, they did add the "Only first 20 issues are reported" warning, but unless you know that can happen, almost nobody will notice.
    I keep advocating for reporting errors on top, next any warnings, until having used up the 20 spaces. If necessary, they could compile first with warnings turned off, then again with warnings turned on.
    I don't think I ever put a request for this on the SQL Developer Exchange, so take a look there if you're up for it.
    Also mind you can turn the warnings off yourself inside the preferences, so they won't bother (nor help) you again.
    Regards,
    K.

  • Day-date placeholder syntax issues

    Hi,
    Can someone clarify the legal syntax of the day-date placeholder. The published syntax in the OSB Reference Guide does not appear to be correct. I'm trying to script the configuration of backup schedules using the obtool 'mksched' command for a large rollout. I've tried several apparently legal forms of day-date, with the following observations.
    1. days with an upper-case first letter do not work.
    2. a day range, e.g. monday-tuesday does not work.
    3. anything that includes more than a single day must be quoted with single quotes. If not, I end up with a schedule called "wednesday", where my day-date is tuesday<space> wednesday.
    I've not tried all of the examples in the reference guide, but it would not supprise me if most of them do not work. The one 'mksched' example in the reference guide rather unhelpfully uses "-d thursday", which of course does work, being the simplest form of the syntax.
    Thanks.

    You're right, the weekday range syntax as given in the reference guide doesn't work. I guess someone needs to fix that, or remove it from the doc.
    You can do this to achieve the same result :
    obtool mksched -d "mon tue wed" <schedule_name>
    The schedules are kept in /usr/local/oracle/backup/admin/config/schedule, so once you've got a base, you might find it easier to manipulate them directly in there.

  • Tryo to customize LKM File to Oracle (SQLLDR) customized - syntax issue !

    Hello All,
    I have to modify a little the step "Generate CTL file" of the LKM File to Oracle to get a correct ctl file...
    I want to test the datatype of the column. If this is the column of type "DATE", I want to add the dateFormat to apply...
    Here is the original line of the KM :
    *<%=snpRef.getColList("", "[CX_COL_NAME]" , ",\n\t", "","")%>*
    Here is my custom code. I try to test fi the DEST_DT is of type Date and if yes, I want to add the following text "to_date(:[CX_COL_NAME], 'YYYY-MM-DD'"
    *<%=snpRef.getColList("", "[CX_COL_NAME]"<?if ("[DEST_DT]".equals("DATE")){>? " to_date(:[CX_COL_NAME], 'YYYY-MM-DD')" <?}?> ," ,\n\t", "","")%>*
    Here is the result that I want to get (in bold, the date column) :
    OPTIONS (
         SKIP=1,
         ERRORS=1,
         DIRECT=FALSE
    LOAD DATA
    INFILE "C:\caljef\countryfilesDB/20080702.txt"
    BADFILE "C:\caljef\countryfilesDB/Country_File.bad"
    DISCARDFILE "C:\caljef\countryfilesDB/Country_File.dsc"
    DISCARDMAX 1
    INTO TABLE ODITEMP.C$_0COUNTRY_FILES
    FIELDS TERMINATED BY X'09'
    TRAILING NULLCOLS
    C1_RC,
         C2_UFI,
         C3_UNI,
         C4_LAT,
         C23_SORT_NAME,
         C24_FULL_NAME,
         C25_FULL_NAME_ND,
         C26_MODIFY_DATE *"to_date(:C26_MODIFY_DATE, 'YYYY-MM-DD')"*
    How to insert an "if" in the the getColList function ? I put the * <? and ?> * operators, but it seems not to work....
    And How do I deal with the quotes... if I want to add quotes in my text, should put double quotes ?
    I get this type of error when executing this code :
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Erreur lors de l'interprétation de la syntaxe d'une tâche
    Tâche :5
    +java.lang.Exception: BeanShell script error: Parse error at line 2, column 5.  Encountered: [ BSF info: Generate CTL file at line: 0 column: columnNo+
    +     at com.sunopsis.dwg.codeinterpretor.a.a(a.java)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)+
    +     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)+
    +     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)+
    +     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)+
    +     at com.sunopsis.dwg.cmd.e.i(e.java)+
    +     at com.sunopsis.dwg.cmd.g.y(g.java)+
    +     at com.sunopsis.dwg.cmd.e.run(e.java)+
    +     at java.lang.Thread.run(Thread.java:619)+
    Thanks a lot for your Help !!!

    Hello CTS,
    Again thank you for your help.
    Unfortunately, it does not work. There's improvement, now I can execute the code without errors.
    But the CTL file genertad is still incorrect.. :-(
    The IF equals... statement seems to be is ignored. The code always runs through the else.
    I tried to display the value of DEST_DT, and that's correct, the field is of type "DATE".
    Here the file generated by with the code you send me :
              :C20_LC,
              :C21_SHORT_FORM,
              :C22_GENERIC,
              :C23_SORT_NAME,
              :C24_FULL_NAME,
              :C25_FULL_NAME_ND,
              :C26_MODIFY_DATE
    And here is the file that I would get :
              :C20_LC,
              :C21_SHORT_FORM,
              :C22_GENERIC,
              :C23_SORT_NAME,
              :C24_FULL_NAME,
              :C25_FULL_NAME_ND,
              :C26_MODIFY_DATE *"to_date(:C26_MODIFY_DATE, 'YYYY-MM-DD')"*
    The solution should not be far..... but I can't fin the right syntax !! It's become crazy!
    Any other Idea ?
    thanks for help
    glains

Maybe you are looking for

  • Domain Splitting and iDisk issues

    First, my apologies if my question has been answered previously. I did search the forums, but didn't find anything promising. I have split my large domain.sites file into four separate domain.sites file, following the guidance of folks on this forum.

  • Cannot copy/paste files from clone of Snow Leopard installation into clean Lion installation.

    I cloned my hard drive onto an external USB drive using disk utility and then erased the internal drive to install Lion onto. 70% of anything I copied from the clone of my 10.6 installation into its new home in Lion just disappeared as soon as I copi

  • Ipod touch does not communicate

    my ipod touch does not communicate with my pc.  i have followed the trouble shooter and still does not work.

  • Analytic function question

    I have been trying to fix this since yesterday ad I am close, here is the question CREATE TABLE P_X_STG   PID  NUMBER,   EID  VARCHAR2(10 BYTE) CREATE TABLE TAB_C   EID  VARCHAR2(10 BYTE),   X    NUMBER SET DEFINE OFF; Insert into P_X_STG    (PID, EI

  • MOD not giving up correct values

    Hi everyone, I am having problem on using MOD in Director, i wrote the following in director: put (3054452055 mod 16) -----giving result "-9" The value/result it gives me is not correct. It should be "7". But director is giving me "-9". So, the same