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 APRIL 27, 2023
Applies to:
Oracle Payables - Version 12.1.3 and laterInformation 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
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:
- Log into application using Payables responsibility.
- Open the Suppliers OAF Page (N) Suppliers > Entry > Supplier
- Click on [Create Supplier]
- Enter Supplier Name.
- 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 |