NullReferenceException when accessing Catalog content items after upgrade to commerce 7.12 (latest 7.x version)

Vote:
 

After upgrading the CMS to 7.19 and Commerce to version 7.12, it all works perfectly except when trying to access the catalog items. This happens either when using the API (code below), as well as through the Commerce Catalog backoffice page.

_contentRepository.GetItems(_contentRepository.GetDescendents(catalogRoot.ContentLink), LanguageSelector.AutoDetect())

The error is the following:

[NullReferenceException: Object reference not set to an instance of an object.]
EPiServer.Commerce.Catalog.Provider.Construction.CatalogPropertyLoader.AddSeoPropertyValues(CatalogItemSeoRow seoRow, NodeContent content) +81
EPiServer.Commerce.Catalog.Provider.Construction.CatalogPropertyLoader.LoadProperties(CatalogNodeRow nodeRow, CatalogItemSeoRow seoRow, NodeContent content) +150
EPiServer.Commerce.Catalog.Provider.Construction.NodeBuilder.Create(IList`1 contentLinks, String language) +1326
EPiServer.Commerce.Catalog.Provider.CatalogContentLoader.GetContentFromBuilder(String language, IEnumerable`1 linkByType) +425
EPiServer.Commerce.Catalog.Provider.CatalogContentLoader.GetItems(IList`1 contentLinks, String language, IMarket market) +642
EPiServer.Commerce.Catalog.Provider.CatalogContentDraftStore.GetCommittedContents(IList`1 contentLinks, String language) +79
EPiServer.Commerce.Catalog.Provider.CatalogContentDraftStore.GetItems(IList`1 contentLinks, String language) +384
EPiServer.Core.ContentProvider.GetScatteredContents(IEnumerable`1 contentLinks, ILanguageSelector selector) +579
EPiServer.Core.ContentProvider.LoadBatched(IList`1 contentReferences, ILanguageSelector selector) +49
EPiServer.Core.DefaultContentLoader.GetChildren(ContentReference contentLink, LoaderSettings loaderSettings, Int32 startIndex, Int32 maxRows) +1825
EPiServer.Core.DefaultContentLoader.GetChildren(ContentReference contentLink, LoaderSettings loaderSettings) +98

It looks to be a data issue. Has this happened to anyone?

#195271
Jul 19, 2018 7:19
Vote:
 

I wanted to help but 7.12 is just too old for me to provide any helpful suggestion. Mind you it's 4 years old now. If you can (convince your boss), I would suggest to try to upgrade to latest version.

Revelant blog post: https://vimvq1987.com/why-you-should-upgrade-to-the-latest-version/ 

#195272
Jul 19, 2018 8:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.