Troubleshooting
Problem
After creating an order with item which has info price configured, call repriceOrder API twice. The second call to reprice order API throws an exception - Record already exists. The repriceOrder API invokes GetOrderPriceUE
Cause
This was due to a unique AdditionalLinePriceKey not being passed
Diagnosing The Problem
The issue was due to the API making an insert into YFS_ADDNL_LINE_PRICE.ADDNL_LINE_PRICE_KEY with the same AdditionalLinePriceKey in the second call as the first.
Resolving The Problem
Pass AdditionalLinePriceKey ( YFS_ADDNL_LINE_PRICE.ADDNL_LINE_PRICE_KEY) as LinePriceID in the output of getOrderPriceUE while making the consecutive reprice order call. You can get LinePriceID(AdditionalLinePriceKey ) in the input of getOrderPriceUE by extending the user exit input template.
Was this topic helpful?
Document Information
Modified date:
21 June 2018
UID
swg22017383