I tried to update a db from v 7.115.1 to 8.1.1 (through 4.11.10 and 7.7.13) but the update fails with the following error:
The database failed to upgrade. ERROR: The database configuration failed with the following message: Cannot insert the value NULL into column 'versionId', table 'brandtoolboxUmb7.14.dbo.cmsPropertyData'; column does not allow nulls. UPDATE fails. The statement has been terminated. Please check log file for additional information (can be found in '/AppData/Logs/')
Does anyone know how to fix this and complete the upgrade?
This probably means that you have rows in cmsPropertyData where the versionId doesn't exist in cmsContentVersion.
The migration wants to change versionId to be an integer rather than a GUID. If the GUID doesn't exist in cmsContentVersion then it has no integer ID to use for that version, and ends up trying to assign a null value.
Experiencing the same issue on a v7 > v8 migration, last answer from Steve didn't really fix it, don't have any version in cmsPropertyData that doesn't exist in cmsContentVersion. Completely blocked at migration...
If you're getting a timeout error rather than just seeing the migration stall for a long time, you'll probably also need to add a large Connection Timeout value to your connection string.
That should get you past the current problem. You may still run into other slow-running parts of the migration. Which property editors you use can affect how much work the migrations need to do.
Thanks Steve, i got past it by doing that then got stuck again :(
I have found doing the updates / drops myself quite useful so far, like this one which was next to get stuck -
UPDATE cmsPropertyData SET versionId2=cmsContentVersion.id FROM cmsContentVersion INNER JOIN cmsPropertyData ON cmsContentVersion.versionId = cmsPropertyData.versionId
{"@t":"2020-02-20T15:00:10.4822147Z","@mt":"SQL [{ContextIndex}]: {Sql}","ContextIndex":4197,"Sql":"ALTER TABLE [cmsContentVersion] DROP COLUMN [ContentId];","SourceContext":"Umbraco.Core.Migrations.Expressions.Delete.Expressions.DeleteColumnExpression","ProcessId":8356,"ProcessName":"iisexpress","ThreadId":5,"AppDomainId":2,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"LAPTOP","Log4NetLevel":"INFO ","HttpRequestNumber":7,"HttpRequestId":"bb149359-90b8-4804-afad-25bb82cdd03f"}
So i will wait to see if you's figure it out there!
I was trying Umbraco 7.14 to 8.5.3 at first then 7.15.3 to 8.5.3 then started again with 7.15.3 to 8.1.5 (as the docs refer to 8.1x for upgrades) and 8.1 seems to get stuck less, so not sure what's best v8 to go for.
Update to Umbraco 7.15.1 -> 8.1.1 Fails
Hello.
I tried to update a db from v 7.115.1 to 8.1.1 (through 4.11.10 and 7.7.13) but the update fails with the following error:
The database failed to upgrade. ERROR: The database configuration failed with the following message: Cannot insert the value NULL into column 'versionId', table 'brandtoolboxUmb7.14.dbo.cmsPropertyData'; column does not allow nulls. UPDATE fails. The statement has been terminated. Please check log file for additional information (can be found in '/AppData/Logs/')
Does anyone know how to fix this and complete the upgrade?
Thank you
I’m having a similar problem migrating database tables from v7 to v8. I believe this is a known migration issue.
Does anyone know when there will be a fix for migration issue?
This probably means that you have rows in cmsPropertyData where the versionId doesn't exist in cmsContentVersion.
The migration wants to change versionId to be an integer rather than a GUID. If the GUID doesn't exist in cmsContentVersion then it has no integer ID to use for that version, and ends up trying to assign a null value.
Experiencing the same issue on a v7 > v8 migration, last answer from Steve didn't really fix it, don't have any version in cmsPropertyData that doesn't exist in cmsContentVersion. Completely blocked at migration...
--Dirk
Did you even get the upgrade working? I have the same issue.
Its timing out at this line.
There are some big speed improvements on the way for migrations, but I think they'll be in the 8.7.0 release.
You can speed up that step by renaming the
dataNtext
column yourself before running the migration:sp_rename 'cmsPropertyData.dataNtext', 'textValue', 'COLUMN'
If you're getting a timeout error rather than just seeing the migration stall for a long time, you'll probably also need to add a large
Connection Timeout
value to your connection string.That should get you past the current problem. You may still run into other slow-running parts of the migration. Which property editors you use can affect how much work the migrations need to do.
Thanks Steve, i got past it by doing that then got stuck again :(
I have found doing the updates / drops myself quite useful so far, like this one which was next to get stuck -
Then I could drop the versionId column manually.
Now im stuck on the same as this post - https://our.umbraco.com/forum/using-umbraco-and-getting-started/100594-migration-from-714-to-8
So i will wait to see if you's figure it out there!
I was trying Umbraco 7.14 to 8.5.3 at first then 7.15.3 to 8.5.3 then started again with 7.15.3 to 8.1.5 (as the docs refer to 8.1x for upgrades) and 8.1 seems to get stuck less, so not sure what's best v8 to go for.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.