My Oracle Support Banner

Error 'Unexpected error occurred during auto create' While Trying To Auto Create PO From The PR After Upgrade (Doc ID 3003342.1)

Last updated on MARCH 14, 2024

Applies to:

Oracle Purchasing - Version 12.2.13 and later
Information in this document applies to any platform.

Symptoms

When attempting to Auto Create PO from the Purchase requisition
the following error occurs.

ERROR
"Error : Unexpected error occurred during autocreate"

FND Debug Messages has below data

po.plsql.PO_PDOI_HEADER_PROCESS_PVT..default_info_from_vendor_site.10.EXCEPTION ORA-28113: policy predicate has error in Package po.plsql.PO_PDOI_HEADER_PROCESS_PVT. Procedure default_info_from_vendor_site.10;SQLERRM = ORA-28113: policy predicate has error
po.plsql.PO_PDOI_HEADER_PROCESS_PVT..default_headers.20.EXCEPTION ORA-28113: policy predicate has error in Package po.plsql.PO_PDOI_HEADER_PROCESS_PVT. Procedure default_headers.20;SQLERRM = ORA-28113: policy predicate has error
po.plsql.PO_PDOI_MAINPROC_PVT..process_headers.30.EXCEPTION ORA-28113: policy predicate has error in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process_headers.30;SQLERRM = ORA-28113: policy predicate has error
po.plsql.PO_PDOI_MAINPROC_PVT..process.10.EXCEPTION ORA-28113: policy predicate has error in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process.10;SQLERRM = ORA-28113: policy predicate has error
po.plsql.PO_PDOI_PVT.set_draft_errors.BEGIN Start of subprogram.
po.plsql.PO_PDOI_PVT.set_draft_errors.END End of subprogram.
po.plsql.PO_PDOI_PVT..start_process.110.EXCEPTION ORA-28113: policy predicate has error in Package po.plsql.PO_PDOI_PVT. Procedure start_process.110;SQLERRM = ORA-28113: policy predicate has error
po.plsql.PO_PDOI_PVT.wrap_up.BEGIN Start of subprogram.
po.plsql.PO_INTERFACE_ERRORS_UTL.flush_errors_tbl.BEGIN Start of subprogram.
po.plsql.PO_INTERFACE_ERRORS_UTL.init_errors_tbl.BEGIN Start of subprogram.
po.plsql.PO_INTERFACE_ERRORS_UTL.init_errors_tbl.END End of subprogram.
po.plsql.PO_INTERFACE_ERRORS_UTL.flush_errors_tbl.END End of subprogram.
po.plsql.PO_PDOI_PVT.wrap_up. Timing Stat: PDOI_ALL-1: Start=20:27:39.437, End=20:27:39.806, Duration=+00 00:00:00.368994
po.plsql.PO_PDOI_PVT.wrap_up. Timing Stat: PREPROCESSING-1: Start=20:27:39.524, End=20:27:39.595, Duration=+00 00:00:00.070821
po.plsql.PO_PDOI_PVT.wrap_up. Timing Stat: HEADER_GROUPING-1: Start=20:27:39.599, End=20:27:39.655, Duration=+00 00:00:00.055920
po.plsql.PO_PDOI_PVT.wrap_up. Timing Stat: MAIN_PROCESSING-1: Start=20:27:39.663, End=, Duration=
po.plsql.PO_PDOI_PVT.wrap_up. Timing Stat: HEADER_PROCESS-1: Start=20:27:39.668, End=, Duration=
po.plsql.PO_PDOI_PVT.wrap_up. Timing Stat: HEADER_DEFAULT-1: Start=20:27:39.700, End=, Duration=
po.plsql.PO_PDOI_PVT.wrap_up.END End of subprogram.
po.plsql.PO_PDOI_GRP.start_process.END x_return_status = U
po.plsql.PO_INTERFACE_S.call_pdoi_autocreate.END End of subprogram.
po.plsql.PO_INTERFACE_S.create_pdoi_po.020.EXCEPTION ;SQLERRM = User-Defined Exception
po.plsql.PO_INTERFACE_S.create_documents.020.EXCEPTION ;SQLERRM = User-Defined Exception
po.plsql.PO_INTERFACE_S.wrapup.BEGIN Start of subprogram.
po.plsql.PO_INTERFACE_S.wrapup.END End of subprogram.
po.plsql.po_message_s.CREATE_DOCUMENTS.020.EXCEPTION ;SQLERRM = User-Defined Exception

 

Trace has below data

KZRT_RLS_TRC: Error information for ORA-28113:
KZRT_RLS_TRC: Logon user     : APPS
KZRT_RLS_TRC: Synonym        : APPS.AP_SUPPLIER_SITES
KZRT_RLS_TRC: VPD Policy name    : ORG_SEC
KZRT_RLS_TRC: Policy function: APPS.MO_GLOBAL.ORG_SECURITY
KZRT_RLS_TRC: RLS view  :
SELECT  "VENDOR_SITE_ID","LAST_UPDATE_DATE","LAST_UPDATED_BY","VENDOR_ID","VENDOR_SITE_CODE","VENDOR_SITE_CODE_ALT","LAST_UPDATE_LOGIN","CREATION_DATE","CREATED_BY","PURCHASING_SITE_FLAG","RFQ_ONLY_SITE_FLAG","PAY_SITE_FLAG","ATTENTION_AR_FLAG","ADDRESS_LINE1","ADDRESS_LINES_ALT","ADDRESS_LINE2","ADDRESS_LINE3","CITY","STATE","ZIP","PROVINCE","COUNTRY","AREA_CODE","PHONE","CUSTOMER_NUM","SHIP_TO_LOCATION_ID","BILL_TO_LOCATION_ID","SHIP_VIA_LOOKUP_CODE","FREIGHT_TERMS_LOOKUP_CODE","FOB_LOOKUP_CODE","INACTIVE_DATE","FAX","FAX_AREA_CODE","TELEX","PAYMENT_METHOD_LOOKUP_CODE","BANK_ACCOUNT_NAME","BANK_ACCOUNT_NUM","BANK_NUM","BANK_ACCOUNT_TYPE","TERMS_DATE_BASIS","CURRENT_CATALOG_NUM","VAT_CODE","DISTRIBUTION_SET_ID","ACCTS_PAY_CODE_COMBINATION_ID","PREPAY_CODE_COMBINATION_ID","PAY_GROUP_LOOKUP_CODE","PAYMENT_PRIORITY","TERMS_ID","INVOICE_AMOUNT_LIMIT","PAY_DATE_BASIS_LOOKUP_CODE","ALWAYS_TAKE_DISC_FLAG","INVOICE_CURRENCY_CODE","PAYMENT_CURRENCY_CODE","HOLD_ALL_PAYMENTS_FLAG","HOLD_FUTURE_PAYMENTS_FLAG","HOLD_REASON","HOLD_UNMATCHED_INVOICES_FLAG","AP_TAX_ROUNDING_RULE","AUTO_TAX_CALC_FLAG","AUTO_TAX_CALC_OVERRIDE","AMOUNT_INCLUDES_TAX_FLAG","EXCLUSIVE_PAYMENT_FLAG","TAX_REPORTING_SITE_FLAG","ATTRIBUTE_CATEGORY","ATTRIBUTE1","ATTRIBUTE2","ATTRIBUTE3","ATTRIBUTE4","ATTRIBUTE5","ATTRIBUTE6","ATTRIBUTE7","ATTRIBUTE8","ATTRIBUTE9","ATTRIBUTE10","ATTRIBUTE11","ATTRIBUTE12","ATTRIBUTE13","ATTRIBUTE14","ATTRIBUTE15","REQUEST_ID","PROGRAM_APPLICATION_ID","PROGRAM_ID","PROGRAM_UPDATE_DATE","VALIDATION_NUMBER","EXCLUDE_FREIGHT_FROM_DISCOUNT","VAT_REGISTRATION_NUM","OFFSET_VAT_CODE","ORG_ID","CHECK_DIGITS","BANK_NUMBER","ADDRESS_LINE4","COUNTY","ADDRESS_STYLE","LANGUAGE","ALLOW_AWT_FLAG","AWT_GROUP_ID","GLOBAL_ATTRIBUTE1","GLOBAL_ATTRIBUTE2","GLOBAL_ATTRIBUTE3","GLOBAL_ATTRIBUTE4","GLOBAL_ATTRIBUTE5","GLOBAL_ATTRIBUTE6","GLOBAL_ATTRIBUTE7","GLOBAL_ATTRIBUTE8","GLOBAL_ATTRIBUTE9","GLOBAL_ATTRIBUTE10","GLOBAL_ATTRIBUTE11","GLOBAL_ATTRIBUTE12","GLOBAL_ATTRIBUTE13","GLOBAL_ATTRIBUTE14","GLOBAL_ATTRIBUTE15","GLOBAL_ATTRIBUTE16","GLOBAL_ATTRIBUTE17","GLOBAL_ATTRIBUTE18","GLOBAL_ATTRIBUTE19","GLOBAL_ATTRIBUTE20","GLOBAL_ATTRIBUTE_CATEGORY","EDI_TRANSACTION_HANDLING","EDI_ID_NUMBER","EDI_PAYMENT_METHOD","EDI_PAYMENT_FORMAT","EDI_REMITTANCE_METHOD","BANK_CHARGE_BEARER","EDI_REMITTANCE_INSTRUCTION","BANK_BRANCH_TYPE","PAY_ON_CODE","DEFAULT_PAY_SITE_ID","PAY_ON_RECEIPT_SUMMARY_CODE","TP_HEADER_ID","ECE_TP_LOCATION_CODE","PCARD_SITE_FLAG","MATCH_OPTION","COUNTRY_OF_ORIGIN_CODE","FUTURE_DATED_PAYMENT_CCID","CREATE_DEBIT_MEMO_FLAG","OFFSET_TAX_FLAG","SUPPLIER_NOTIF_METHOD","EMAIL_ADDRESS","REMITTANCE_EMAIL","PRIMARY_PAY_SITE_FLAG","SHIPPING_CONTROL","SELLING_COMPANY_IDENTIFIER","GAPLESS_INV_NUM_FLAG","DUNS_NUMBER","TOLERANCE_ID","LOCATION_ID","PARTY_SITE_ID","SERVICES_TOLERANCE_ID","RETAINAGE_RATE","TCA_SYNC_STATE","TCA_SYNC_PROVINCE","TCA_SYNC_COUNTY","TCA_SYNC_CITY","TCA_SYNC_ZIP","TCA_SYNC_COUNTRY","PAY_AWT_GROUP_ID","CAGE_CODE","LEGAL_BUSINESS_NAME","DOING_BUS_AS_NAME","DIVISION_NAME","SMALL_BUSINESS_CODE","CCR_COMMENTS","DEBARMENT_START_DATE","DEBARMENT_END_DATE","ACK_LEAD_TIME" FROM "AP"."AP_SUPPLIER_SITES_ALL#"   "AP_SUPPLIER_SITES" WHERE (org_id = sys_context('multi_org2','current_org_id'))
ORA-04098: trigger 'APPS.AP_SUPPLIER_SITES_ALL_AI' is invalid and failed re-validation

 

STEPS

------------

1. Open Purchasing responsibility

2. Open AutoCreate form

3. Query an Approved Requisition

4. Click on Automatic Button, error is observed

Changes

 Upgrade from 12.1.3 to 12.2.12

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.