Cannot import data from one Kentico to another - wrong hotfix - but in database settings versions ar

Tomasz Czado asked on August 31, 2018 07:34

Hi,

I have a problem when exporting and importing site from one Kentico into another. Problem is that I got this

Error during temporary files creation. Original exception: [ImportProvider.LoadObjects]: Cannot import data from newer hotfix version '50' to current hotfix version '0'.


But when I checked in both databases I see the same values for keys below:

  • MSDBVersion: 9.0
  • CMSDataVersion: 9.0
  • CMSHotfixVersion: 50

Also, when I tried run hotfix installer on site with older hotfix it also says installed hotfix version is 50.

Correct Answer

Brenden Kehren answered on August 31, 2018 14:04

There are 3 places to check for the version of your Kentico install:

  • Database
  • File system
  • Kentico UI

Check this answer out for more details.

Another option we typically do is adjust the version of the imported object. You can do this by unzipping the .zip file you downloaded and in the cms_info.xml.export file look for the node:

<cms_info>
  <Key>hotfixversion</Key>
  <Value>23</Value>
</cms_info>

Modify the value to 0, save it, add it back to the .zip file then attempt your import again.

So maybe the problem isn't with the target server you're importing into, but the source server where you exported these files from. Either way if they are supposed to be a mirror of each other, you have something wrong or should be reviewing that a bit closer.

1 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on August 31, 2018 09:03

Hi,

Can you check if you have the Hotfix.txt file with correct version in App_data, Install?

Image Text

My guess is you cleaned up file system a bit to much :)

1 votesVote for this answer Mark as a Correct answer

Tomasz Czado answered on August 31, 2018 09:05 (last edited on August 31, 2018 09:05)

Yes, I have this file and it has correct value.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on August 31, 2018 09:20 (last edited on August 31, 2018 09:37)

Can you check if there are any (locked) files in CMS\App_Data\CMSTemp\ImportExport.

If there is just remove all content (next import will regenerate it if needed).

If there isn't, check file permissions. (docs.kentico.com/..../disk-permission-problems

1 votesVote for this answer Mark as a Correct answer

Tomasz Czado answered on September 1, 2018 09:45

Thanks for help

0 votesVote for this answer Mark as a Correct answer

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