When Using Custom Rates with Wild Cards - PC_WRAPPER ABENDED at Step PC_PRICING.CUST1000.Step01 (Action SQL) -- RC = 805 - (Doc ID 2294683.1)

Last updated on AUGUST 10, 2017

Applies to:

PeopleSoft Enterprise FIN Project Costing - Version 9.2 to 9.2 [Release 9]
Information in this document applies to any platform.

Symptoms

On :  9.2 version, Interfaces

PC Wrapper is failing because of unique constrain error.

ERROR
-----------------------
PC_WRAPPER ABENDED at Step PC_PRICING.CUST1000.Step01 (Action SQL) -- RC = 805

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a Project/Activity
2. Define Custom Rates - for example 'VJTST1'

Set Up Financials/Supply Chain >  Product Related > Project Costing>  Pricing Structure> Define Custom Rates

Apply Rates to -- "Source Amount". Fields by Rates Definition has "PROJECT_ID"

3. Populate Custom Rates  - Provide the value of the Project and put 0.3 as Cost Mark up.
4. Create a Cost Rate set  - for example VJTST1

Define 2 source and corresponding target.

The 2 Source rows have the following populated and rest being %

analysis type, source_type, account  - ACT, MATER, 100000
analysis type, source_type, account  - ACT, MATER, % <<<<<<<<<<<<<<<<
Target for both is same
Rate Options - CRV, Rate Name - VJTST1, Rate Amount - 1, Target Analysis Type - ACT

5. Create a Contract with rate based contract line. Associate the Project/Activity with the rate set 'VJTST1'
6. Create a Transaction with following

ACT , MATER, 100000 for analysis_type, source_type, account  for an amount of $1000 and process

7. The process PC_WRAPPER abends with the abend

INSERT INTO PS_PC_CUST_TAO (SETID, RATE_NAME, EFFDT, SEQUENCE_NBR_9,
PROCESS_INSTANCE, APPLY_RATE_TO, CURRENCY_CD, UNIT_OF_MEASURE, FIELDVALUE1,
FIELDVALUE2, FIELDVALUE3, FIELDVALUE4, FIELDVALUE5, COST_RATE, BILL_RATE,
COST_MUP, BILL_MUP) SELECT SETID, RATE_NAME, EFFDT, ROW_NUMBER()
OVER(PARTITION BY SETID ORDER BY FIELDVALUE2), 121933, APPLY_RATE_TO,
CURRENCY_CD, UNIT_OF_MEASURE, FIELDVALUE1, FIELDVALUE2, FIELDVALUE3,
FIELDVALUE4, FIELDVALUE5, COST_RATE, BILL_RATE, COST_MUP, BILL_MUP FROM
PS_PC_RATE_CUSTVW CUSTI WHERE CUSTI.RATE_NAME = 'VJTST1'
/
-- Row(s) affected: 0
-- 14:22:34.735 Process 121933 ABENDED at Step PC_PRICING.CUST1000.Step01 (Action SQL) -- RC = 805
ROLLBACK
/
-- 14:22:34.879 SQL Error: ORA-00001: unique constraint (EMDBO.PS_PC_CUST_TAO) violated

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms