Try our conversational search powered by Generative AI!

Upgrading Commerce: Migration failure on Serializable Cart. Upgrading from version 11.2.6 to version 13.3.1

Vote:
 

The migration seems to be failing when trying to migrate the carts over to the new version.

3:31:05 PM: Completed migration step: Migrates existing serializable carts.

3:31:05 PM: Failed to migrate existing serializable carts: System.NullReferenceException: Object reference not set to an instance of an object. at EPiServer.Commerce.Serialization.Json.HashTableJsonConverter.ReadHashtableItem(JsonReader reader, Hashtable hashTable, JsonSerializer serializer) at EPiServer.Commerce.Serialization.Json.HashTableJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at EPiServer.Commerce.Order.Internal.DataAccess.SerializableCartDB.CreateCarts(DataTable cartData) at EPiServer.Commerce.Order.Internal.DataAccess.SerializableCartDB.FindCarts(CartFilter cartFilter) at EPiServer.Commerce.Internal.Migration.Steps.MigrateExistingSerializableCartsStep.Execute(IProgressMessenger progressMessenger)

3:31:05 PM: Start migrating serializable carts...

3:31:05 PM: Starting migration step: Migrates existing serializable carts.

Has anyone had an issue like this? Is there any way to get more details on this error?

#207215
Edited, Sep 12, 2019 23:30
Vote:
 

https://www.dropbox.com/s/nbwhdzd842wx9vw/EPiServer.Business.Commerce.pdb?dl=0

If you drop this into your bin folder and try again, the exception stacktrace will contain the line number which would be helpful to pinpoint the problem

#207221
Sep 13, 2019 10:13
Vote:
 

Hey Quan, I am still seeing the same error message when looking at the migrate logs after adding this .pdb. What else can I do to get a more detailed error log message here?

#207235
Sep 13, 2019 18:28
Vote:
 

If you look closer it comes with the line number. That would help us to identify the issue easier

#207236
Sep 13, 2019 19:42
Vote:
 

I dropped that file in the bin folder but the error message is unchanged, no line number is showing up. I am curious to know if there is just a way to delete the serializable carts, or should I just disable the auto migration of them.

#207434
Sep 19, 2019 19:05
Vote:
 

Strange. I'd suggest to contact developer support service. it would be interesting to look into your carts. 

#207449
Sep 19, 2019 22:31
* 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.