My Oracle Support Banner

R12.1: AP: While Trying to Create a New Supplier the User Gets Errors ORA-01445 and ORA-20001 In package AP_VENDOR_PUB_PKG Procedure CREATE_VENDOR (Doc ID 2834604.1)

Last updated on JANUARY 26, 2022

Applies to:

Oracle Payables - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

Supplier Creation raises error ORA-20001:In package AP_VENDOR_PUB_PKG Procedure CREATE_VENDOR

ERROR
-----------------------
Detailed FND Debug Log shows

An error &Error occurred with &Calling_Sequence while performing following operation : &Debug_Info with parameters ORA-20001:In package AP_VENDOR_PUB_PKG Procedure CREATE_VENDOR


A more detailed FND Debug Log shows the following:

MODULE MESSAGE_TEXT
 
... ...
AP_VENDORS_PKG.INSERT_ROW Select next sequence value from PO_VENDORS_S
AP_VENDORS_PKG.INSERT_ROW b4 Insert into ap_suppliers 125386
AP_VENDORS_PKG.INSERT_ROW Rows inserted = 1
AP_VENDORS_PKG.INSERT_ROW x_Vendor_Id:125386
AP_VENDORS_PKG.INSERT_ROW p_vendor_rec.party_id:121527
AP_VENDORS_PKG.INSERT_ROW Total Count in HZ_PARTIES=1
AP_VENDORS_PKG.INSERT_ROW Total Count in AP_SUPPLIERS=1
AP_VENDORS_PKG.INSERT_ROW Total Count in AP_SUPPLIERS=1
AP_VENDORS_PKG.INSERT_ROW Right Before Open cursor C
AP_VENDORS_PKG.INSERT_ROW x_Vendor_Id:125386
AP_VENDORS_PKG.INSERT_ROW p_vendor_rec.party_id:121527
AP_VENDORS_PKG.INSERT_ROW AP_VENDORS_PKG.INSERT_ROW(Err)
AP_VENDORS_PKG.INSERT_ROW ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table
AP_VENDORS_PKG.INSERT_ROW Open cursor C
POS_VENDOR_PUB_PKG Call AP_VENDOR_PUB_PKG.Create_Vendor x_return_status = U, x_msg_count = 2, x_msg_data =
pos.supplier.server.ByrSuppAMImpl ByrSuppAMImpl:createVendor(): Start GDFF
pos.supplier.server.ByrSuppAMImpl ByrSuppAMImpl:createVendor(): Before initGlobalization
... ...

These show The error raised is "ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table" is raised in procedure AP_VENDORS_PKG.INSERT_ROW when the code executes the cursor C to check the uniqueness of the new supplier record right after inserted in table AP_SUPPLIERS and corresponding record in TCA - HZ_PARTIES.



STEPS
-----------------------
The issue can be reproduced at will with the following steps:

  1. Log into application using Payables responsibility.
  2. Open the Suppliers OAF Page (N) Suppliers > Entry > Supplier
  3. Click on [Create Supplier]
  4. Enter Supplier Name.
  5. Click [Apply]
    The Error

Changes

 

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.