Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1Detail: Key (org_id, member_type, member_name)=(<ORG_UUID>, 1, <USERNAME>) already exists.VMware vCloud Director
The issue is caused by a duplicate username conflict within the VCD database. VCD enforces a unique constraint on the combination of org_id, member_type, and member_name in the usr table.
This typically occurs during domain migrations or when multiple identity sources are used for the same Organization. If a username (e.g., jsmith) already exists in the Organization from an "Old Domain," VCD will reject the creation of a user with the same name from a "New Domain," even though they are technically different accounts in Active Directory.
To resolve this issue, the conflicting user record must be removed or modified so the new identity can be registered.