
SmitaBB.12515 (Customer) asked a question.
Issue - Provisioning Import Users failing with unique constraint error
Hi Team,
There is custom SCIM app.
While importing the users manually, there is a unique constraint 'null' error.
Managed to populate all required details in the app response profile.
However, it is failing always.
Any help/suggestion would help. Thank you in advance!
Below is the excerpt from the Import Logs.
"displayMessage": "Import process complete",
"eventType": "system.import.complete",
"outcome": {
"result": "FAILURE",
"reason": "import job failed"
},
"published": "2026-10-13T06:50:32.244Z",
"securityContext": {
"asNumber": null,
"asOrg": null,
"isp": null,
"domain": null,
"isProxy": null
},
"severity": "ERROR",
"debugContext": {
"debugData": {
"jobId": "ij118nk9m3sVbdvGS698",
"appname": "trial-9114921_scimbsso_1",
"message": "SQLIntegrityConstraintViolationException: Column 'ancestor' cannot be null"

Hello @SmitaBB.12515 (Customer)
The Groups import fails because the SCIM responses you shared contain duplicate identifiers, a Groups list that does not match its reported totals, and group records without the membership data Okta needs to build group relationships.
Root Cause: Four issues appear in the responses:
Solution: Follow these steps: