The 'A constraint violation occurred' error normally occurs if an attribute included in the object create request doesn't meet the defined requirements for the attribute i.e. value is not a DN, not a valid country code, trying to update a backlink attribute, system attribute.
The suggestion would be iteratively remove attributes from the creation request to see which one is causing the problem.
Gary.