I am adding 3 new properties to my PurchaseOrder object and have gone through the process of adding the 3 new columns to the database table, updating the PurchaseOrder class and lastly the OrderObjectMappings.xml file to ensure the properties in the class map to the database correctly. It all appears correct but I get the following error when the mapping is attempted by commerce server:
[MappedClassDataMismatchException: Table PurchaseOrders column ConcessionOrder does not match expected column name MarshalledData defined in the mapping.]
Microsoft.CommerceServer.Runtime.Orders.POLoader.LoadFromDataSetHelper(DataSet dataSet, ClassInfo[] dependencyClassList, Int32 depClassListLen, Hashtable[] depInstanceLookup, BinaryFormatter formatter, String filter) +3406
Microsoft.CommerceServer.Runtime.Orders.POLoader.LoadFromDataSet(DataSet dataSet, OrderGroupCollection ogColl) +1080
Microsoft.CommerceServer.Runtime.Orders.POLoader.LoadSearchSet(Guid searchSetId, OrderGroupCollection ogc) +388
Microsoft.CommerceServer.Runtime.Orders.POLoader.Load(String storedProcName, ListDictionary sqlParameters) +458
Microsoft.CommerceServer.Runtime.Orders.OrderContext.GetPurchaseOrdersForUser(Guid userId) +352
ConcessionOrder is one of my new properties and appears correctly mapped in the xml file. Does anyone know of any obvious reason why this could be happening, something I have missed perhaps, another setting elsewhere?
Cheers, John