Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,157
Community Members
 
Community Events
165
Community Groups

Error Unique index or primary key violation insert into cwd_membership

Hi,

We have errors in our logs when importing users via an activedirectory connector.

ERROR [Caesium-1-1]  o.h.e.jdbc.spi.SqlExceptionHelper Unique index or primary key violation: "SYS_IDX_SYS_CT_10168_10170 ON PUBLIC.CWD_MEMBERSHIP(PARENT_ID, CHILD_ID, MEMBERSHIP_TYPE) VALUES ( /* key:1279202 */ null, 1245987, 1180149, 'GROUP_USER', null, null, null, null, null, null, null)"; SQL statement:
insert into cwd_membership (parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, created_date, directory_id, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-176]
WARN  [Caesium-1-1]  o.h.e.jdbc.spi.SqlExceptionHelper SQL Error: 23505, SQLState: 23505

We can no longer assign users to the groups in this connector.

Can you help us please?

1 answer

0 votes

Hello Arnaud,

We have seen this problem a few times and created a page with the instructions to address it.

You can find it here: Atlassian Support Bitbucket 8.1 Bitbucket Server Knowledge Base Troubleshooting User Management Crowd Synchronization Fails with Integrity Constraint Violation 

 

Caterina

 

P.S. I know it's been some time since you posted the original question but I just came across this and hope that this answer will still help somebody in the future.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,256 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you