Req Entry Event Unique Constraint Error (Doc ID 1671901.1)

Last updated on JANUARY 13, 2017

Applies to:

PeopleSoft Enterprise SCM Purchasing - Version 9.1 and later
PeopleSoft Enterprise FIN General Ledger - Version 9.1 and later
Information in this document applies to any platform.

Symptoms

Requisition Entry Event (FS_EVENTGEN) fails with unique constraint error after PO is canceled.

1) Create a requisition. Budget check and Entry Event.
2) Source req to a purchase order. Budget check. Run PO EE and Req EE.
3) Change one or more chartfields on the PO. Budget check. Run PO EE and Req EE.
4) Change accounting date on PO to next period. Budget check. Run PO EE and Req EE.
5) Cancel the PO. Do not re-source the req. Budget check. Run PO EE and Req EE.

Requisition Entry Event fails with the following error:

File: e:\pt85312b-retail\peopletools\src\psappeng\aedebug.hSQL error. Stmt #: 1623 Error Position: 0 Return: 805 - ORA-00001: unique constraint (EMDBO.PS_EE_REQ_ACCTG_LN) violated

Failed SQL stmt: INSERT INTO PS_EE_REQ_ACCTG_LN (BUSINESS_UNIT, REQ_ID, UNPOST_SEQ, APPL_JRNL_ID, LINE_NBR, SCHED_NBR, DISTRIB_LINE_NUM, MOD_SEQ_NBR, DST_ACCT_TYPE, EE_EVENT_STEP, KK_TRAN_ID, KK_TRAN_DT, KK_TRAN_LN, RVRSL_FLG, SEQNBR, BALANCING_LINE, REFERENCED_BUDGET, CLOSED_VALUE, EVENT_LINE, STATISTICS_CODE, FOREIGN_CURRENCY, STATISTIC_AMOUNT, JRNL_LN_REF, CURRENCY_CD, ACCOUNTING_DT, ACCOUNTING_PERIOD, FISCAL_YEAR, BUSINESS_UNIT_GL, LEDGER_GROUP, LEDGER, JOURNAL_ID, JOURNAL_DATE, JOURNAL_LINE, ACCOUNT, ALTACCT, DEPTID, OPERATING_UNIT, PRODUCT, FUND_CODE, CLASS_FLD, PROGRAM_CODE, BUDGET_REF, AFFILIATE, AFFILIATE_INTRA1, AFFILIATE_INTRA2, CHARTFIELD1, CHARTFIELD2, CHARTFIELD3, BUSINESS_UNIT_PC, PROJECT_ID, ACTIVITY_ID, RESOURCE_TYPE, BUDGET_PERIOD, MONETARY_AMOUNT, FOREIGN_AMOUNT, GL_DISTRIB_STATUS, PROCESS_INSTANCE, ENTRY_EVENT, DEBIT_CREDIT, IN_PROCESS_FLG, OPEN_ITEM_KEY, JRNL_DESCR) SELECT B.BUSINESS_UNIT, B.REQ_ID, B.UNPOST_SEQ, A.APPL_JRNL_ID, B.LINE_NBR, B.SCHED_NBR, B.DISTRIB_LINE_NUM, B.MOD_SEQ_NBR, B.DST_ACCT_TYPE, 'REQREVRSAL', B.KK_TRAN_ID, B.KK_TRAN_DT, B.KK_TRAN_LN, B.RVRSL_FLG, B.SEQNBR, B.BALANCING_LINE, B.REFERENCED_BUDGET, B.CLOSED_VALUE, A.EVENT_LINE, B.STATISTICS_CODE, B.FOREIGN_CURRENCY, B.STATISTIC_AMOUNT *-1, B.JRNL_LN_REF, B.CURRENCY_CD, B.ACCOUNTING_DT, B.ACCOUNTING_PERIOD, B.FISCAL_YEAR, B.BUSINESS_UNIT_GL, B.LEDGER_GROUP, B.LEDGER, B.JOURNAL_ID, NULL, B.JOURNAL_LINE, A.ACCOUNT, A.ALTACCT, B.DEPTID, B.OPERATING_UNIT, B.PRODUCT, B.FUND_CODE, B.CLASS_FLD, B.PROGRAM_CODE, B.BUDGET_REF, B.AFFILIATE, B.AFFILIATE_INTRA1, B.AFFILIATE_INTRA2, B.CHARTFIELD1, B.CHARTFIELD2, B.CHARTFIELD3, B.BUSINESS_UNIT_PC, B.PROJECT_ID, B.ACTIVITY_ID, B.RESOURCE_TYPE, B.BUDGET_PERIOD, B.MONETARY_AMOUNT *-1, B.FOREIGN_AMOUNT *-1, 'N', B.PROCESS_INSTANCE, B.ENTRY_EVENT, A.DEBIT_CREDIT, ' ', B.OPEN_ITEM_KEY, B.JRNL_DESCR FROM PS_EE_REQ2_TMP4 B, PS_EE_EVENT_ALL_VW A, PS_SET_CNTRL_REC C WHERE B.PROCESS_INSTANCE = 13220 AND A.SETID = C.SETID AND A.ENTRY_EVENT = B.ENTRY_EVENT AND A.EE_PROCESS = 'REQPOST' AND A.EE_EVENT_STEP = 'REQREVRSAL' AND A.EFFDT = ( SELECT MAX(AA.EFFDT) FROM PS_EE_EVENT_ALL_VW AA WHERE A.SETID = AA.SETID AND A.EE_PROCESS = AA.EE_PROCESS AND A.ENTRY_EVENT = AA.ENTRY_EVENT AND AA.EFFDT ' ' AND B.BALANCING_LINE = 'Y' AND B.CLOSED_VALUE = 'N' AND A.DEBIT_CREDIT = 'CR' AND B.EE_EVENT_STEP = 'REQREVRSAL'

Process 13220 ABENDED at Step FS_EVENTGEN.E07100.Step01 (SQL) -- RC = 805 (108,524)

Process %s ABENDED at Step %s.%s.%s (Action %s) -- RC = %s

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