Trouble loading Episerver Find UI

Mari Jørgensen 2017-08-06 17:03:48

Find UI

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

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;
}
}