Upgrade from Umbraco 7 to 16 issues with RTE data going missing

Hi everyone,
I’m looking for your thoughts on something that seems to be causing us some issues.

We have a couple of websites that were originally built on Umbraco 7 and have been upgraded to Umbraco 13.

Now when we try and upgrade to v16 we lose all RTE data from the backoffice and the database.

The sites have Nested Content and TinyMCE RTEs. Even if we go and step from U13 → U14 → U15 → 16, the RTE data is lost. We have even tried converting all Nested Content to Block List and then run upgrades but the RTE still get wiped out as soon as we leave U13.

It feels like this upgrade issue would have been encountered by people in the past but I’ve not heard anything or can’t find anything similar.

Any thoughts on what might be causing this / how we can fix it. Just now one of our devs is writing a massive SQL statement to convert the data (I don’t have much more info about this just now).

Do you know which version in your step-by-step migration loses the data? Are you using the latest minor of each major version?

As a more tried-and-tested migration process you could use uSync Content to backup and restore the content at the breaking version rather than scripting it yourselves? Depending which version causes the issue, you may not need to use uSync Migrations.

It breaks as soon as we leave U13 latest and ye, gone from latest to latest minor of the major.

Ok, so I’ve just upgraded a site from U13 → U17, just the database for now but everything works as expected so it seems like maybe some custom code has changed the RTE content in such a way that upgrades don’t like it and so just delete it.
It’s odd and not sure what is going on.

So it turns out that there was a custom notification handler that was changing the format of the RTE content in the database. Basically dropping pure HTML in, instead of it being wrapped in a json blob.

We removed the handler and resaved all the content, letting Umbraco do it’s thing and that fixed the DB and then the upgrade / migrations were able to do there thing!

We found this out after I upgraded a similar sites database in a couple of hours with no issues. :slight_smile: