Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5396 Prikazi

I'm now getting a "Odoo Warning"   "Integrity Error - duplicate key value violates unique constraint "account_invoice_line_pkey" DETAIL: Key (id)=(46) already exists.

This was when I clicked the "Update" button on a new invoice for Tax.    It happened prior when I just tried to Save the Invoice.    As far as I can tell looking in the database there shouldn't be any ID=46 already.

Pressing save I get a new error:    "wkf_instance_pkey"  DETAIL: Key (id)=(43) already exists.

If I press Save again I get the following:  "wkf_instance_pkey" DETAIL Key (id)=(44) already exists.


What's going on and how should I get this fixed?


Avatar
Opusti
Avtor Best Answer

Not sure why this happened, but the solution was to keep clicking on the SAVE button until the ID incremented enough to be able to save.    Could have been that we restored over existing data and the indexes were off.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 24
4385
0
nov. 24
1802
2
jul. 24
3668
0
apr. 24
2346
3
mar. 24
3401