Cannot restore users with CI

Tomasz Sikora asked on August 10, 2017 13:54

In CMS\App_Data\CIRepository\@global\cms.user I have 2080 files. Somehow my DB has only 607 users in CMS_User. What I think I want to do is to get all these users back from CIRepository to DB. Running ContinousIntegration -r fails because somewhere in the middle, it cannot deserialize some objects that refer to not existing users in DB (they are only in XML files). Does someone have a clue how can I solve this problem?

Correct Answer

Tomasz Sikora answered on August 10, 2017 15:02

I just solved it. I found this page (Deserializing XML data into objects) and I've written small program that imports only users from XML files. After that I was able to run CI without any issues. I just needed to change WebPartInfo to UserInfo and use UserInfoProvider.

0 votesVote for this answer Unmark Correct answer

Recent Answers

Trevor Fayas answered on August 10, 2017 14:21

haven't run into that and may be worth mentioning to support, one temporary work around would be to copy your ci folder, back it up somewhere, then remove all the stuff except users, run the.exe so you can restore the users first, then copy the rest back and run again?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.