MX Yearend Process Errors With APP-PAY-06881: Error ORA-20001: Error at step 7 IN pay_mx_yrend_arch.archive_code (Doc ID 1305578.1)

Last updated on JANUARY 22, 2016

Applies to:

Oracle HRMS (Mexico) - Version 12.1 HRMS RUP4 and later
Information in this document applies to any platform.
MX_YREND_ARCH module: Year End Archiver

***Checked for relevance on 24-FEB-2013***


Symptoms

On : 12.1.3 version, Payroll Year End

When attempting to run the Yearend Archiver after correcting the Tax Registration Legal Contact
the following error occurs.

ERROR
-----------------------
Setting error text
declare
begin
pay_archive.process_employee(:asg_action);
end;

passing asg action = 26147536
for assignment id = 81
Oracle error occurred
Table=pay_archive.process_employee
sqlno=1108
ORA-20001: Error at step 7 IN pay_mx_yrend_arch.archive_code
ORA-06512: at "APPS.PAY_ARCHIVE", line 1207
ORA-06512: at line 3

assignment action rowid = AAAMTNAArAAAeLRAAA
max errors allowed = 20
errors encountered = 1
HR_6881_HRPROC_ORA_ERR
SQLERRMC ORA-20001: Error at step 7 IN pay_mx_yrend_arch.archive_code
ORA-06512: at "APPS.PAY_ARCHIVE", line 1207
ORA-06512: at line 3

SQL_NO 1108
TABLE_NAME pay_archive.process_employee
APP-PAY-06881: Error ORA-20001: Error at step 7 IN pay_mx_yrend_arch.archive_code
ORA-06512: at "APPS.PAY_ARCHIVE", line 1207
ORA-06512: at line 3
has occurred in table pay_archive.process_employee at location 1108

Cause: an oracle error has occurred. The failure was reported on table pay_archive.process_employee at location 1108 with the error text ORA-20001: Error at step 7 IN pay_mx_yrend_arch.archive_code
ORA-06512: at "APPS.PAY_ARCHIVE", line 1207
ORA-06512: at line 3
.
PYUPIP shows

pay_mx_yrend_arch.archive_code 115
Entering pay_mx_yrend_arch.gre_exists
p_gre_id = 121
GRE exists
Leaving pay_mx_yrend_arch.gre_exists
Entering pay_mx_utility.get_days_in_year
Entering pay_mx_utility.get_days_month_year
Entering pay_mx_utility.get_no_of_days_for_org
Leaving pay_mx_utility.get_no_of_days_for_org
Leaving pay_mx_utility.get_days_month_year
Leaving pay_mx_utility.get_days_in_year
ld_adj_svc_date =
ld_seniority_from = 02-JAN-06
ln_seniority_years = 4
Entering get_tax_subsidy_percent
Entering hr_mx_utility.get_legal_employer-2
Leaving hr_mx_utility.get_legal_employer-2
Entering get_tbl_val_local
Entering get_organization_name
Leaving get_organization_name
Getting Tax Subsidy Percent for COACALCO
Exception in get_organization_name
Leaving get_tax_subsidy_percent
Error at step 7 IN pay_mx_yrend_arch.archive_code-ORA-20001: Unable to determine the Tax Subsidy percentage.
Please contact your system administrator.
pay_core_utils.pop_message 10
pay_assignment_actions_bru

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Run Year End Archiver

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