XQuery works outside of Oracle JDeveloper but fails in JDev

Hi,
I created an XQuery script that transform an XML file. It works fine in XMLSpy and Stylus, but fails with error in Oracle JDev 10.1.3.1:
XPST0008: It is a static error if an expression refers to an element name, attribute name, schema type name, namespace prefix, or variable name that is not defined in the static context, except within an ElementTest or an AttributeTest.
Detail: invalid type 'xs:anyAtomicType'
Does that mean Oracle JDev doesn't fully support XQuery 1.0?
Thanks.

Michelle,
Can you post your code?
Regards,
Geoff

Similar Messages

  • Java mapping in ccBPM works in PI 7.0 but fails in PI 7.1

    Hi guys,
    at the moment we are upgrading form SAP PI 7.0 to SAP PI 7.11.
    In a scenario for processing of incoming orders we use an ccBPM.
    In this ccBPM there is an mapping where the original xml document of the order are combined with some
    additional information form an web service (multi mapping 2 => 1)
    The result of this mapping is processed further to create an sales order in the backend.
    The multi mapping an java mapping is used.
    Now we are testing the scenario with PI 7.11 and it fails at this mapping step.
    in the workflow log following error occurs.
    An exception with the type CX_ST_MATCH_ELEMENT occ urred, but was neither handled locally, nor de
    Message no. W8899
    I tested the same message on out SAP PI 7.0 system and the whole ccBPM works well.
    When I extract the 2 messages from workflow log and paste them into the test tab of the operation mapping of Enterprise Service Builder of SAP PI 7.11, surrounding by the envelope used by multi mappings
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
                   XML MESSAGE 1
       </ns0:Message1>
       <ns0:Message2>
                   XML MESSAGE 2  
       </ns0:Message2>
    </ns0:Messages>
    the mapping works without error, but at runtime it fails, throwing the error mentioned above.
    What could be the reason for this error?
    Does the multi mapping change in PI 7.11 at runtime?
    Could it be a problem parsing the multi message?
    Any help appreciated.
    Kind regards
    Jochen

    Hi Raja,
    thanks for your suggest.
    I know this issue, the java class files are compiled using jdk 1.5.
    We made some more tests.
    e.g. created an dummy ccBPM with two mappings, one two spilt the incoming message in two messages (graphical message mapping) and one to merge this two messages to one message again (java mapping)
    the mapping works at design time on test tab, but fails with the same error at rumtime.
    Also we tested one single operation mapping with this two mappings (split via graphical mapping and merge via java mapping)
    This works also at design time but fails at runtime with a similar error shown in smq2
    The error message is Error ST_MATCH_FAIL occured. P1=element-start P2=M
    we tried to add the whole incoming message to the trace by
    getTrace().addWarning()
    but an trace object is never created in for this step in the workflow log.
    it seem whether you can not add trace messages using the command or that the error occures before this command will be used.
    Kind regards
    Jochen

  • DNG conversion 6.6 works on my XP system, but fails to see files on my Vista OS.

    DNG conversion 6.6 works on my XP system, but fails to see files on my Vista OS. Same goes for older versions of DNG.  I use the same setup of security on both systems.
    Can anyone help?

    Run an Apple Hardware test.  That may provide a clue:
    http://support.apple.com/en-us/HT201257
    Note that an error free AHT is not definitive.
    If you have all of your data backed up or an external clone HDD, I would try erasing the internal HDD,  reinstalling the OSX and then upgrading the software to 10.6.8.
    Ciao.

  • Query works on Oracle 9i, but fails on Oracle 10g - puzzling...

    In porting an application from Oracle 9i to Oracle 10g, I hit a problem that for a while I assumed was some bug of mine. But I eventually isolated the problem and can reproduce this using a single sql script and then a single delete. The amazing thing is that it works fine on Oracle 9i (always) and fails on Oracle 10g (always).
    Have I found a bug? (I would be pretty amazed).
    Here's the situation. I have four tables and a trigger set on one of those tables.
    The tables are configured so that there is the "parent" table (A). Table B has a foreign key dependency on A's primary key, with "on delete cascade". Table B also has a trigger that runs on the delete. Table C (which has no data) has an integrity constraint on A's primary key. Table D holds information used by the trigger to determine if/when table C should be dropped. (I have a script that sets all this up).
    After setting up the tables and the few data records needed, I delete a record from Table A. This causes the records in Table B to be deleted. That fires the trigger, which determines that Table C can be dropped, so the trigger drops Table C. Then, Oracle decides it still needs to check the integrity constraint on Table C (after all, C depended on A and we have deleted a record in A). Oracle then issues a query against table C, but of course table C has already been dropped and an error results.
    The exact same script followed by the delete works fine on Oracle 9i. Is this a bug or is this a documented change in behavior? Any known workarounds? Unfortunately, the application needs all the integrity constraints that are present in the schema and also runs on SQL Server, so modifications in the integrity constraints are probably not what I am seeking).
    Thanks so much!
    RB

    I wasn't sure how to post the script, but it is short enough to include below. Many thanks for the quick response.
    To connect the script below to my original post, the names are:
    Table A = OT_AW_PROCESSDEF
    Table B = OT_AW_PROCESS_APPDATADEF
    Table C = OT_AW_AD_OneLoop_1
    Table D = OT_AW_APPDATA_TABLEINFO
    The trigger is also included in the script. After running this script, the command:
    delete from OT_AW_ProcessDef where processdefId = 101
    will cause the failure on Oracle10g, but succeeds on Oracle 9i.
    Thanks again!
    RB
    /* *********************** CLEAN UP ********************************** */
    /* Order the dropping of objects in reverse of creation */
    DROP TABLE OT_AW_AD_OneLoop_1 CASCADE CONSTRAINTS
    DROP TABLE OT_AW_PROCESS_APPDATADEF CASCADE CONSTRAINTS
    DROP TABLE OT_AW_APPDATA_TABLEINFO CASCADE CONSTRAINTS
    DROP TABLE OT_AW_PROCESSDEF CASCADE CONSTRAINTS
    /* ******************* DATA TABLES *********************************** */
    /* OT_AW_PROCESSDEF(Process Definition) Table */
    /* ********** NOTE: OT_AW_PROCESSDEF and AW_PROCESS TABLES SHOULD ALWAYS HAVE THE SAME SET OF COLUMNS ********* */
    create table OT_AW_PROCESSDEF (
    processDefId NUMBER /* Id for the process definition */
    , processDefName NVARCHAR2(255) /* Name of the process definition */
    , CONSTRAINT OT_AW_PROCESSDEF_PK PRIMARY KEY(processDefId)
    insert into OT_AW_PROCESSDEF (
    processDefId, processDefName
    values (
    1, 'ADHOC'
    /* OT_AW_APPDATA_TABLEINFO(List of all application Data tables in the system) Table */
    create table OT_AW_APPDATA_TABLEINFO (
    namespace VARCHAR2(65) NOT NULL, /* name of the namespace to which it belongs */
    tableName VARCHAR2(128) , /* Name of the appdata table */
    adLevel NUMBER(38) NOT NULL /* Appdata table level: 0=>PROCESS, 1=>CONVERSATION */
    , CONSTRAINT OT_AW_APPDATA_TABLEINFO_PK PRIMARY KEY ( tableName )
    , CONSTRAINT OT_AW_APPDATA_TABLEINFO_UNQ UNIQUE( namespace, tableName, adLevel )
    /* OT_AW_PROCESS_APPDATADEF(Process level application data definition) Table */
    create table OT_AW_PROCESS_APPDATADEF (
    processDefId NUMBER NOT NULL /* Id for the process definition */
    , name VARCHAR2(65) NOT NULL /* Name of the application data field, This name may be pointing to a shared namespace field */
    , tableName VARCHAR2(128) /* Name of the table that holds the value for the field, may be same as local namespace table name */
    , namespace VARCHAR2(65) NOT NULL /* Name of the namespace to which this field belongs */
    , mappedNamespace VARCHAR2(65) null /* Name of the shared namespace to which this field is mapped, if there is any mapping */
    , CONSTRAINT OT_AW_PROCESS_APPDATADEF_PK PRIMARY KEY (namespace, processDefId, name)
    , CONSTRAINT OT_AW_PROCESS_APPDATADEF_FK FOREIGN KEY (processDefId) REFERENCES OT_AW_PROCESSDEF(processDefId) on delete cascade
    CREATE TABLE OT_AW_AD_OneLoop_1(processDefId number , processId number ,FromRole number null, ToRole number null, Anyone number null,
    CONSTRAINT OT_AW_AD_OneLoop_1_FK1 FOREIGN KEY (processDefId) REFERENCES OT_AW_PROCESSDEF(processDefId) )
    /* TRIGGERS */
    CREATE OR REPLACE TRIGGER OT_AW_PROCESS_APPDATADEF_DEL
    AFTER DELETE ON OT_AW_PROCESS_APPDATADEF
    FOR EACH ROW
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    tableName_var OT_AW_PROCESS_APPDATADEF.tableName%TYPE;
    tempStr_var varchar2(128) :=null;
    deletedId OT_AW_PROCESS_APPDATADEF.processDefId%TYPE;
    deletedMNsp OT_AW_PROCESS_APPDATADEF.mappedNamespace%TYPE;
    numReferences number :=-1;
    tableExists number :=0;
    CURSOR ADPTable_cursor
    IS
    SELECT apa.tableName, apa.processDefId, apa.mappedNamespace
    FROM OT_AW_PROCESS_APPDATADEF apa
    WHERE apa.tableName = :old.tableName
    AND apa.processDefId = :old.processDefId;
    BEGIN
    dbms_output.put_line('Starting TRIGGER OT_AW_PROCESS_APPDATADEF_DEL');
    OPEN ADPTable_cursor;
    LOOP
    FETCH ADPTable_cursor
    INTO tableName_var, deletedId, deletedMNsp;
    EXIT WHEN ADPTable_cursor%NOTFOUND;
    BEGIN
    IF (deletedMNsp IS NULL) THEN
    BEGIN
    select count(*) into numReferences from OT_AW_PROCESS_APPDATADEF where tableName = tableName_var
    and processDefId <> deletedId;
    IF ( numReferences = 0 ) THEN
    BEGIN
    SELECT count(*) INTO tableExists FROM OT_AW_APPDATA_TABLEINFO where
              tableName=tableName_var;
    IF (tableExists > 0) THEN
    BEGIN
    --dbms_output.put_line('About to alter first table');
    -- EXECUTE IMMEDIATE 'ALTER TABLE ' || tableName_var || ' DROP CONSTRAINT ' || tableName_var ||'_FK1';
    --dbms_output.put_line('About to alter second table');
    -- EXECUTE IMMEDIATE 'ALTER TABLE ' || tableName_var || ' DROP CONSTRAINT ' || tableName_var ||'_FK2';
    dbms_output.put_line('About to drop table named: ' || tableName_var);
    tempStr_var := 'DROP TABLE ' || tableName_var;
    EXECUTE IMMEDIATE tempStr_var;
    dbms_output.put_line(tempStr_var);
    dbms_output.put_line('Table dropped');
    --dbms_output.put_line('Not dropping table now');
    END;
    END IF;
    delete from OT_AW_APPDATA_TABLEINFO where
              tableName=tableName_var;
    dbms_output.put_line('OT_AW_APPDATA_TABLEINFO updated');           
    END;
    END IF;
    END;
    END IF;
    END;
    END LOOP;
    dbms_output.put_line('Loop ended');
    CLOSE ADPTable_cursor;
    dbms_output.put_line('Cursor closed');
    COMMIT WORK;
    dbms_output.put_line('Work committed');
    dbms_output.put_line('Ending TRIGGER OT_AW_PROCESS_APPDATADEF_DEL');
    END;
    show errors;
    /* Set up data to simulate the creation of OT_AW_AD_OneLoop_1 */
    insert into OT_AW_PROCESSDEF (
    processDefId, processDefName
    values (
    101, 'OneLoop'
    insert into OT_AW_PROCESS_APPDATADEF (
    processDefId, name, tableName, namespace
    values (
    101, 'FromRole', 'OT_AW_AD_OneLoop_1', 'OneLoop'
    insert into OT_AW_PROCESS_APPDATADEF (
    processDefId, name, tableName, namespace
    values (
    101, 'ToRole', 'OT_AW_AD_OneLoop_1', 'OneLoop'
    insert into OT_AW_APPDATA_TABLEINFO (
    namespace, tablename, adlevel
    values (
    'OneLoop', 'OT_AW_AD_OneLoop_1', 0
    /

  • ANT Deployment issue. works fine in one environment but fails in other

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna

    Hi KrishnaBhaskarla,
    I have something related to ant script, Can you please provide me the steps for deploying applications using ant script.
    Regards
    Kumar

  • Working windows install on ssd but fails to boot when old hdd is removed

    I bought a Samsung 840 ssd for my Thinkpad T510 to use as my primary hdd and an Ultrabay Sata adapter to mount an additional hdd. I clean installed Windows 7 64 bit on the ssd . Previously I was using 32 bit Windows but I because I also upgraded to 8 gb ram I needed to switch to 64 bit. I used the Windows USB DVD tool to create a bootable USB to install Windows from.
    Everything went fine. Because I have two hdds both running windows, when I boot the computer it prompts me to pick which Windows 7 to run. Both run fine. However, and this is the problem I need help with, when I remove the original hdd leaving only the Samsung ssd the computer won't boot - it says no valid operating system.
    I tried updating the BIOS but that didn't help.
    Any ideas?
    Thanks!!*
    *Update: I used EasyBCD to copy the boot file to the ssd. Now I am able to boot fine on the ssd with the old hdd removed. So it would seem as if not having the boot file on the ssd was the problem. Still, when I boot up, I'm prompted to pick between booting Windows 7 (new ssd) and Windows 7 (old hdd thats no longer connected). Obviously if I pick the latter it fails to boot. If I pick the former it works fine (problem solved!), but I'd like to be able to skip this prompt  when I turn on my comp. Any ideas?
    Also, I'm curious why the boot file wasn't on the ssd already once I installed windows 7 on that drive. Is it because the old hdd was still physically connected while windows was installing? If re-installing windows on the ssd without any other drives present would likely make all these problems go away I'm inclined to just do that, but does anyone know for a fact why this would be necessary?
    Thanks!!

    I have had similar issues in the past, but it was nothing to do with the T510. It is solely a windows issue. It is happening because , with both the drives installed the system can "see" the modified boot file. When you take out the ultrabay hard drive the system can no longer see the boot file, hence no valis operating system.
    For me to fix it in the past, was a bit of mucking around. First off see if you can download "vistaboot" pro v3.3. With that you should be able to copy the bootfile to the SSD. If you can't do that you'll probably have to use a Windows install disk, booting from the DVD drive, wait till it loads up, select keyboard info, and at the next screen choose "start up repair" .
    Sad to say, even that is not a guaranteed fix; it failed for me last Friday and I had to do a fresh install. If you don't have a Windows DVD, google for X17-59465 or GSP1RMCULXFRER_EN_DVD. They are the latest version of Windows 7 x64 Ultimate.You should find valid, and legal, download links at digitalriver, the official microsoft site and they most likely be posted somewhere on the mydigitallife forums.
    Have fun !!

  • Procedure compiles on Oracle 10g but fails to do so on Oracle 9i

    Hi,
    We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
    SQL> show err
    Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
    LINE/COL ERROR
    22/8 PL/SQL: SQL Statement ignored
    31/37 PL/SQL: ORA-00907: missing right parenthesis
    the 9i version
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    10g version
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE 10.1.0.2.0 Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    If any body knows the soln, please help
    Thanks in advance
    Gibs
    Procedure
    CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
    in_emp_id IN VARCHAR,
    in_start_date IN DATE,
    in_end_date IN DATE,
    non_complog OUT Types.ref_cursor
    IS
    BEGIN
    OPEN non_complog
    FOR
    SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
    vcname AS plan_name, start_date, nid AS nid
    FROM (SELECT *
    FROM ((SELECT employee_id, NAME
    FROM hrsample_bridge.ath_employee
    WHERE ( (in_emp_id IS NULL AND 1 = 1)
    OR (in_emp_id IS NOT NULL
    AND employee_id = in_emp_id
    )) CROSS JOIN (SELECT vcname
    FROM orahrsamplecore.athobjectinstance
    WHERE compliance_status = 1
    AND ( (in_start_date IS NULL
    OR (dtcompreissue
    BETWEEN in_start_date
    AND in_end_date
    )))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
    employee_id
    AND c.plan_name =
    vcname
    WHERE c.emp_id IS NULL
    AND ( ( (in_emp_id IS NULL)
    OR ( in_emp_id IS NOT NULL
    AND NOT EXISTS (
    SELECT 1
    FROM COMPTRACKLOG
    WHERE plan_name = vcname
    AND c.emp_id = in_emp_id )
    AND ( (in_start_date IS NULL)
    OR ( (in_start_date IS NOT NULL)
    AND c.end_date BETWEEN in_start_date AND in_end_date
    ORDER BY c.emp_id, c.plan_name ASC;
    END;
    /

    Hi,
    We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
    SQL> show err
    Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
    LINE/COL ERROR
    22/8 PL/SQL: SQL Statement ignored
    31/37 PL/SQL: ORA-00907: missing right parenthesis
    the 9i version
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    10g version
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE 10.1.0.2.0 Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    If any body knows the soln, please help
    Thanks in advance
    Gibs
    Procedure
    CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
    in_emp_id IN VARCHAR,
    in_start_date IN DATE,
    in_end_date IN DATE,
    non_complog OUT Types.ref_cursor
    IS
    BEGIN
    OPEN non_complog
    FOR
    SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
    vcname AS plan_name, start_date, nid AS nid
    FROM (SELECT *
    FROM ((SELECT employee_id, NAME
    FROM hrsample_bridge.ath_employee
    WHERE ( (in_emp_id IS NULL AND 1 = 1)
    OR (in_emp_id IS NOT NULL
    AND employee_id = in_emp_id
    )) CROSS JOIN (SELECT vcname
    FROM orahrsamplecore.athobjectinstance
    WHERE compliance_status = 1
    AND ( (in_start_date IS NULL
    OR (dtcompreissue
    BETWEEN in_start_date
    AND in_end_date
    )))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
    employee_id
    AND c.plan_name =
    vcname
    WHERE c.emp_id IS NULL
    AND ( ( (in_emp_id IS NULL)
    OR ( in_emp_id IS NOT NULL
    AND NOT EXISTS (
    SELECT 1
    FROM COMPTRACKLOG
    WHERE plan_name = vcname
    AND c.emp_id = in_emp_id )
    AND ( (in_start_date IS NULL)
    OR ( (in_start_date IS NOT NULL)
    AND c.end_date BETWEEN in_start_date AND in_end_date
    ORDER BY c.emp_id, c.plan_name ASC;
    END;
    /

  • MyPlugin works fine in AdobeReader-9 but fails in AdobeReader-X(10).

    Hi ,
    The plugin which i created using Acrobat SDK works fine in AdobeReader-9 but it doesnt works as expected in AdobeReader-X.
    The issues with Reader-X are listed below :
    1. MyPlugin doesn't get loaded at the top as the other tollbars , which i was able to load MyPlugin in Reader-9. In Reader-X , MyPlugin gets loaded at the right-side panel under 'Tools' Tab.
    2. In Reader-X, there is an option which we can select for 'Enable Protected-Mode'.
         a. If this is enabled i am able to see all the buttons of MyPlugin but when i clicked on each button it wont do its task instead i get error message saying          unable to create HelperObject. Why MyPlugin's buttons not performing its task when the Protected-Mode is Enabled?
         b.If i disable the Protected-Mode , i will see only first two buttons of MyPlugin(MyPlugin contains 4 buttons) and the when i click on those buttons it will be         able to do its task as expected. Why i am not able to see all the buttons of MyPlugin during Protected-Mode disabled ?
    Please let me know what i should do to make MyPlugin work in Reader-X. MyPlugin is working fine in Reader-9.
    Thanks in advance. Please someone help me out from this..

    Hi Richard,
    Sorry , i could not reply to your previous posts.
    In the below link they is a sample for making IE-Plugin work when IE-Protected mode is On.There is explaination on broker process.
    http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx .
    This below links may also be useful :
    http://msdn.microsoft.com/en-us/library/ms537312(v=vs.85).aspx
    http://www.codeproject.com/KB/vista-security/PMSurvivalGuide.aspx
    We may have to do the same way for our Reader Plugin, which i have also not implemented it till now,also did not get any sample for Reader Broker process.
    I did lot of search but i also didn find any.
    So what i am doing is,displaying a message box to user if the Reader Protected mode is enabled. And ask the user to Click on a button to disable Reader Protected mode. After restarting the PDF the user will be able to access MyPlugin without any error.
    As of now i am doing this, but i have to make MyPlugin to work even when the Protected Mode is enabled. For this i need to create the Broker Process.
    I know you have also spend lotz of your time to find a solution for this. But we are not getting the right ways to achieve a solution for this.
    If i get a solution for this i will definately inform you and if you get any solution please let me know.
    Thanks and Regards,
    Chetan.

  • Desname parameter works fine in Report builder but fails in Forms builder

    Hi,
    I need some help with my current task. Here is my problem.
    I am working on Oracle 10g. My reports and Forms builder version is 10.1.2.3.0.
    My objective is to use Forms builder to call a report which will direct the output directly to the printer without preview.
    First , in report builder , I use the Parameter Form builder and set Report parameter DESTYPE = PRINTER and the DESNAME automatically changes to PCL6 ( which is the network printer name I am using).
    When I run the report , the output is directed to the printer and it works just fine.
    But in Forms builder , when I call the same report, set the DESTYPE as Printer and DESNAME as 'PCL6' , it gives an error Invalid printer name 'PCL6' specified by parameter DESNAME.
    I tried searching in this forum, it says the error is due to an invalid printer name specified in the DESNAME. But if my printer name is invalid, I wonder how the same printer name works well in Report builder?
    My coding in Forms as below :
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESNAME,'PCL6');
    Appreciate if anyone can help. Thanks
    Regards
    Shiva

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

  • PDF pagination works find in Reader 8, but failed in lower version 7.

    Hi, All
    Here's my situation
    One dynamic PDF form:
    Contents in subforms are flowed layout. And for every section (e.g. Chapter 1, Chapter 2 etc) in pdf, create "New Page" to make sure that they start their contents in seperate new pages, not following the previous flowed content.
    The pagination for Flowed content in subforms works ok.
    But the pagination for "New Page" only works in Reader 8 and failed in lower version 7.
    Any clues?
    Thanks
    Alan Ji

    Adobe Reader 9 can't save the old FDA forms. FDA must update their forms.

  • Code working in 32 bit environment but fails in 64 bit environment

    Hi,
    I am trying to compile my code in 64 bit environment which was perfectly working fine in 32 bit environment. But the following message gets displayed.
    "Retrieving the COM class factory for component with CLSID {632F4591-AA62-4219-8FB6-22BCF5F62007} failed due to the following error: 80040154."
    I tried running the Sample programs in the 64 bit environment, The UI API Samples are working fine, but the samples of DI API give out the same message. I even tried re-installing the SAP Business One client thinking that it might be due to improper installation of DI API component in the client installation. But that too, did not work out.
    The code works fine in 32 bit environment with no issues. I am still clueless as to why it is not working in the 64 bit environment.
    Kindly help. Immediate help is appreciable.
    Thanks & Regards,
    Siju Dasan

    HI,
    See SAP NOte 1383536.
    It says, that DI API has been build in into the Application is using invalid path
    in32 bit clients:
    C:\Program Files\SAP\SAP Business One\DI API\2007\SAPbobsCOM2007.dll
    in 64 bit clients:
    ?C:\Program Files x86\SAP\SAP Business One\DI API\2007\SAPbobsCOM2007.dll ?
    Please recompile your application in 32 bit mode (x86 as a complier option) and try to run.
    Regards,
    J.

  • Work Process tries to restart but fails - Operating system call fork:restar

    Hi
      We have a ECC 5.0 system running on v5r4 (6.40 kernel level 159).  Some of the work processes fail and then try to restart and fail again. Thus there are many job log entries in both SAP and OS/400.
    The OS/400 logs mention the PASE (unix executable environment) and MCH3203.
    SAP mentions Operating system call fork:restart
    OSS has note #884359 which mentions a palitative but despite being at 6.40 level 159 the parameter profile as/4/wp_max_restart is said to be "unknown" by RZ10.
    We are making sure we are up to date with the APAR II14126 just in case this is the issue.
    It did start after the time change but we are not sure this is the root cause.
    We are also considering getting upto kernel 171.
    Anyone else seen this issue?
    thanks
    Matthew Milne

    We see those problems once a while, and usually they are gone when you restart the instance or after an IPL. You should report the problem to IBM, they will probably be interested in the LIC log entries that come along with the error (STRSST - Start a Service Tool - Licensed Internal Code Log). II14126 is probably a good start (for example, MF40759).
    The profile parameter as4/wp_max_restart is only known to the kernel, because it is not intended as a permament setting, but only as a temporary workaround for the problem in the PASE environment. That's why RZ11 does not know about the parameter and reports it as unknown.
    Kind regards,
    Christian Bartels.

  • Calling spclientcontext.executeQueryAsync works on the first call, but fails on the second call

    I have a webpart that I'm using to display a tree of folders and files from a SharePoint list. When a folder is clicked, some client side code is used to expand the contents of the folder (the code queries the SharePoint list for any child items of the folder).
    The code works the first time the folder is clicked. However, if I then click on a sub folder, the code fails. If I click on the sub folder a second time, the code succeeds. This pattern continues - every second time I call my function, it fails.
    E.g.
    First Click (clicked on Guides), which succeeds, and expands the Guides folder. Second Click (clicked on "In Progress") (fails)
    Third Click (clicked on In Progress) (succeeds)
    Any ideas why this might happen?
    My code looks like this:
    var _dweb;
    var _dlist;
    var _dwebId;
    var _dlistId;
    var _dfolderUrl;
    var _dchildContainerId;
    var _dactionContainerId;
    var _dlistItems;
    var _rtdocsJsInQuery = 0;
    function expandorcolapsefolder(webId, listId, folderUrl, parentElementId, childContainerId, actionContainerId) {
    var parentElement = $(("#" + parentElementId));
    var childElement = $(("#" + childContainerId));
    if (parentElement.attr("expanded") == "0") {
    parentElement.attr("expanded", "1");
    childElement.css("display", "block");
    } else {
    parentElement.attr("expanded", "0");
    childElement.css("display", "none");
    return;
    if (childElement.attr("dataretrieved") == "0") {
    GetData(webId, listId, folderUrl, childContainerId, actionContainerId);
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var context = new SP.ClientContext.get_current();
    _dweb = context.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    context.load(_dweb);
    context.load(_dlist);
    context.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    context.executeQueryAsync(QuerySuccessful,QueryFailed);
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    function QuerySuccessful(sender, args) {
    try {
    // Code omitted.
    } catch (error) {
    alert("Failed to process query results... " + error);
    _rtdocsJsInQuery = 0;
    window.setTimeout(HideActionContainer(_dactionContainerId), 500);
    function QueryFailed(sender, args) {
    alert('Failed to get list items. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
    _rtdocsJsInQuery = 0;
    HideActionContainer(_dactionContainerId);
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

    I fixed this problem by initialising the clientcontext object with a URL (rather than using the get_current property). This suits my needs, as the web that the page the webpart is on, won't always be in the same web as the list.
    I'm still unsure why  "var context = SP.ClientContext.get_current();" fails every second time?!
    Here's the snippet of code I changed, for others reference (namely "var ctx = new SP.ClientContext('/weburl');"):
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    return;
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var ctx = new SP.ClientContext('/eog');
    _dweb = ctx.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    ctx.load(_dweb);
    ctx.load(_dlist);
    ctx.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    ctx.executeQueryAsync(QuerySuccessful,QueryFailed);
    return true;
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    return false;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • MERGE..USING works fine on Oracle 11 but not on 9i

    MERGE into First_Table d
    USING
    select Second_Table.ENTY_DB_KEY_1, Second_Table.FILE_ID from Second_Table, Third_Table
    where Second_Table.run_id = Second_Table.run_id
    and Third_Table.clnt_id =51001372
    ) t
    ON (t.ENTY_DB_KEY_1 = d.TRAN_NO)
    WHEN matched THEN
    update set d.FILE_ID=t.FILE_ID
    The error comes on the bolded entries!
    I can confirm that all the DDLS are perfect. Even though the Inline table is returning FILE_ID it throws
    ORA-00905: missing keyword on the bolded entries. Can someone point out why this wont work in 9i?
    Edited by: user12047833 on Oct 7, 2011 7:48 AM

    user12047833 wrote:
    MERGE into First_Table d
    USING
    select Second_Table.ENTY_DB_KEY_1, Second_Table.FILE_ID from Second_Table, Third_Table
    where Second_Table.run_id = Second_Table.run_id
    and Third_Table.clnt_id =51001372
    ) t
    ON (t.ENTY_DB_KEY_1 = d.TRAN_NO)
    WHEN matched THEN
    update set d.FILE_ID=t.FILE_ID
    The error comes on the bolded entries!
    I can confirm that all the DDLS are perfect. Even though the Inline table is returning FILE_ID it throws
    ORA-00905: missing keyword on the bolded entries. Can someone point out why this wont work in 9i?
    Edited by: user12047833 on Oct 7, 2011 7:48 AMhttp://download.oracle.com/docs/cd/B14117_01/server.101/b10750/chapter1.htm#sthref614

  • Event receiver works perfectly in debug mode, but fails in release mode

    Here is my item added event which works perfectly and gives read permission to CCfield user in debug mode, but doesn't give permissions to CCfield user when item added event is triggered in release mode:
    base.ItemAdded(properties);
    try
    SPListItem item = properties.ListItem;
    string idnumber = Convert.ToString(properties.ListItem["ID"]);
    string itemurl = properties.ListItem.Url;
    SPWeb web = properties.Web;
    item.BreakRoleInheritance(false, false);
    //item.Update();
    string ccfield = Convert.ToString(properties.ListItem["EmailCc"]);
    string STRFirst = "&lt;" ;
    string STRLast = "&gt;";
    int Pos1 = ccfield.IndexOf(STRFirst) + STRFirst.Length;
    int Pos2 = ccfield.IndexOf(STRLast);
    string ccfield1 = ccfield.Substring(Pos1, Pos2 - Pos1);
    SPUser user = item.Web.EnsureUser(ccfield1);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(user);
    roleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["Read"]);
    item.RoleAssignments.Add(roleAssignment);
    catch (Exception e)
    throw;
    Any help?
    sk.Rakhishma

    Event receivers run using the permissions of the user who triggered the event. If your user does not have rights to manage permissions then you will need to run your security code with elevated permisisons.
    SPSecurity.RunWithElevatedPrivileges(delegate()
    { your code here } )
    Note that RunWithElevatedPermissions will not work with Sandbox code.
    Mike Smith TechTrainingNotes.blogspot.com
    my SP customization book

Maybe you are looking for