Technical support This forum is closed.
Version 1.x > Technical support > DB / Conf files out of sync View modes: 
User avatar
Member
Member
cpaul - 12/31/2005 12:11:19 AM
   
DB / Conf files out of sync
My installation has gotten out of sync after restoring a database from backup. I then tried to add a class, and have errors when I add new content of that type. The exception I get is below, but I can't find any reference to it in the db or the /Metadata conf files, but I imagine I'm not looking in the right place. Any ideas where to fix this?

Column 'UpsellingFrom' does not belong to table Table1.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Column 'UpsellingFrom' does not belong to table Table1.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Column 'UpsellingFrom' does not belong to table Table1.]
System.Data.DataRow.get_Item(String columnName) +121
Kentico.CMS.Form.BasicForm.GetDataRowValue(XmlNode formNode)
Kentico.CMS.Form.BasicForm.LoadData(DataRow dr)
Kentico.CMS.Form.BasicForm.CreateChildControls()
System.Web.UI.Control.EnsureChildControls() +100
System.Web.UI.Control.PreRenderRecursiveInternal() +38
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499

User avatar
Guest
admin - 12/31/2005 12:51:39 PM
   
Re: DB / Conf files out of sync
Hi Chip,

Does this error occur when editing an item? If so, you may want to see the metadata for the appropriate document type.

Some minor differences can be fixed if you go to the Development section and add and remove some temporary attribute for this document type. The system will regenerate some of the metadata files.

We plan to move such settings to the database in Kentico CMS 2.0 which should fix similar issues.

Best Regards,

User avatar
Member
Member
cpaul - 1/3/2006 6:01:29 PM
   
Re: DB / Conf files out of sync
Yes, the error occurs when adding the item - I don't have an existing one to edit yet.

Settings in the DB and less reliance on those conf files would be GREAT!

I'll add and remove an attribute and see if that fixes it.