I am facing a strange issue. When I create a sales order for a new customer on AX back office. I am unable to recall the sales order and the POS returns the below error message in the event viewer. However, once i run 1010 job and pull the customer information to channel DB, it works fine.
Error message on POS:
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.: System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
at System.Data.Entity.Internal.InternalContext.SaveChanges()
at System.Data.Entity.Internal.LazyInternalContext.SaveChanges()
at System.Data.Entity.DbContext.SaveChanges()
at Microsoft.Dynamics.Retail.Pos.DataManager.CustomerDataManager.SaveParties(IEnumerable`1 parties)
at Microsoft.Dynamics.Retail.Pos.SalesOrder.SalesOrder.GetCustomerFromAX(String accountNumber, ICustomerSystem customerSystem, CustomerDataManager customerDataManager)
at Microsoft.Dynamics.Retail.Pos.SalesOrder.SerializationHelper.GetTransactionFromInfo(CustomerOrderInfo orderInfo, SalesOrder salesOrderService)
at Microsoft.Dynamics.Retail.Pos.SalesOrder.SalesOrder.GetCustomerOrder(Boolean& retValue, String orderId, String& comment, IRetailTransaction& posTransaction)
at Microsoft.Dynamics.Retail.Pos.SalesOrder.WinFormsTouch.SalesOrderActions.GetCustomerOrder(String orderId, CustomerOrderType orderType, CustomerOrderMode forMode)
at Microsoft.Dynamics.Retail.Pos.SalesOrder.WinFormsTouch.frmGetSalesOrder.btnEdit_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam).
*This post is locked for comments
I have the same question (0)