Installation and deployment
Version 7.x > Installation and deployment > Custom Table - Xml Defintion no found View modes: 
User avatar
Member
Member
DahlinDev - 8/15/2013 11:23:35 AM
   
Custom Table - Xml Defintion no found
I created an Custom table in one environment. I updated the displayed fields for the data.
I also added data into the Custom Table.

I then exported this object and imported this into my live site.

When I try to view the data on the live site, Custom Table > My Custom Table > data (tab)

I get an error: XML Definition not found.

If I look directly in the database the table and data is there. I am guessing there needs to be some xml file for the displayed fields for this table that I need to move into the site files? Any idea where that is?

User image

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/15/2013 11:44:12 AM
   
RE:Custom Table - Xml Defintion no found
Run this query on both your test and live site. My guess is when the export took place it didn't get everthing it needed. Did you try exporting again?
select ClassXmlSchema, ClassFormDefinition, *
from CMS_Class
where ClassName = '<custom table code name>'
You should have some xml in both of the schema and definition fields on both systems. I think the one you are missing is the definition in this case.

User avatar
Member
Member
DahlinDev - 8/15/2013 11:45:35 AM
   
RE:Custom Table - Xml Defintion no found
Figured it out. I had nothing to do with the "Select Displayed Fields". Some how there was a missing site file.

CMSModules > CustomTables > Controls > CustomTableViewItem

When I restored that, it worked.