SaaS CMS has officially launched! Learn more now.

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


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?

Edited, Sep 12, 2019 23:30

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

Sep 13, 2019 10:13

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?

Sep 13, 2019 18:28

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

Sep 13, 2019 19:42

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.

Sep 19, 2019 19:05

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

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.