Totara Learn Open Discussions

HR import problem - Cannot undelete users

 
Vladimir Puaca
HR import problem - Cannot undelete users
by Vladimir Puaca - Monday, 28 September 2020, 1:19 AM
Group Most Helpful Contributor 2021

Hi all, 


I am working on a project currently that would connect our HRIS database with Totara. 


I have a problem where for some users when uploading CSV file I get an error: 

Element Log type Error type Action Info
user Error Cannot undelete checksanity cannot undelete user xyz

What is interesting is that I can undelete them manually, but unfortunately that is not a sustainable solution. Also when I undelete them manually, I can see that ID number matches & HR import checkbox in the user account is ON. 

Does anyone have experience with this kind of issue & have an idea what could be the problem with these users?

We are running Totara 2.9.

Thanks in advance!

Best, 
Vladimir

Craig Eves
Re: HR import problem - Cannot undelete users
by Craig Eves (Totara Support) - Monday, 28 September 2020, 5:52 PM
Group Totara

Hi Vladimir

There is some documentation on using the HR import here 

Can you check if the fields have empty data in them.

When you undelete a user almost all of the data will be gone including course progress, profile fields etc. Is this Ok for what you are trying to achieve?

If you suspend the user then their data will be recoverable when you unsuspend a user.

Regards


Vladimir Puaca
Re: HR import problem - Cannot undelete users
by Vladimir Puaca - Tuesday, 29 September 2020, 2:36 AM
Group Most Helpful Contributor 2021

Hi Craig, 


thank you for the link, was looking for it in HR import, but obviously not hard enough :)


To give some context - we delete users when people leave the company. However, we have rejoiners and in that case, we undelete users in the system. Once we revive them, courses that they completed before, remain complete (the same for programs). The same also happens when an account is deleted by mistake. 


From what I know, it is not possible to undelete users via Upload users option, although it is possible to unsuspend them. I thought that HR import can undelete users via bulk, but a sentence in the documentation got me a bit skeptical. 

Describing the meaning of values 0 and 1 in the deleted column in the CSV file, the documentation says:  

Required when only users to create, update or delete/suspend are provided, otherwise not necessary. 0 => do nothing, 1=> deleted/suspend.


Additionally, I've checked the file coming from HRIS and there are no empty cells in the deleted column. We used the 0 option to mark that an individual's account should be undeleted.  

So my question would now be: Can you confirm that it is possible to undelete users in bulk via HR import?

Thanks in advance for your reply!


Best, 

Vladimir