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

This Error 
duplicate key value violates unique constraint "mail_channel_partner_partner_unique" DETAIL: Key (channel_id, partner_id)=(1, 4192) already exists. 

I can't create a user or log in at all.

I tried to check the issue in the database by looking at the mail_channel_partner table, but I couldn't find the cause of the error and I also searched in the mail_channel_partner table and checked the partner_id , but there was no data being created as mentioned in the error.

This error occurred after I deleted all data in res_groups and restored res_groups from my latest backup into the main database.

I'm not sure what caused this issue or how to fix it.

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

I realized that this error might have occurred because the partner_id was created with the same ID as an existing one. So, I deleted the user with user ID 4192 from the Settings > Users menu. After that, I was able to create a new user successfully.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 23
1889
2
thg 8 22
2600
0
thg 7 22
2253
2
thg 7 22
2313
2
thg 7 22
2200