Try our conversational search powered by Generative AI!

Unclear exception message when migration has not been performed

Found in

EPiServer.Commerce 8.16

Created

Sep 03, 2015

Updated

Oct 09, 2015

Area

Falcon/Commerce

State

Closed, Fixed and Tested


Steps to reproduce

When a site is started in a state that requires migration, but the UI package is not installed, the site automigrates if that is configured, or throws an exception if it is not. The exception message is "The site has migration steps that have not been completed. Unless MigrationSettings.AutoMigrate is enabled, the steps needs to be started on a site that has the EPiServer.Commerce.UI package installed."


The message referes to the EPiServer.Commerce.Internal.Migration.MigrationSettings class without full namespace which could make it hard to find. Futher, the documentation for the AutoMigrate property is wrong, it states the wrong name for the appSetting used ("AutoMigrate", the correct is "AutoMigrateEPiServer"). 

The exception message should probably be even more explicit and mention both the options of setting the AutoMigrateEPiServer appSetting and setting MigrationSettings.AutoMigrate from an initialization module.