Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
Community Members
Community Events
Community Groups

Error Unique index or primary key violation insert into cwd_membership


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
Caterina _or Kate_ Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2022

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 




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
AUG Leaders

Atlassian Community Events