Umbraco Forms: The migration plan does not support migrating from state.
Has anyone come across this error before and know a fix? I've managed to whittle it down to Umbraco forms as when I remove the package the site boots successfully.
An unhandled exception occurred while processing the request.
BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
-> Umbraco.Cms.Core.Exceptions.BootFailedException: The migration plan does not support migrating from state "236973fb-2461-40d0-8e04-cb74e15481fa".
-> System.InvalidOperationException: The migration plan does not support migrating from state "236973fb-2461-40d0-8e04-cb74e15481fa".
at Umbraco.Cms.Infrastructure.Migrations.MigrationPlan.ThrowOnUnknownInitialState(String state)
at Umbraco.Cms.Infrastructure.Migrations.MigrationPlanExecutor.Execute(MigrationPlan plan, String fromState)
at Umbraco.Cms.Infrastructure.Migrations.Upgrade.Upgrader.Execute(IMigrationPlanExecutor migrationPlanExecutor, ICoreScopeProvider scopeProvider, IKeyValueService keyValueService)
at Umbraco.Cms.Infrastructure.Install.PackageMigrationRunner.RunPackagePlans(IEnumerable`1 plansToRun)
at Umbraco.Cms.Infrastructure.Install.UnattendedUpgrader.HandleAsync(RuntimeUnattendedUpgradeNotification notification, CancellationToken cancellationToken)
This usually happens for me when there's a mismatch between the Forms version and what version is saved in the DB. For example, having version 8.10 installed on your machine, then trying to use a DB that has version 8.12.
I have the same error, with this exact GUID.
I think this occurred when upgrading between umbraco 9 and 10
The umbracoKeyValue table has a row with this data:
This project has these nuget versions:
Umbraco.Cms: 10.4.0
Umbraco.Forms: 10.2.2
I tried upgrading Umbraco.Forms to 10.4.0 but this had no effect.
I tried upgrading Umbraco.Cms to 10.6.1 which seems to fix the issue.
Which leads me to believe a migration to migrate from 236973fb-2461-40d0-8e04-cb74e15481fa to the latest version was added in Umbraco.Cms somewhere between version 10.4.0 and 10.6.1
However, I don't see that GUID anywhere in the source code, nor has the row in the DB changed, so... 'shrug'
This error has returned, I'm not sure why.
I reverted the server in question to the release version that was previously running and now it has this error. unless there's some other DB field that is impacting this I don't understand how this error is triggered.
Once triggered it seems to be stuck like this.
NB: If I uninstall the Umbraco.Forms nuget package the error goes away.
If I set my guid to the last one in the list, then the issue is resolved.
To make sure I haven't missed any steps I temporarily reverted to Umbraco.Forms 10.2.2 and decompiling this also ends with the same step, so in this way you can work out which version ends at which guid and set yours correctly.
Even if you have different from/to versions you could work it out this way.
A bit late to this one but I still found a similar issue while migrating to Umbraco Cloud, so this might help someone in the future.
For the issue where the bootexception is "The migration plan does not support migrating from state ...."
There is a row in the database that needs to be removed, for Umbraco 13 (this maybe in the same place for any previous or future versions) it was in the table dbo.umbracoKeyValue
Remove the row Umbraco.Core.Upgrader.State+UmbracoForms
Umbraco Forms: The migration plan does not support migrating from state.
Has anyone come across this error before and know a fix? I've managed to whittle it down to Umbraco forms as when I remove the package the site boots successfully.
I've encountered the same problem. Did you end up finding a solution?
This usually happens for me when there's a mismatch between the Forms version and what version is saved in the DB. For example, having version 8.10 installed on your machine, then trying to use a DB that has version 8.12.
I have the same error, with this exact GUID. I think this occurred when upgrading between umbraco 9 and 10 The umbracoKeyValue table has a row with this data:
key:
Umbraco.Core.Upgrader.State+UmbracoForms
value:
236973fb-2461-40d0-8e04-cb74e15481fa
This project has these nuget versions:
Umbraco.Cms:
10.4.0
Umbraco.Forms:
10.2.2
I tried upgrading Umbraco.Forms to
10.4.0
but this had no effect. I tried upgrading Umbraco.Cms to10.6.1
which seems to fix the issue.Which leads me to believe a migration to migrate from
236973fb-2461-40d0-8e04-cb74e15481fa
to the latest version was added in Umbraco.Cms somewhere between version10.4.0
and10.6.1
However, I don't see that GUID anywhere in the source code, nor has the row in the DB changed, so... 'shrug'
This error has returned, I'm not sure why. I reverted the server in question to the release version that was previously running and now it has this error. unless there's some other DB field that is impacting this I don't understand how this error is triggered. Once triggered it seems to be stuck like this.
NB: If I uninstall the Umbraco.Forms nuget package the error goes away.
It's going back a while for me, but I had some success with deleting this entry from the table or clearing out the GUID.
Setting it to blank gives the same error but with an empty string instead of the GUID.
Resharper JetBrains decompiler found me this FormsMigrationPlan.cs in UmbracoForms 10.4.0
If I set my guid to the last one in the list, then the issue is resolved.
To make sure I haven't missed any steps I temporarily reverted to Umbraco.Forms 10.2.2 and decompiling this also ends with the same step, so in this way you can work out which version ends at which guid and set yours correctly.
Even if you have different from/to versions you could work it out this way.
A bit late to this one but I still found a similar issue while migrating to Umbraco Cloud, so this might help someone in the future.
For the issue where the bootexception is "The migration plan does not support migrating from state ...."
There is a row in the database that needs to be removed, for Umbraco 13 (this maybe in the same place for any previous or future versions) it was in the table dbo.umbracoKeyValue
Remove the row Umbraco.Core.Upgrader.State+UmbracoForms
Thanks Samr
That actually helped me to upgrade from 9.5.4 to 10.0.0,
is working on a reply...