So it looks like the problem is not due to the prder data itself, it may be caused by some corrupted state in SoftPro, the error message may not be accurate about the error.Error: Trying to get data from a disposed business object!
[Error executing business rule 'SoftPro.BusinessRules.Core.PayeeAggregator'
[Error executing business rule 'SoftPro.BusinessRules.Core.FindProrationCharge'
Another thing I found is that when this type of error ocurrs, the orderNumber we use for the call got saved into PendingOrder table and locked (I have to delete it from the table to re-run the request).
Code: Select all
using (IOrder order = ot.CreateOrder())
{
try
{
}
finally
{
// This MUST be called to release any locks on the order.
ot.CloseOrder(order);
}
}
So my questions are:
1) What happened that caused this type of errors, what can I do cleanly handle the errors?
2) Even though the order has been closed in the Finally block, why the state cannot be cleanly cleared? Why the order number still get locked?
Thanks.
Kevin