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!

ORA-06502: PL/SQL numeric or value error when submitting PROCESS (APEX 19.2)

McRiversNov 13 2020 — edited Nov 24 2020

I am trying to process a form with the following setup:
An UPDATE button has been created and added to UPLOAD_FORM form
Action: Submit Page
Execute Validations: Off
Database Action: SQL UPDATE action

A PROCESS_UPLOAD_FOR_U process was created and calls a package procedure, in the database, that will handle the validations & process the form (see file attached below)
PL/SQL Code: PACKAGE.PROCESS_FORM(p_request_type => :REQUEST, ...etc);
Point: Processing
When Button Pressed: UPDATE
Execution Scope: For Created and Modified Rows
I am getting an ORA-06502: PL/SQL numeric or value error when clicking the UPDATE button that runs the PROCESS_UPLOAD_FORM. I was hoping that using the APEX_ERROR API would add the failed validations from the package procedure to the error stack and they would display inline on the form.
For those wondering why I'm doing it this way - My reason is to keep the business logic (validations & processing) outside of APEX. I'm trying to use APEX as the presentation & behavior (DA) layer only.
process_form.txt (4.65 KB)Thanks in advance,
Mike

This post has been answered by InoL on Nov 20 2020
Jump to Answer
Comments
Post Details
Added on Nov 13 2020
13 comments
5,403 views