uSync migration import Content Picker
# help-with-umbraco
m
So am getting this error on importing a Content Picker, I have not sync Content yet so might be that? On importing I am getting the following on Content pickers (maybe others but figure once I know how to fix one I can fix em all) "DataTypeHandler": Import Failed : "System.ArgumentNullException: Value cannot be null. (Parameter 'value') at Umbraco.Cms.Core.Models.DataType.set_Configuration(Object value) at uSync.Core.Serialization.Serializers.DataTypeSerializer.DeserializeConfiguration(IDataType item, XElement node) at uSync.Core.Serialization.Serializers.DataTypeSerializer.DeserializeCore(XElement node, SyncSerializerOptions options) at uSync.Core.Serialization.SyncSerializerRoot1.Deserialize(XElement node, SyncSerializerOptions options) at uSync.BackOffice.SyncHandlers.SyncHandlerRoot2.ImportElement(XElement node, String filename, HandlerSettings settings, uSyncImportOptions options)"
Copy code
<?xml version="1.0" encoding="utf-8"?>
<DataType Key="0706d480-4fda-4bb7-9b47-1c288d8f6038" Alias="Single Banner Picker" Level="1">
  <Info>
    <Name>Single Banner Picker</Name>
    <EditorAlias>Umbraco.ContentPicker</EditorAlias>
    <DatabaseType>Nvarchar</DatabaseType>
  </Info>
  <Config><![CDATA[{
  "ShowOpenButton": false,
  "StartNodeId": "umb://document/4af14cb689254238a9457ff07a61d83d",
  "IgnoreUserStartNodes": false
}]]></Config>
</DataType>
I have not imported content yet
k
Hi, Importing the content shoudln't actually matter ,the IDs are not checked when the config is saved in umbraco. I've just check that config above (i pasted it into my own migrtation and ran the import) and it seems fine. is that the migrated config (from a "Migrations/something" folder)?
m
Yeah
Let me double check it is 😄
Yeah it is I have a few types with the same error
k
OK, so that looks broken . It reporting that it can't find the core datatypes. 😟
m
Classic me problems 😄
k
What version of Umbraco is that on ?
m
10.6.1
coming from latest 7 with a database migration to latest 8 and then exporting as I needed guid file names to get an export
k
i think your datatypes aren't synced / converted.
So the error message is from the ContentType serializer and it means I can't find the datatype (with this guid of this type) for the property you want on your content type
So guess is your datatypes are missing.
Pre-Migrations this only really ever happens if you have a package installed on source and not target hence the message
m
So If I fix my custom property and do another zip upload?
k
yeah - i think you need to make sure you have the datatypes folder in there
m
Ok so Ill add the package.manifest and set up the v8 _site in the uSync folder
k
If its a datatype you want to exist on the new site, then the app_plugins in the actual site will need to be where they go. (the conversion doesn't care to much if the datatype exists or not, its the subsequent import where its asking the current umbraco site to setup the new datatype that matters)
m
So I have a blank data base custom data types are defined via a package.manifest in 7/8/10 just copied it over same for the grid.editor.js
k
yes - the migration packers can actually do some of this for you (see https://github.com/Jumoo/uSyncMigrations/blob/main/GETTING-STARTED.md) they mainly they make a merged grid.editor.config.js file from all loaded configs. but copying over the stuff to app_plugins and grid.editor.config.js does do the same thing.
m
it errored when I tried uploading the zip 🙂
k
😦 - i suspect there is something odd going on with encoding - what error did you get.
m
Finding out now
I am an idiot 🙂
I didnt hit upload I hit submit..
k
😄 - i mean your not the only one, the UI might need polish
m
with the zip 😦
k
is the zip massive ? coudl you email me it and i will quickly see what happens when i have a go ?
m
33MB ill upload it and share it with you on sharepoint 🙂
k
So presumably. the error is a datatype handler error. ?
I have some but not for the 0706... file.
most of them do appear to be for other property editors i don't have installed
Seems to work for me, (i mean lots of missing package things, and the blockgrid migrations didn't work completely - but i didn't get the errors you have had 😞 )
m
Could I have the database 😄
I am using SQL 2014....
I wonder if that is an issue
k
it was a fresh v10 install. admititly using SQLite
but i don't think that is usually an issue (usync does no DB work its all APIs)
m
I guess Ill try again with a fresh database
17 Views