Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5412 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
4603
0
thg 11 24
1879
2
thg 7 24
3816
0
thg 4 24
2424
3
thg 3 24
3904