ISSUE:

When getting this error in the log file for JOScan or WOScan the issue is to do with the .SDF file on the reporting workstation client.  

 

Example:

DateTime: 3/1/2019 7:36:30 AM Class Name: ThrowKeyNotFoundException Method Name: System.ThrowHelper Message: The given key was not present in the dictionary.
Message: The given key was not present in the dictionary., Stack: at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at JDB.WorkOrder.DataAccess.Facade.ConfigFacade.GetBool(String key)
at JDB.WorkOrder.DesktopClient.UserControls.Review.ReviewFormWorkOrder.materialIssuePage_ClickEvent(Object sender, DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.OnMouseClick(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.WndProc(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)

 

Solution: 

  1. Copy  the setting off of the device or Make Notes of them.  
  2. Rename the .SDF file in the DATA folder (woscan) in JOScan directory (JOScan)
  3. Open the app and the .SDF will recreate
  4. Reapply settings