Error: gm.process_batch_detail; ORA-00001: unique constraint (PBDS.PK_STOCK_GIFT) violated - Post Gift Batches

You may encounter this error for a given batch item when posting a batch.

Batch 3091600024, item 1: gm.process_batch_detail; ORA-00001: unique constraint (PBDS.PK_STOCK_GIFT) violated
This error may occur when adjusting a Gift Transaction that has a ST (stock) Payment Method from Transaction Type GF to PP. The status of the stock gift item (which can be viewed by zooming in on the ST Payment Method in Batch Detail) gets changed from 'N' (no change) to 'I' (Insert) when the Transaction type is changed from GF to PP in the adjustment batch. This causes TA to try and insert the same stock gift item with the same Stock_Seq again, which causes an error.

The workaround is to change the Status of the batch stock gift item from 'I' back to 'N'. This cannot be done from TA front end, so contact TA support for assistance.

Environment

 RSR
 TA

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.