Code: Select all
IOrderItem pmts = (IOrderItem)loan.GetProperty("Payments");
if ((Int32)nms.PAYDATE.Year > 1900 && (Int32)nms.PAYDATE.Year < 2100)
{
pmts.SetProperty("FirstPaymentDate", Date.Parse(nms.PAYDATE.ToShortDateString()));
}
os.ApplyChanges(order);
Order42153 HUD C014
SoftPro.ClientModel.ValidationException: Value must be between -999 and 999.
---> System.Exception: Value must be between -999 and 999.
at SoftPro.ClientModel.Validations.ValidationAttribute.Validate(ValidationContext contextMode, ValidationAttribute[] constraints, ITypeDescriptorContext context, Object value)
at SoftPro.EntityModel.ValidationConstraintInstance.Check(Object value)
--- End of inner exception stack trace ---
at SoftPro.EntityModel.ValidationConstraintInstance.Check(Object value)
at SoftPro.EntityModel.EntityExecutionContext.CheckConstraints()
at SoftPro.EntityModel.EntityExecutionContext.Dispose(Boolean completed)
at SoftPro.EntityModel.EntityExecutionContext.Scope.Dispose()
at SoftPro.EntityModel.Entity`1.SoftPro.EntityModel.IEntity.SetProperty(String path, Object value)
at LoanPayments.SoftPro.OrderTracking.Client.Orders.IOrderItem.SetProperty(String , Object )
at SoftProConversion.Form1.CreateOrder() in C:\dev\SoftProConversion\SoftProConversion\Form1.cs:line 4707
Successfully connected to SoftPro Select Server
I do not quite get why. What is causing this strange error?