Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Not able to create username while import

rohanpandit
New Contributor II
New Contributor II

Hi Team,

We are getting error while creating a user via  import Job. We are creating username  from Saviynt only while importing a user from Successfactor. We are getting validation error. Please check.

 

2024-05-09T17:15:09+05:30-ecm-worker-services.ImportSAvDataUserService-quartzScheduler_Worker-1-vn54c-ERROR-Error in saving user username:null :: employeeid : xxxx
 
2024-05-09T17:15:09+05:30-ecm-worker--null-vn54c--grails.validation.ValidationException: Validation Error(s) occurred during save():
 
2024-05-09T17:15:09+05:30-ecm-worker--null-vn54c--- Field error in object 'com.saviynt.ecm.identitywarehouse.domain.Users' on field 'username': rejected value [null]; codes [com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.error.com.saviynt.ecm.identitywarehouse.domain.Users.username,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.error.username,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.error.java.lang.String,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.error,users.username.nullable.error.com.saviynt.ecm.identitywarehouse.domain.Users.username,users.username.nullable.error.username,users.username.nullable.error.java.lang.String,users.username.nullable.error,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.com.saviynt.ecm.identitywarehouse.domain.Users.username,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.username,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable.java.lang.String,com.saviynt.ecm.identitywarehouse.domain.Users.username.nullable,users.username.nullable.com.saviynt.ecm.identitywarehouse.domain.Users.username,users.username.nullable.username,users.username.nullable.java.lang.String,users.username.nullable,nullable.com.saviynt.ecm.identitywarehouse.domain.Users.username,nullable.username,nullable.java.lang.String,nullable]; arguments [User Name,Users]; default message [Property [{0}] of class [{1}] cannot be null]
 
 
rohanpandit_0-1715256195343.png

 

11 REPLIES 11

Raghu
Valued Contributor III
Valued Contributor III

@rohanpandit  what is username you expecting may i know ? give some example please?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rohanpandit
New Contributor II
New Contributor II

@Raghu on the basis of first and lastname. PFB example.

rohanpandit_2-1715265692174.png

 

NM
Regular Contributor III
Regular Contributor III

Is it like working some and failing for others?

NM
Regular Contributor III
Regular Contributor III

Hi @rohanpandit, is user first name and last name empty?

rohanpandit
New Contributor II
New Contributor II

@NM it's not empty. Attaching postman Screenshot.

 

rohanpandit_1-1715265571518.png

 

NM
Regular Contributor III
Regular Contributor III

Can you share import job ss once.

rohanpandit
New Contributor II
New Contributor II

Attaching screenshot. @NM 

rohanpandit_0-1715266032450.png

rohanpandit_1-1715266104312.png

it's not working for all. If i import username from successfactor then it will work but this is not the usecase for us as username generated in successfactor is not correct.

Also this was working before, it is stopped working suddenly.

@rohanpandit : You cannot generate username using the setting you have shared from Global Configuration -> Identity LifeCycle. This will come into picture for users created through Saviynt UI/API.

If you want to generate username as part of import then use inline preprocessor and map it to username. Because username is mandatory mapping as part of import so during import only you have to assign username either by directly mapping any of the attribute from target or generate using inline preprocessor logic and assign it to username column of saviynt. 


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

  • How are trying to create user ?

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

@rushikeshvartak  via import Job.

Username is mandatory attribute and you can't compute username during import sheet 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.