Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Content not found exception.

Vote:
 

Hi All

I am getting content not found exception for one particular category attached to the blogs/articles and because of this the page is going into 500 error.

When am checking the logs it showing 15422 content id is missing.

Thanks

#151855
Aug 09, 2016 8:35
Vote:
 

Does the content with id 15422 exist?

Probably this content is deleted and there is a reference to this content in a property or something, Episerver will then throw an exception with following message: "Content with id x was not found".

Go through your properties (and dynamic properties if any) and check if there are any reference to this content.

#151859
Aug 09, 2016 9:54
Vote:
 

Yes i have checked and this ID no more exist in the database. This has been deleted.

I have checked all the dependent tables and didnt find any clue from where it is coming.

BTW, which properties you are talking about.

#151862
Aug 09, 2016 10:53
Vote:
 

Properties in episerver. The page you are getting 500 error on is probably trying to get the content with id 15422 which is deleted and cannot be found. You need to find out where it tries to get this content from and my tips is that there is an reference somewhere in your properties in episerver which referes to content id 15422 (which does not exist anymore).

Try to debug your code and set exception settings to break on all exceptions to see where it fails (https://msdn.microsoft.com/en-us/library/x85tt0dd.aspx)

#151864
Aug 09, 2016 11:15
Vote:
 

Hi Tim Røgler  

I believe its loading from cache . Do you have any idea how to clear cache.

One more thing this is happening only in PROD site. So debugging is not so easy.

Thanks

#151868
Aug 09, 2016 12:43
Vote:
 

You can try to re-publish the page or if you use epi find; re-index the site.

If you have access to create a backup of the prod database, try use it locally and debug to see if you get the same error.

#151881
Aug 09, 2016 15:39
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.