Updating namespace of PropertyList<TCustom> that has instances with data bricks system during ModelSyncInitialization

Hi there,

I'm from Developer Support Hà Nội, 

Our partner has an issue when they update namespace of PropertyList. 

with content:

Updating namespace of PropertyList

It seems that the property definition type name in the database is not updated correctly with the new namespace.

Stack trace: 
[JsonReaderException: Unexpected character encountered while parsing value: [. Path '', line 1, position 1.] 
Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) +1795 
Newtonsoft.Json.JsonTextReader.ReadAsString() +14 
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter) +239 
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) +710 
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +276 
EPiServer.Framework.Serialization.Json.Internal.JsonObjectSerializer.Deserialize(TextReader reader, Type objectType) +68 
EPiServer.Framework.Serialization.ObjectSerializerExtensions.Deserialize(IObjectSerializer serializer, String value, Type objectType) +106 
EPiServer.DataAccess.Internal.LazyPropertyValueLoader.SetValue(PropertyData property, PropertyDataRecord dataRecord, Func`3 valueConverter) +330 
EPiServer.DataAccess.Internal.ContentLoadDB.LoadContentInternal(ContentReference contentLink, Int32 languageBranchId, DbDataReader reader) +1078 
EPiServer.DataAccess.Internal.<>c__DisplayClass4_0.

So, Could we fix it in the next version?

#181277
Aug 15, 2017 13:32

+1

Also had issues with this earlier. Had to update the namespace in the db to fix it :/

#181342
Aug 16, 2017 15:08

I seem to having this issue after some refactoring, but I can´t find my property lists in the database, can you point me in the right direction? I´ve checked several tables but I think they should be in the table tblContentType because that´s where I found page types, block types etc, but can´t find my property lists. Isn´t that weird?

Thanks!

#182545
Sep 22, 2017 12:41

Hi Petra, we had to change the table with name "tblPropertyDefinitionType". We updated the AssemblyName column to point to the new namespace after refactoring

#182546
Sep 22, 2017 12:50

I didn´t work fully for us though and instead of troubleshooting it further (time constraints) we took a database copy from production since we needed a database with fresh content anyway.

Definitely learned something though! Thanks!

#182589
Sep 25, 2017 16:55
error This thread is locked and should be used for reference only.
* 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.