Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

owa_cookie.get throws ORA-06502: PL/SQL: numeric or value error

GregKMar 30 2009 — edited Mar 31 2009
Hi

My problem is as follows :

I've created a PL/SQL Page Process called 'FETCH_COOKIE' with
Process Point : On-Load Before Header
Run Process : Once Per Page

The Source Process is :
DECLARE
myCookie OWA_COOKIE.COOKIE;
BEGIN
myCookie := OWA_COOKIE.GET('TWU_COOKIE_TRAQDEV');

:P1_X := myCookie.vals(1);

EXCEPTION WHEN OTHERS THEN
:P1_X := SQLERRM;
END;

Every time the page is run, I get a ORA-06502: PL/SQL: numeric or value error (in the page text item :P1_X). It does not matter what I do, I always seem to end up with this error. The Javascript API function GetCookie is able to get the cookie, so why can't OWA_COOKIE.

Can someone please shed some light on this for me? What am I doing wrong here?

Kind Regards
Greg
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2009
Added on Mar 30 2009
5 comments
1,081 views