GST: 12.2.0 Upgrade Failed With "The Index Cannot Be Created As The Table Has Duplicate Keys."
(Doc ID 2869517.1)
Last updated on MAY 23, 2022
Applies to:
Oracle Financials for India - Version 12.2 and laterInformation in this document applies to any platform.
Symptoms
12.2.0 upgrade failed with "The index cannot be created as the table has duplicate keys."
ERROR
-----------------------
CREATE UNIQUE INDEX JA."JAI_INV_ITM_TAXCTG_DTLS_U1" ON
JA.JAI_INV_ITM_TAXCTG_DTLS (INVENTORY_ITEM_ID, TAX_CATEGORY_LIST) LOGGING
STORAGE (FREELIST GROUPS 4 FREELISTS 4 ) PCTFREE 10 INITRANS 11 MAXTRANS
255 COMPUTE STATISTICS TABLESPACE APPS_TS_TX_IDX
Statement executed.
AD Worker error:
The index cannot be created as the table has duplicate keys.
Use the following SQL statement to identify the duplicate keys:
SELECT INVENTORY_ITEM_ID, TAX_CATEGORY_LIST, count(*)
FROM JA.JAI_INV_ITM_TAXCTG_DTLS
GROUP BY INVENTORY_ITEM_ID, TAX_CATEGORY_LIST
HAVING count(*)>1
AD Worker error:
Unable to compare or correct tables or indexes or keys
because of the error above
JA.JAI_INV_ITM_TAXCTG_DTLS (INVENTORY_ITEM_ID, TAX_CATEGORY_LIST) LOGGING
STORAGE (FREELIST GROUPS 4 FREELISTS 4 ) PCTFREE 10 INITRANS 11 MAXTRANS
255 COMPUTE STATISTICS TABLESPACE APPS_TS_TX_IDX
Statement executed.
AD Worker error:
The index cannot be created as the table has duplicate keys.
Use the following SQL statement to identify the duplicate keys:
SELECT INVENTORY_ITEM_ID, TAX_CATEGORY_LIST, count(*)
FROM JA.JAI_INV_ITM_TAXCTG_DTLS
GROUP BY INVENTORY_ITEM_ID, TAX_CATEGORY_LIST
HAVING count(*)>1
AD Worker error:
Unable to compare or correct tables or indexes or keys
because of the error above
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Upgrading to 12.2.0
2. Apply the 12.2 upgrade driver
Changes
Apply the 12.2 upgrade patch.
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 |