This guide describes how to update the DAM for Sitecore (DFS) module without losing data.
Before beginning it is important that the reader has knowledge of how itemIds are calculated in DFS. This knowledge is important for understanding this guide. An explanation of this can be found here.
The updating process is as follows:
- Backup Sitecore
- Serialize the Asset silo item
- Go into content editor
- Right-click top bar and select developer tab (make Developer tab visible)
- Select the asset silo of the DFS installation
- Click the "serialize item" button in the Developer tab
- By default the item is stored in <sitecore root>\data\serialization
- Update the package
- Install the package as a normal Sitecore package
Overwrite everything
Note
This will break ALL the links on the Sitecore webpage. It mends it self once the full re-synchronization has been run. This is due to the way Sitecore ItemIds are created.
- Revert the item
- Go into Content Editor
- Select the Digizuite item in Media library
- Go to the Developer tab
- Press Revert tree
- Now your Asset silo will appear again
- Do a full re-synchronization of the asset silo
All the links will mend themselves at this point (be un-broken). The reason that everything works after doing the above steps, is that the Sitecore itemIds of all assets and configurations will revert back to their pre-update itemIds from before.
The ItemIds are calculated based on the asset silo ItemId. As the "new" silo is the same as the one before, all the assets and configurations will also have the same itemIds again.