Dynamic Pages Error Took exception (WWV-01801)

I have a dynamic page which I can save (and it runs fine). When I try to edit it, I get the error:
Took exception (WWV-01801)
This isn't very descriptive. Where can I start looking?

It appears to be a bug in Portal.
If I shrink down the size of my PL/SQL segment in the dynamic page, all is fine.
This ultimately limits the size of PL/SQL blocks in a dynamic page. It would be nice if Portal should warn you about this.

Similar Messages

  • Took exception (WWV-01801)

    Can someone explain to me what the following error message means (and how to resolve it):
    Took exception (WWV-01801)
    I get this error message when I attempt to edit a dynamic page. It only happens on one particular page that I am editing.
    Any help would be greatly appreciated....

    Yes, I too have encountered this.
    Currently it is not accepting very long html code. I got it with around 26KB.

  • WWV-06900 and WWV-01801 Portal errors on 9i

    Anyone having grief with these errors: 'Unable to show menus in level 1 (WWV-06900)' and 'Took exception (WWV-01801)' while accessing some of the application components in Portal should beware of changing the 'SYS' password on the database after installation. I had to reenable the O7_DICTIONARY_ACCESSIBILITY=TRUE flag in the initSID.ora and also recompile all the invalid objects in the 'PORTAL30' schema to get things going again for a client. Seems to be a bug that should supposedly be fixed by RDBMS v9.

    Hello everybody. Excuse me,please.
    I found this errors too. Then I logined to oracle database follow this steps
    sqlplus portal30/portal30@oracle
    SQL>select object_name , object_type ,status
    from user_objects
    where status = 'INVALID';
    OBJECT_NAME OBJECT_TYPE STATUS
    WWSBR_CORNER_CTX_INDX INDEX INVALID
    WWSBR_DOC_CTX_INDX INDEX INVALID
    WWSBR_PERSP_CTX_INDX INDEX INVALID
    WWSBR_THING_CTX_INDX INDEX INVALID
    WWSBR_TOPIC_CTX_INDX INDEX INVALID
    WWSBR_URL_CTX_INDX INDEX INVALID
    WWUTL_API_APPTRANSPORT PACKAGE BODY INVALID
    WWUTL_EXPORTIMPORT_TOOLS PACKAGE BODY INVALID
    WWV_UTLBUILD PACKAGE BODY INVALID
    9 rows selected.
    I use Oracle Internet Application Server 1.0.2.1 (portal 3.0.9) for Windows 2000 and Oracle9i Database for Windows 2000.
    Before days ago I could create portal applications and it's fine but today it had errors "Error: Unable to show menus in
    level 1 (WWV-06900)" and " Took exception (WWV-01801)" . First I thinked somes stored packages in database not fine ,
    then I queried 'object_name' and had results above. Next I upgrade portal 3.0.9 --> 3.0.9.8.2 because I hope
    somes packages in portal 3.0.9.8.2 script will replaced to invalid packages but it's not. After I upgrade to portal
    3.0.9.8.2 I still found errors "Error: Unable to show menus in
    level 1 (WWV-06900)" and " Took exception (WWV-01801)" . Please help me.
    Chugraphong Chaiyawong
    Computer Center ,Khon Kaen University,Thailand.
    Tel.+66.43.348601 ext 126

  • Error when run a dynamic page

    I am using portal 10g. I have a simple test dynamic page to output the page_url:
    <oracle>
    Declare
    myPortlet_rec portal.wwpro_api_provider.portlet_runtime_record;
    myUrl varchar2(32767);
    Begin
    portal.wwpro_api_provider.show_portlet(myPortlet_rec);
    myUrl :=myPortlet_rec.page_url;
    htp.p(myUrl);
    End;
    </oracle>
    It compiles successfuly in portal, but when I click 'run as portlet' link, I got this error:
    Error: Internal error (WWC-00006)
    User-Defined Exception (WWV-11230)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    If I click 'Run', I got 'HTTP 404 not found' page.
    Can anyone tell me what is wrong here? Thanks!

    Thanks for the reply, I will try to clarify things a bit. If I attempt to create a LOV (Shared Component), I get the first error. If I type in the LOV query directly into my field definition's LOV (as opposed to using a Named LOV), I get the report error when I run the page. The 'F_FORMAT_NAME' is a database function NOT in the ASMGR schema, but it has a public synonym...looking at the grants to it, that might be a problem (ASMGR doesn't have execute on it, nor does public), however, when I first started attempting this LOV creation, the call to the function wasn't there.... I will have to re-try it. In the meantime, I got around the problem rather inelegantly by creating a view in the ASMGR schema that pointed to the fields I needed for the LOV.

  • Error creating dynamic page in an application with a schema other than portal30

    Running 9iAS 1.0.2.2 on Solaris.
    Database 8.1.7.1
    I cannot seem to create a default dynamic page (select 'x' from dual) in an application that has a schema (e.g. test) other
    than portal30. The error seems to be when portal tries to compile the dynamic-page package, it references itself from
    within the package but prefixing the call with the other (test) schema. It never seems to compile? What seems to be the
    problem? Any ideas?

    If you are using any database object other than the applcation owned,then it has to be prefixed with the schema owner.
    For example,
    if the application schema is based on the schema "schema1" (say)
    and your query is based on one of the object on "schema2"
    and if you have necessary privilegves to access that object from schema2, then the compiler wont throw any error.
    Can u explain, what u problem you are experiencing in detail?
    (Also, if u give me the portal version, I can cross-verify that).

  • Page Fault Processor Exception (Error code 00000004) GWIA

    About every 24 - 36 hours GWIA aneds and unload GWIA from its address
    space
    Running 8.01 (with patches) on NW65 sp8 (with patches)
    Novell Open Enterprise Server, NetWare 6.5
    PVER: 6.50.08
    Address space GWIA removed Monday, April 12, 2010 11:53:27.355 am
    Abend 0 on P00: Server-5.70.08: Page Fault Processor Exception (Error
    code 00000004)
    Registers:
    CS = 001B DS = 0023 ES = 0023 FS = 0023 GS = 0023 SS = 0023
    EAX = 00000000 EBX = CA56C50C ECX = CA56C50C EDX = CA5CA998
    ESI = CA5CA998 EDI = CA56C1EC EBP = CA56C4C8 ESP = CA56BBF8
    EIP = F530E65E FLAGS = 00010246
    F530E65E 66AD LODSW
    EIP in LIBC.NLM at code start +0009465Eh
    Access Location: 0xCA5CA998
    The violation occurred while processing the following instruction:
    F530E65E 66AD LODSW
    F530E660 84C0 TEST AL, AL
    F530E662 7503 JNZ F530E667
    F530E664 AA STOSB
    F530E665 EB06 JMP F530E66D
    F530E667 66AB STOSW
    F530E669 84E4 TEST AH, AH
    F530E66B 75F1 JNZ F530E65E
    F530E66D 8B44240C MOV EAX, [ESP+0C]
    F530E671 5E POP ESI
    Running process: Server 00:35 Process
    Thread Owned by NLM: SERVER.NLM
    Stack pointer: CA56BBF8
    User Space Stack limit: 0
    Scheduling priority: 67371008
    Wait state: 50500F0 Waiting for work
    Stack: --CA2F5820 ?
    --C0E5BC80 ?
    F44B6290 (GWIA.NLM|ImapEngineCallback+9BC)
    --CA56C1EC ?
    --CA5CA998 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --CA5CA8B0 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --C8FE5EC0 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --CA56C50C ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --C1D45DC0 ?
    --C9BF50C0 ?
    --C9BF50C0 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    Additional Information:
    The CPU encountered a problem executing code in LIBC.NLM. The
    problem may be in that module or in data passed to that module by a
    process owned by SERVER.NLM.

    that's all that's in the ABEND log .... for each of the times that the
    GWIA unlaods
    The system doesn't actually abend - it just unloads the GWIA from the
    protected memeory space
    ataubman wrote:
    >
    > You haven't given us the modules list so we can't see what versions
    > you have. This problem should be fixed in GW 8 SP1 HP1.

  • Page Fault Processor Exception (Error code 00000002)

    We have begun to experieince the following abend on our Netware 6.5 server running GroupWise 8.
    Novell Open Enterprise Server, NetWare 6.5
    PVER: 6.50.08
    Server halted Wednesday, December 8, 2010 8:08:15.459 am
    Abend 1 on P02: Server-5.70.08: Page Fault Processor Exception (Error code 00000002)
    Registers:
    CS = 0008 DS = 0023 ES = 0023 FS = 0023 GS = 0023 SS = 0010
    EAX = 78DBF1DC EBX = 6D86C060 ECX = 00446A97 EDX = FCAEF520
    ESI = 6FF57EE0 EDI = 7B4AB000 EBP = A067C9A0 ESP = A197F668
    EIP = 8038B5D8 FLAGS = 00010202
    8038B5D8 F2A5 **REPNE* MOVSD
    EIP in LIBC.NLM at code start +000945D8h
    Access Location: 0x7B4AB000
    The violation occurred while processing the following instruction:
    8038B5D8 F2A5 **REPNE* MOVSD
    8038B5DA 2403 AND AL, 03
    8038B5DC 8AC8 MOV CL, AL
    8038B5DE F2A4 **REPNE* MOVSB
    8038B5E0 8B44240C MOV EAX, [ESP+0C]
    8038B5E4 5E POP ESI
    8038B5E5 5F POP EDI
    8038B5E6 C3 RET
    LIBC.NLM|memcmp:
    8038B5E7 57 PUSH EDI
    8038B5E8 56 PUSH ESI
    Running process: GWIMAP-BCC_-Handler_2 Process
    Thread Owned by NLM: GWPOA.NLM
    Stack pointer: A197F418
    OS Stack limit: A19711C0
    Scheduling priority: 67371008
    Wait state: 3030070 Yielded CPU
    Stack: --038068DC ?
    --78DBF180 ?
    90246CD4 (THREADS.NLM|realloc+B8)
    --78DBF180 ?
    --6D86C060 ?
    --038068DC ?
    --03806900 ?
    --00000001 (LOADER.NLM|KernelAddressSpace+1)
    --038068DC ?
    --A197F6A8 ?
    --00000100 (LOADER.NLM|KernelAddressSpace+100)
    --475BE354 ?
    A046BF23 (GWENN5.NLM|GWENN5@_WpmemRealloc+13)
    --6D86C060 ?
    --03806900 ?
    --475BE340 ?
    --A197F6C4 ?
    A045F6BA (GWENN5.NLM|GWENN5@?GetHandle%NgwBufIStream%%QAEKP APAX%Z+2BA)
    --03806900 ?
    --475BE354 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    -9AD5EF0C (GWENN5.NLM|GWENN5@??_7NgwBufIStream%%6B%+8)
    --4C60D600 ?
    --A197F6F4 ?
    9FC3E61B ?
    --4E457B00 ?
    --00001FFC (LOADER.NLM|KernelAddressSpace+1FFC)
    --A197F6DC ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00001FFC (LOADER.NLM|KernelAddressSpace+1FFC)
    9FBBAD00 ?
    --44DC2080 ?
    --4C60D600 ?
    --44DC2080 ?
    --A197F980 ?
    --A197F704 ?
    9FC3E425 ?
    --475BE340 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --A197F71C ?
    9FC2EBAD ?
    --475BE340 ?
    -9F31FACD ?
    -9F31F957 ?
    --A197F980 ?
    --A197F73C ?
    9FBBA181 ?
    --44DC2500 ?
    --00000002 (LOADER.NLM|KernelAddressSpace+2)
    --0006F734 ?
    --44DC2500 ?
    -9F31F957 ?
    --A197F980 ?
    --A197F750 ?
    9FBBB830 ?
    --44DC2500 ?
    --A197F980 ?
    -9F31F957 ?
    --A197F764 ?
    9FBBA640 ?
    --44DC2500 ?
    -9F31F957 ?
    --A197F980 ?
    --A197F78C ?
    9FBBA5B5 ?
    --44DC2500 ?
    --A197F78C ?
    --B18F2280 ?
    --B18F2320 ?
    --439CE400 ?
    -9F31FAF9 ?
    -9F31F957 ?
    --A197F980 ?
    --A197F7AC ?
    9FBBA143 ?
    --44DC2400 ?
    --A197F980 ?
    --0008EBC0 ?
    --44DC2840 ?
    -9F31F957 ?
    --A197F980 ?
    --A197F7C4 ?
    9FBBA6EE ?
    --475BEBC0 ?
    --4B23E4C0 ?
    --A197F980 ?
    -9F31F957 ?
    --A197F7D8 ?
    9FBBA024 ?
    --475BEBC0 ?
    -9F31F957 ?
    --4B8595AE ?
    --A197F9DC ?
    9FB85D78 ?
    --44DC2300 ?
    --00000067 (LOADER.NLM|KernelAddressSpace+67)
    --B18F2F60 ?
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --00000000 (LOADER.NLM|KernelAddressSpace+0)
    --4B859F60 ?
    Additional Information:
    The CPU encountered a problem executing code in LIBC.NLM. The problem may be in that module or in data passed to that module by a process owned by GWPOA.NLM.
    Emulated 5000 and found no RET instruction
    Function may never return.
    We are running GW 8 SP 1 on a Netware 6.5 SP 8 OS. I truncated due to character limit.
    Any help would be greatly appreciated.

    Originally Posted by utman
    My guess is that it is a problem in the GWIN code. Is SP 1 the latest? Usually when the code dies in libc it isn't really libc but the function that called libc.
    We just downloaded SP 2 (fairly new support pack) and some subsequent Hotfixes for SP 2. We will be loading those tonight.
    Thanks for your response.

  • 'Unallowed tags or dynamic code' error on a page without these...

    Hi,
    I've been using InContext Editing for a few sites now and my clients have been very happy with it, but I have a new site that's having problems on just one page.
    http://www.windhampilates.com/index.php
    I've enabled ICE on the text areas below the main photo and nav bar, as I have on other pages. There are a few scripts running on this page, but the only difference on this page from the rest of the site is the rotating image at the top of the page.
    Ironically, I've used this same script on previous sites where I've used ICE and they've worked without any problems. Am I missing something?
    Really and truly appreciate  your help!
    - MaryAnn

    I can login, and try to edit, but the system won't save my changes and gives me the 'unallowed tags or dynamic code' error as the reason why it can't save the changes.
    I tried removing the jquery in the header, but that didn't seem to work:
    http://www.windhampilates.com/index-testjqueryerror.php
    I still can't get the edits to save and it's still giving me the same message.
    The only other non-static elements on the page are the newsletter subscription script and the Facebook link, but I have these on other pages and we can edit those pages without issue.
    Any other ideas?
    Thanks for your help!

  • Dynamic Pages & Parameters - 404 Not Found Error

    I have the following dynamic page:
    declare
    M_subject varchar2(2000):= :message_subject;
    begin
    htp.print(''||M_subject||'');
    htp.print('This is a Test - Passing a parameter to a Dynamic Page');
    htp.p('Value: ' || M_subject);
    end;
    I also have another dynamic page that calls the above page and passes a parameter to it. And it works,..that is, the parameter gets passed to the page above, is assigned to M_subject and correctly prints on the screen.
    The problem is that i want to do more then just simply print the variable, in particular, i'd like to use it in a sql query.
    But when i add the following code into the above page
    thebody varchar(2000);
    select subject into thebody from MyTable where subject = M_subject;
    htp.print(''||thebody||'');
    it won't work. It compiles correctly but when i run the first dynamic page and call this 2nd page, i get a 404 Not Found error. Very strange because the page is definitely there.
    So is there anything obvisous that i'm not doing correctly? Is my query not structured properly? Why can't i use this variable for something useful instead of just simply printing it on the screen?
    Any comments, suggestions, fixes or ideas would be greatly appreciated.
    thanks
    chris

    Put debug on on the application server for the dad you're using.
    The error you are encountering will appear instead of the 404 not found error.
    How:
    in the home of your application server update the file
    $ashome/Apache/modplsql:/conf/dads.conf
    put ' PlsqlErrorStyle DebugStyle' in the dad you're using.
    restart the application server, retry your dynamic page and the sql error will appear.

  • Utl_file in a dynamic page?

    I am trying to create a dynamic text file
    that will download to the client machine.
    I have entered the code below in the sql worksheet and it runs and creates the file fine.
    When I put the code in to a dynamic page I get the following error:
    ORA-06510: PL/SQL: unhandled user-defined exception
    Any ideas?
    Thanks for the help in advance.
    Code below
    DECLARE
    l_file_handle SYS.UTL_FILE.FILE_TYPE;
    BEGIN
    l_file_handle := SYS.UTL_FILE.FOPEN(LOCATION => '/webserver/export', FILENAME => 'jim.txt', OPEN_MODE => 'a');
    SYS.UTL_FILE.PUT_LINE(l_file_handle, 'First Line Writing to a Flat File ');
    SYS.UTL_FILE.FCLOSE(l_file_handle);
    END;
    null

    I have the oracle tags.
    I found out that the code works.
    I had to get the page to refresh before it took the new code.

  • Dynamic Page with Multiple Checkboxes

    I am trying to get a dynamic page to pass the checked value of multiple checkboxes to the submit proceedure. Can anyone tell me what I am doing wrong?
    Thanks in advance,
    Pam -------------------------------------------------------------------------
    Dynamic Page:
    <HTML>
    <FORM action="scott.brsubmit" method="POST">
    <TABLE border CELLPADDING=0 CELLSPACING=0>
    <ORACLE>begin
    for c1 in (SELECT rowid,ename, job, bonus from scott.bonus_approval where approved is null)
    loop
    htp.p('<tr><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.ename);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.job);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.bonus);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="hidden" name="p_ename" value='||c1.ename||'>');
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="checkbox" name="p_cb2" value="N">');
    htp.p('</td></tr>');
    htp.p('<br>');
    htp.p('
    end loop;
    HTP.P('</table>');
    htp.p('<p>');
    htp.p('<input type=submit value="Save" name="p_action" >');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    Procedure:
    (p_ename in portal.wwv_utl_api_types.vc_arr, p_cb in portal.wwv_utl_api_types.vc_arr, p_cb2 in portal.wwv_utl_api_types.vc_arr, p_action varchar2)
    as
    begin
    if p_action = 'Save' then
    for i in 1..p_ename.count loop
    if (p_cb(i) = 'Y') then
    update scott.bonus_approval set approved = p_cb(i) where ename = p_ename(i);
    COMMIT;
    else
    if (p_cb2(i) = 'N') then
    update scott.bonus_approval set approved = p_cb2(i) where ename = p_ename(i);
    COMMIT;
    END IF;
    end if;
    end loop;
    end if;
    htp.print('<script language="JavaScript">');
    htp.print('function display() {
    var msg = "\nRecord Saved Successfully\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display()');
    htp.print('</script>');
    exception
    when others then
    htp.print('<script language="JavaScript">');
    htp.print('function display2() {
    var msg = "\nRecord Not Saved.\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display2()');
    htp.p('Not saved');
    htp.print('</script>');
    end;

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • ORACLE Tags in Dynamic Pages

    In the beta version, a Dynamic Page could be developed that did not contain the Oracle tags, <ORACLE> and </ORACLE>. The production version appears to require the use of these tags.
    I've tried to work around this by using <ORACLE> select ' ' from dual</ORACLE> which gave me a blank, but with a different color background and <ORACLE>htp.br;</ORACLE> which Oracle Portal would not accept.
    Any suggestions on how to create a Dynamic Page where the Oracle tags do not impact the display of the page?
    Fran Bailey
    EDS - Meredith Account

    I am running 3.0.6.6.5 on Solaris 2.6.
    I entered your work around (<ORACLE>begin null; end;</ORACLE>) and got this error message when I tried to save the HTML code:
    ORA-06550: line 1, column 15:
    PLS-00103: Encountered the symbol
    "end-of-file" when expecting one of the following:
    ; <an identifier> <a double-quoted
    delimited-identifier>
    The symbol ";" was substituted for "end-of-file" to continue. (WWV-11230)
    Failed to parse as MAH - BEGIN NULL;
    END (WWV-08300)
    Any other suggestions would be appreciated.

  • CASE statement in a dynamic page

    I have written a query using a CASE statement in the select portion to evaluate column values and produce a text string. The query runs fine in sql*plus, but when I attempt to add the code to a dynamic page and compile it, I get the following error message:
    ORA-06550: line 1, column 720:
    PLS-00103: Encountered the symbol "CASE" when expecting one of the following:
    ( - + mod null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table avg count current max min prior sql stddev sum variance
    execute the forall time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502:
    PL/SQL: numeric or value error: character string buffer too small (WWV-)
    I am running oracle 8.1.7.1.0 using Portal 3.0.9.8.1
    I have written a function as a workaround, but would like to know why portal does not seem to like the "CASE" statement.
    Any suggestions would be greatly appreciated.

    Hi Chetan,
    I still get an error message even when I attempt to create a small dynamic page with your cursor. The error message is posted below. I am definitely putting the cursor declaration between <ORACLE></ORACLE> tags. Any Ideas?
    Thanks,
    Dan
    ORA-06550: line 1, column 215:
    PLS-00103: Encountered the symbol "CASE" when expecting one of the following:
    ( - + mod null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table avg count current max min prior sql stddev sum variance
    execute the forall time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> (WWV-11230)
    Failed to parse as PORTAL30 - DECLARE CURSOR SPN_INMATE_INFO(V_SPN IN VARCHAR2) IS SELECT DISTINCT B.ENAME, B.ENAME||' '||B.ENAME F_NAME, B.DEPTNO, B.SAL, B.HIREDATE, B.SAL, B.EMPNO, B.HIREDATE, B.COMM, B.ENAME, CASE WHEN B.HIREDATE IS NULL THEN 'NO' WHEN B.HIREDATE IS NOT NULL AND B.SAL IS NOT NULL THEN 'NO' WHEN B.SAL IS NOT NULL AND B.HIREDATE IS NULL THEN 'YES' END RELEASED, C.DNAME, C.LOC, C.DEPTNO FROM SCOTT.EMP B, SCOTT.DEPT C WHERE C.DNAME NOT IN ('5397','6497','6498','6499','5011','42-9-44') AND C.LOC NOT IN ('M','F') AND B.ENAME != '00188547' AND B.DEPTNO = C.DEPTNO ORDER BY B.HIREDATE; BEGIN NULL; END; (WWV-08300)

  • Form in Dynamic page not working when checkbox is used.

    I have created a form using dynamic page. The form most have display fields and a checkbox field. When I check a box, it assigns 'Y' value and when unclick, it assign 'N' to the database field.
    When I submit the form, the procedure which is supposed to save the form data never gets executed. Well, at least it says, page not found HTTP 404 error.
    Interestingly if I make this field a text box and manually enter 'Y' or 'N', and then submit the form, the procedure is executed. Data gets saved.
    Is the checkbox not supposed to be used for a database field because checkbox value can be assigned only using javascript and the procedure never get that value ?
    Can you please tell me how to use a checkbox for a database field using dynamic page ?
    thanks,
    Mainak

    Sharmila,
    When I said, the form does not get submitted, I meant that the procedure does not work. The form gets submitted but the procedure does not work. It gives HTTP 404 error. That is what perplexes me. I am unable to understand why the procedure does not work when I click a checkbox.
    May be you can make this work. I am hopeless about this.
    Here is the code for the procedure sumbit_form:
    NOTE: I ADDED TWO FIELDS CALLED PROMOT VARCHAR2(1), PROMOTID NUMBER(4) TO THE EMP TABLE AND CREATED A NEW TABLE CALLED PROMOTEMP. THIS IS A TEST CASE.
    create or replace procedure sumbit_form
    (p_empno IN portal30.wwv_utl_api_types.vc_arr, p_promot IN portal30.wwv_utl_api_types.vc_arr, p_action IN VARCHAR2)
    is
    begin
    if p_action = 'save' then
    for i in 1..p_empno.count LOOP
    update scott.promotemp
    set promot = p_promot(i)
    where empno = p_empno(i);
    END LOOP;
    end if;
    commit;
    htp.p('<b>Saved Successfully</b>');
    htp.p('<table border=1 bordercolor="red">');
    for c1 in (select * from promotemp where promot='Y')
    LOOP
    htp.p('<tr><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.sal);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    EXCEPTION
    when others then
    raise;
    end;
    Here is the code for the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Promot Emp</TITLE>
    <script language="JavaScript1.1">
    function include(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements.type == 'checkbox') {
              if (thisform.elements[i].checked) {
                   thisform.elements[i].value = 'Y'; }
              else { thisform.elements[i].value = 'N'; }
    form.submit();
    function show(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements[i].type == 'checkbox') {
              if (thisform.elements[i].value = 'Y') {
                   thisform.elements[i].checked = true; }
              else { thisform.elements[i].checked = false; }
    </script>
    </HEAD>
    <BODY>
    <FORM action="scott.sumbit_form" method="post">
    <table border=1 bordercolor="red">
    <tr>
    <td> </td>
    <td>Name</td>
    <td>Job</td>
    <td>Manager</td>
    <td>Hire Date</td>
    <td>Commission</td>
    <td>Department#</td>
    <td>Include</td>
    </tr>
    <ORACLE>declare
    i number;
    begin
    i := 0;
    for c1 in (select * from scott.promotemp where promotid = :promotid)
    loop
    htp.p('<tr><td>');
    htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
    htp.p('</td><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.hiredate);
    htp.p('</td><td>');
    htp.p(c1.comm);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td><td>');
    if (c1.promot = 'Y') then
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">Yes
    <OPTION VALUE="N">No
    </SELECT>');
    else
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">No
    <OPTION VALUE="Y">Yes
    </SELECT>');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('<input type="submit" value="save" name="p_action">');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    thanks,
    Mainak

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

Maybe you are looking for