November Happy Hour will be moved to Thursday December 5th.

Unable to set culture specific to false on the property

Vote:
 

I'm getting the following error message when my Episerver solution starts up

2016-07-06 16:19:33,586 [1] ERROR EPiServer.DataAbstraction.RuntimeModel.ModelMerger: Unable to set culture specific to false on the property BodyText. Doing so would have deleted content from the database.
2016-07-06 16:19:33,743 [1] ERROR EPiServer.DataAbstraction.RuntimeModel.ModelMerger: Unable to set culture specific to false on the property TopContentArea. Doing so would have deleted content from the database.
2016-07-06 16:19:33,777 [1] ERROR EPiServer.DataAbstraction.RuntimeModel.ModelMerger: Unable to set culture specific to false on the property MainContentArea. Doing so would have deleted content from the database.

Im not setting CultureSpecific attribute in my C# Models, although allowing the client to control this via Admin Mode of Episerver. Are these errors due to Episerver trying to Synch the Models to the Content types ? Can they safely be ignored or should i always explicitly set the Culture Specific attribute to my Properties in Code ?

#151013
Jul 06, 2016 17:33
Vote:
 

Episerver is very careful to update things that are changed in the admin mode.

if you truly want to have your properties non-CultureSpecific, go to admin and reset your property. Note that if your editor has translated those properties, those translations will be removed and the content will start using the master language properties.

if it's ok that these properties are culturespecific i would suggest that you add the attribute to your code to prevent those errors to appear in startup.

if you don't like your editors to fiddle with the content types, look at my blog post http://talk.alfnilsson.se/2014/02/04/change-how-your-episerver-contenttype-is-administered-with-administrationsettingsattribute

#151015
Jul 06, 2016 18:18
Vote:
 

Thank you for this we want to give the client the flexibility to  make properties Culture specific thus did not set any attributes into the Model,

#151016
Jul 06, 2016 18:22
Vote:
 

I see. If that's what you want, you can ignore those errors.

#151017
Jul 06, 2016 18:25
* 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.