uSync not working with dictionaryItems v13
# help-with-umbraco
a
Hi! We've been running into the issue lately of our Umbraco not properly syncing our dictionaryItems between environments for some time now. We cannot see any issues within the logs, and our appsettings seems to be in order. Has anyone else been experiencing this lately? The appsettings is configured as follows. Any input is appriciated! https://cdn.discordapp.com/attachments/1274988045904642059/1274988472846913568/image.png?ex=66c4410c&is=66c2ef8c&hm=0239f23d98ee8f47b7ddc4f6c1424b532d8100f59af71a7a9f2818df974e482f& https://cdn.discordapp.com/attachments/1274988045904642059/1274988473140510731/image.png?ex=66c4410c&is=66c2ef8c&hm=479e7a621c8339aaa1122a78684c1dcdafe3fd3ed548badddb8866f8b38dbbff&
a
Hmm not experiencing it though Are they being created on creation in your local environment, or not all ?
a
@Ambert Tested and they're not being created at all when I only export "Settings" with "ExportOnSave". If I change it to "All" instead of "Settings" I can see them being created. It's strange since that implies DI is considered "Content", but it has functioned as "Settings" for us in the past.
a
Dictionary is indeed considered Content
I'd recommend setting it to All, and disable the handlers you dont want exported
for example:
Copy code
"uSync": {
    "Sets": {
      "Default": {
        "DisabledHandlers": [ "ContentHandler", "MediaHandler", "TemplateHandler", "ContentTemplateHandler", "DomainHandler" ]
      }
    }
  },
Think it changed a few versions back
a
Sounds like something worth trying at least! And the "ContentHandler" is obviously seperated from the "DictionaryHandler", is there documentation of what it encompasses?
And a lot of thanks for your inputs! 🙏
a
Ah see!
Copy code
It might be that you want your Dictionary items to be synced as settings and this can be done by changing the group the DictionaryHandler is assigned to.

{
    "uSync" : {
        "Sets": {
            "Default" :{
                "Handlers" : {
                    "DictionaryHandler" : {
                        "Group": "Settings" 
                    }
                }
            }
        }
    }
}
I knew there was something like that 🙂
a
Interesting, so we can assign content to be considered something other than content? I'll see how this works, for the time being the sync is still not importing when i deploy to an environment from my local. And I can also still see the deleted DIs in my solution. Hopefully they get removed when the sync is working properly, so there's no bloating of DIs in the solution? https://cdn.discordapp.com/attachments/1274988045904642059/1275340484340092931/image.png?ex=66c588e2&is=66c43762&hm=4e0a9d1d2d0e765663f5dfa563ab79519082b4238c4647480a17b92ba1fa8f81&
a
Basically yes, with my example you configure the Dictionary to be seen as "Settings" , so when Settings is (perhaps automatically) imported, so is your dictionary
18 Views