uSync-Legacy icon indicating copy to clipboard operation
uSync-Legacy copied to clipboard

Syncing dictionary items - Different GUID's

Open b-detaill opened this issue 7 years ago • 4 comments

Hello Kevin

My team and I are trying to sync our dictionary items across different instances of Umbraco 7. We noticed that the GUID's in the database aren't the same when we do an import. This gives some unwanted effects when changing the key of a dictionary item.

Bert

b-detaill avatar Jul 03 '18 07:07 b-detaill

Hi What version of umbraco are you running ?

I think (although its been a while) that some older versions of umbraco did keep changing dictionary guid values even when you set them, so it might be that - but i will also have a quick check.

KevinJump avatar Jul 03 '18 08:07 KevinJump

We are running on umbraco version 7.10.4

b-detaill avatar Jul 03 '18 08:07 b-detaill

that's sad (for me) - almost certainly means its a uSync thing - I will do some investigation.

KevinJump avatar Jul 03 '18 08:07 KevinJump

Right the comments in the code give this away https://github.com/KevinJump/uSync/blob/v4_master/Jumoo.uSync.Core/Serializers/DictionarySerializer.cs#L64

at least upto v7.5.4 of umbraco you can't set the guid in a dictionary item - you can at 7.11.1 so O need to go find out at what version this became possible (my guess is v7.6) - and then make sure we do a version check before we set it.

KevinJump avatar Jul 07 '18 10:07 KevinJump