Error In EP_LOAD_MAIN ORA-20002: -20003 ORA-20003: Error in ANONYMOUS BLOCK line 6 executing ACTIVE_PROC_DYN('ep_check_items('A')') (Doc ID 2018817.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Demantra Demand Management - Version 12.2 and later
Information in this document applies to any platform.

Symptoms

PROBLEM
-------------
Customer has upgraded from 7.3.1.4 to 12.2.4.1 and are running the data load

Customer is running the Demantra procedure EP_LOAD _MAIN  which error out as follows

execute
ACTIVE_PROC_DYN('ep_check_items('A')')".

ORA-20002: -20003 ORA-20003: Error in ANONYMOUS BLOCK line 6
executing ACTIVE_PROC_DYN('ep_check_items('A')')
ORA-06512: at "DM.SEND_ERR_MESSAGE", line 21
ORA-06512: at "DM.ACTIVE_PROC_DYN", line 13
ORA-06512: at line 6

INSERT INTO dm.t_src_loc_tmpl_err
SELECT t_src_loc_tmpl.*,12 error_code_record,sysdate,'error' error_message_record
FROM dm.t_src_loc_tmpl
WHERE UPPER(ebs_sales_channel_code) IN
(SELECT UPPER(ebs_sales_channel_code)
FROM dm.t_src_loc_tmpl
GROUP BY ebs_sales_channel_code
HAVING COUNT(DISTINCT ebs_sales_channel_dest_key )>1);

If they manually run just the select statement from above statement it works fine:

SELECT t_src_loc_tmpl.*,12 error_code_record,sysdate,'error' error_message_record
FROM dm.t_src_loc_tmpl
WHERE UPPER(ebs_sales_channel_code) IN
(SELECT UPPER(ebs_sales_channel_code)
FROM dm.t_src_loc_tmpl
GROUP BY ebs_sales_channel_code
HAVING COUNT(DISTINCT ebs_sales_channel_dest_key )>1);

It is with a insert that they hit the issue



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms