My Oracle Support Banner

OEXOEORD: QPXPRDPL: Cannot Add Item To Price List as it Errors With ORA-00001: unique constraint (QP.QP_LIST_LINES_U1) violated in Package QP_Price_List_line_Util Procedures Insert_Row (Doc ID 466320.1)

Last updated on FEBRUARY 20, 2020

Applies to:

Oracle Advanced Pricing - Version 11.5.9 to 12.2.4 [Release 11.5 to 12.2]
Information in this document applies to any platform.
FORM:QPXPRDPL.FMB - Define Price Lists

Checked for relevance on 26-APR-2013


-- Problem Statement:

When attempting to add an item to a price list line on a price list
the following error occurs upon saving:

ORA-00001: unique constraint (QP.QP_LIST_LINES_U1) violated in Package QP_Price_List_line_Util Procedure Insert_Row

-- Steps To Reproduce:
The issue can be reproduced at will with the following steps:
1. Responsibility: Order Management Super User
2. Navigate to: Pricing>Price List Setup.
3. Query Price List
4. Insert new line, enter Item information, prices, and effective dates, press save.
Aforementioned error message appears

-- Business Impact:
The issue has the following business impact:
Due to this issue, users cannot add items to the price list.


Steps taken to analyze issue:

--Verify how index is setup using SQL >

select index_name, column_name,column_position
from all_ind_columns
where table_name = 'QP_LIST_LINES'
order by index_name,column_position ;



--Check the highest value stored in table QP_LIST_LINES for list_line_id;

select max(list_line_id) from qp_list_lines;

--Check the sequence used to populate the list_line_id to determine its next value to assign. Make sure the value is greater than the highest value stored
In table QP_LIST_LINES as returned from previous step.

select qp_list_lines_s.nextval from dual;

--This script will provide values populated for the various fields.
   One will be prompted to provide the list_header_id and list_line_id.

Where list_header_id = &list_header_id
And list_line_id = &list_line_id;


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

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