SaaS CMS has officially launched! Learn more now.

Content with ID not found.

Vote:
 

Hi All

Am getting below exception when mapping to one particuler category landing page to a specific market.

EPiServer.Core.ContentNotFoundException
Content with id 15422 was not found

EPiServer.Core.ContentNotFoundException: Content with id 15422 was not found
at EPiServer.DataAccess.ContentLoadDB.LoadContentInternal(ContentReference contentLink, Int32 languageBranchId, DbDataReader reader)
at EPiServer.DataAccess.ContentLoadDB.<>c__DisplayClass1.b__0()
at EPiServer.Data.Providers.SqlDatabaseHandler.<>c__DisplayClass1`1.b__0()
at EPiServer.Data.Providers.SqlDeadlockRetryPolicy.Execute[TResult](Boolean isInTransaction, Func`1 method)
at EPiServer.Core.ContentProvider.<>c__DisplayClassf.b__d()
at EPiServer.Core.OptimisticCache`1.Read(String cacheKey, ReadAndCacheObject`1 readAndCacheObject)
at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)
at EPiServer.Core.ContentProvider.Load(ContentReference contentLink, ILanguageSelector selector)
at EPiServer.DataFactory.Get[T](ContentReference contentLink, ILanguageSelector languageSelector)
at EPiServer.DataFactory.Get[T](ContentReference contentLink)
at POSSIBLE.ProfiledContentRepository.ProfiledContentRepository.Get[T](ContentReference contentLink)
at Reebok.Web.Definitions.Util.Brand.Helpers.ArticleListingHelper.ListArticlesHelper.b__6(ArticlePage p) in e:\BuildAgent\work\1761b90b63b765eb\XXX.Web.Definitions\Util\Brand\Helpers\ArticleListingHelper\ListArticlesHelper.cs:line 66
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at XXX.Web.Definitions.Util.Brand.Helpers.ArticleListingHelper.ListArticlesHelper.CreateArticlesObject(ArticlePage[] articles, ICategory category, Int32 page, Int32 take) in e:\BuildAgent\work\1761b90b63b765eb\XXX.Web.Definitions\Util\Brand\Helpers\ArticleListingHelper\ListArticlesHelper.cs:line 63
at XXX.Web.Views.Brand.Pages.Articles.ArticlePageTemplate.Page_Load(Object sender, EventArgs e) in e:\BuildAgent\work\1761b90b63b765eb\XXX.Web\Views\Brand\Pages\Articles\ArticlePageTemplate.aspx.cs:line 45

#151917
Aug 10, 2016 11:10
Vote:
 

Hi,

It seem like your passing in data to the Web.Definitions.Util.Brand.Helpers.ArticleListingHelper.ListArticlesHelper.CreateArticlesObject function that is not valid. Have you put a breakpoint in this method and checked what kind of data you're passing in to the method?

The error is quite obvious, the page/content with ID 15422 doesn't exist anymore.

#151934
Aug 10, 2016 15:10
Vote:
 

Hi Johan Petersson 

I have chcked the database and their is no content with that ID.

This content is deleted but still it is taking reference of that content.

Dont from where it is taking. 

#151943
Aug 10, 2016 18:08
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.