Error opening up SoftPro order

Discussions related to custom development with Select.
Post Reply
mlevi
Posts: 53
Joined: Mon Dec 01, 2014 2:33 pm

Error opening up SoftPro order

Post by mlevi »

We are trying to open up an order from Web API action opening up the order and this is the error we are getting.
It seems to not be finding custom fields.
These are for orders that we created throught out order creation system on the shell package that we built through the API.


This is a copy of the stack trace:
System.IO.InvalidDataException: The field 'TaxGrossUp_121212#' does not exist on context 'Order'.
at SoftPro.EntityModel.FieldCollection.SoftPro.ClientModel.ICustomSerializable.Read(BinaryReader reader, ICustomSerializationSession session)
at SoftPro.EntityModel.Entity`1.OnDeserialize(BinaryReader reader, ICustomSerializationSession session)
at SoftPro.EntityModel.RootEntity`1.OnDeserialize(BinaryReader reader, ICustomSerializationSession session)
at SoftPro.OrderTracking.Client.Orders.OrderBase`1.OnDeserialize(BinaryReader reader, ICustomSerializationSession session)
at Order.OnDeserialize(BinaryReader , ICustomSerializationSession )
at SoftPro.EntityModel.Entity`1.Deserialize(BinaryReader reader, ICustomSerializationSession session)
at SoftPro.ClientModel.BinaryReaderExtensions.ReadComplex(BinaryReader reader, ICustomSerializationSession session)
at SoftPro.ClientModel.BinaryReaderExtensions.ReadObject[T](BinaryReader reader, ICustomSerializationSession session)
at SoftPro.EntityModel.EntityRuntime.Deserialize(Stream stream, Boolean readOnly)
at SoftPro.EntityModel.EntityRuntime.Load(Stream stream, SerializationFormat format, Boolean readOnly)
at SoftPro.OrderTracking.Client.Orders.OrderStoreProvider.Load(MemoryStream memory, OrderEditMode mode)
at SoftPro.OrderTracking.Client.Orders.OrderStore.OpenOrder(OrderIdentifier id, OrderEditMode mode)
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.OpenOrder(IOrderInfo orderInfo, OrderEditMode mode)
at Riverside.Services.Softpro.Order.ManageAttachments.GetSoftProFiles(Guid orderId, IEnumerable`1 files)
at Riverside.Services.Actions.SoftProOrderAttachments.<>c__DisplayClass4_0.b__1()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Error opening up SoftPro order

Post by BobRichards »

It appears that TaxGrossUp_121212# does not exist or it does exist and its context is NOT the Order.

Can you verify that the custom property TaxGrossUp_121212# shows up on the Order context in the Field Browser or SPAdmin. Examine that the Web API uses the same code to read/write the property as the Shell App. Is it possible that this property does not exist on this particular order?
Bob Richards, Senior Software Developer, SoftPro
Post Reply