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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APEX_PLSQL_JOB.SUBMIT_PROCESS' must be declared

Mohammed Rahim4 days ago

Hi,

I have upgraded Oracle APEX from 4.0 to 22.2 and when I run the application I am getting the error as show below

But the same application works fine in 4.2 version but not in 22.2

Below is the code

DECLARE
l_Sql VARCHAR2(400);
l_Job NUMBER;
BEGIN
IF NVL( :P1_OTHER_FILE_FLAG, 'N' ) = 'Y'
THEN
--
NULL ;
--
ELSE
--
l_Sql := 'BEGIN XXCUST.XXEMP_IFACE_PROCESS.RUN_PROCESS'
||'( ProcessName => ''INITIAL_LOAD'' '
||', FileID => &P1_FILEID. ); END;' ;
:P1_ERROR_MSG := l_Sql;
l_Job := APEX_PLSQL_JOB.SUBMIT_PROCESS( p_sql => l_Sql, p_status => 'Background process submitted' );
--
END IF;

EXCEPTION

WHEN OTHERS
THEN

:P1_ERROR_MSG := 'Failed to run process: '||SQLERRM ;
--
XXCUST.XXEMP_APEX_UTILS.Error_Redirect
( p_CUSTOM_MSG => :P1_ERROR_MSG
, p_GOTO_PAGE => v ('APP_PAGE_ID') ) ;
--
END;

Kindly please provide your support as I am struggling

Thanks

Comments

Processing

Post Details

Added 4 days ago
4 comments
45 views