We customized the HH screen for inventory transfers. It basically allows the user to type in a Serial Number on the main screen to speed up the process. This works in 10.1 but broke in 10.2. I got it to where it creates the transfer and saves the Serial Number to the databasebase but throws an error after it completes. I tried inserting values to all the UOM tied to the view but nothing worked. I also read you can get error if you try to specify the QTY before the Part/UOM but I didn’t get anywhere.
Application Error
Exception caught in: Ice.Lib.EpiClientLib
Error Detail
============
##!Message:##! Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.
##!Program:##! Ice.Lib.EpiClientLib.dll
##!Method:##! setFormatForUOMCode
Client Stack Trace
==================
at Ice.Lib.Framework.EpiNumericEditor.setFormatForUOMCode(Boolean setToResolvedFormat)
at Ice.Lib.Framework.EpiNumericEditor.oDataView_EpiViewNotification(EpiDataView view, EpiNotifyArgs ar)
at Ice.Lib.Framework.EpiViewNotification.Invoke(EpiDataView view, EpiNotifyArgs args)
at Ice.Lib.Framework.EpiDataView.OnEpiViewNotification(EpiNotifyArgs e)
at Ice.Lib.Framework.EpiDataView.Notify(EpiNotifyArgs args)
at Erp.UI.App.HHInvTransferEntry.Transaction.TransferQtyUOMColumnChangingEvent(DataColumnChangeEventArgs e)
at Erp.UI.App.HHInvTransferEntry.Transaction.Table_ColumnChanging(Object sender, DataColumnChangeEventArgs e)
at System.Data.DataTable.OnColumnChanging(DataColumnChangeEventArgs e)
at Erp.BO.InvTransferDataSet.InvTransDataTable.OnColumnChanging(DataColumnChangeEventArgs e)
at System.Data.DataRow.set_Item(DataColumn column, Object value)
at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
at System.Data.DataRowView.set_Item(String property, Object value)
at Script.txtUM_TextChanged(Object sender, EventArgs args)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at Ice.Lib.Framework.EpiTextBox.OnTextChanged(EventArgs e)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.OnValueChanged(EventArgs args)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.OnValueChanged(Object sender, EventArgs args)
at Infragistics.Win.EmbeddableEditorBase.RaiseValueChangedEvent()
at Infragistics.Win.EditorWithText.SetEditorValueInternal(Object newVal)
at Infragistics.Win.EditorWithText.set_Value(Object value)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.set_Text(String value)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.set_Value(Object value)
at Script.txtUM_TextChanged(Object sender, EventArgs args)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at Ice.Lib.Framework.EpiTextBox.OnTextChanged(EventArgs e)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.set_Text(String value)
at Ice.Lib.Framework.EpiTextBox.TextValidate(Object sender, CancelEventArgs ea)
at System.Windows.Forms.Control.OnValidating(CancelEventArgs e)
at Ice.Lib.Framework.EpiTextBox.OnValidating(CancelEventArgs e)
at System.Windows.Forms.Control.NotifyValidating()
at System.Windows.Forms.Control.PerformControlValidation(Boolean bulkValidation)
at System.Windows.Forms.ContainerControl.ValidateThroughAncestor(Control ancestorControl, Boolean preventFocusChangeOnError)
at System.Windows.Forms.ContainerControl.EnterValidation(Control enterControl)
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
at System.Windows.Forms.ContainerControl.AssignActiveControlInternal(Control value)
at System.Windows.Forms.ContainerControl.ActivateControlInternal(Control control, Boolean originator)
at System.Windows.Forms.ContainerControl.ActivateControlInternal(Control control)
at System.Windows.Forms.Control.WmSetFocus(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
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)