Kontakt oss
Tilbake til bloggen
Innsikt

Trouble loading Episerver Find UI

Recently I came across a strange error where the Find UI inside Episerver CMS failed to load. All of the three menu items returned a "Error reading configuration" error message. This is a (really) short blog post describing how this issue can be resolved.

Mari Jørgensen 5 min lesetid
Trouble loading Episerver Find UI

Recently I came across a strange error where the Find UI inside Episerver CMS failed to load. All of the three menu items returned a "Error reading configuration" error message. This is a (really) short blog post describing how this issue can be resolved.

Find UI

Here is how the Find "Overview" UI looked like:

Episerver Find UI error screenshot

By looking at the dojo errors in the console I could see that the error occured when Episerver tried to load Search Providers from the Dynamic DataStore. 

The solution

The issue was resolved by remapping the Dynamic DataStore types.
Basically you should create an admin tool that runs the following code: 

 var _dataStoreProviderFactory = ServiceLocator.Current.GetInstance<IDataStoreProviderFactory>();
foreach (var storeDefinition in StoreDefinition.GetAll())
{
try
{
var type = TypeResolver.GetType(storeDefinition.StoreName);
if (type != null)
{
storeDefinition.Remap(type);
storeDefinition.CommitChanges();
}
else
{
var provider = _dataStoreProviderFactory.Create();
provider.SaveStoreDefinition(storeDefinition);
}
}
catch (Exception ex)
{
var error = ex.Message;
}
}

Hold deg oppdatert på fremtidens e-handel

Ukentlige analyser, trender og praktiske råd — kun det vi selv ville lest.