We have an initialization module which makes the following call to configure the commerce routing:
But it's blowing up with the following error:
[ContentNotFoundException: Content with id -1073741823__CatalogContent was not found]
EPiServer.Core.DefaultContentLoader.Get(ContentReference contentLink, LoaderOptions loaderOptions) +622
EPiServer.Commerce.Routing.CatalogRouteHelper.MapDefaultHierarchialRouter(RouteCollection routes, Func`1 startingPoint, Boolean enableOutgoingSeoUri) +289
Braun.Web.Business.Initialization.FindCommerceInitializationModule.Initialize(InitializationEngine context) in C:\Dev\Git\braun\src\Braun.Web\Business\Initialization\FindCommerceInitializationModule.cs:55
EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +56
This suggests that the content loader isn't yet available, however the init module already has a module dependency:
public class FindCommerceInitializationModule : IConfigurableModule
Any idea what could be going wrong?
This was registered as a bug and was fixed in Commerce. It's likely to be released in Commerce 9.22 - so I would suggest you to upgrade to that version when it comes out.
OK will do.
Yes, that fixed it - thanks