Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi!
I have created a site with the latest Episerver CMS and Commerce versions. To set up the databases I'm simply running the following statements in the package manager.
I'm trying to programmatically create the entire catalog structure (catalog -> category -> product -> variation, but it fails rather quickly.
var rootLink = _referenceConverter.GetRootLink(); var catalog = _contentRepository.GetDefault(rootLink);
[ContentNotFoundException: Content with id -1073741823__CatalogContent was not found] EPiServer.Core.Internal.DefaultContentLoader.Get(ContentReference contentLink, LoaderOptions loaderOptions) +873 EPiServer.Core.Internal.DefaultContentLoader.Get(ContentReference contentLink) +189 EPiServer.Core.Internal.DefaultContentRepository.Get(ContentReference contentLink) +157 EPiServer.Core.Internal.DefaultContentRepository.GetDefault(ContentReference parentLink, Int32 contentTypeID, CultureInfo language) +371 EPiServer.Core.Internal.DefaultContentRepository.GetDefault(ContentReference parentLink, CultureInfo language) +506 EPiServer.Core.Internal.DefaultContentRepository.GetDefault(ContentReference parentLink) +144
Is there something obvious I'm doing wrong?