Migrating content of nested content to blocklist property (Umbraco v13> v17)

,

Hi all,

We’re upgrading our Umbraco v13 sites to v17. One of these sites (our oldest one) still has deprecated Nested Content properties. We’ve added the new Block List property alongside the existing deprecated ones, but we still have a large amount of data stored in the Nested Content properties that needs to be migrated.

For example:

Inside group:

Does anyone have suggestions for bulk-migrating this data from Nested Content to Block List? We’ve tried a few options, including uSync.Migrations and AutoBlocklist, but neither seems able to handle nested properties within Nested Content.

Do we need to write our own scripts to migrate the data stored in the umbracoPropertyData table, or is there a better approach?

Hopefully someone has run into this same issue and can point us in the right direction.

Thanks in advance!

Hi @colinsgb

We’ve used uSyncMigration to migrate Nested Content to Block List, which includes nested lists and it has worked, so it would be interesting to know what issues you encountered.

Worst case scenario, then yes you would need to migrate your property data using your own custom migration code which reads the old JSON format and creates the Block List JSON. It is do-able but you would need to write it yourself.

Justin

Thanks for the response. Here’s what we did:

  • Made a copy of the live database and renamed it to _V17
  • Made an export of uSync on V13
  • Upgraded a local instance from Umbraco v13 to v17
    • based on created database in first step
  • Added nuget packages
  • Started up the site
  • Ran uSync Migrate via Settings: Analyze → Upgrade → Import

Some examples:

image

We can see the new data types being created, but the actual Nested Content data isn’t being duplicated into the Block List property on the nodes themselves.

We run the following:

Umbraco v13 content (nested content) example:

Umbraco v17 (same node) shows:

Changing property to existing one, saving and viewing node results in empty content.

Are we missing something? Hopefully you can help us out here,

Hi @colinsgb

I’ve always run uSync Migrations on on v13, before you migrate to v17 as the Nested Content does not exist on v17. That has always worked for us.

The steps I follow are:

  1. Work with a copy of the live database
  2. Upgrade to the latest v13
  3. Install uSync Migrations
  4. Do a full uSync export
  5. Create a new migration and convert the files
  6. Import the schema first (it may require a restart)
  7. Import the content next
  8. Check Nested Content is now Block List

You will also need to migrate macros to RTE blocks if you have them as well.

Once done, then migrate to v17.

I’m aware there is a newer version for uSync Migrations for v17 but I’ve not tried that - I’ve always used the older one on v13.

Justin

Hi Justin,

We can try that, but we did not find a uSync Migrations package that runs on Umbraco v13? Do you have a link or repo of that one? NuGet Gallery | uSync.Migrations 17.0.2

Hi @colinsgb

It was a pre-release so never had a final version but worked fine. You will need to tick the option to show pre-releases in Nuget.

Justin

I have done the same thing with uSync.Migrations 4.0.0 and it worked great 13 > 17.