Skip to main content
Kofax

Table Header Pack cannot be displayed on certain systems. Error message: ************** Exception Text **************

20049

QAID # 20049 Published

Question / Problem:

Table Header Pack cannot be displayed on certain systems. Error message:

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.
at Kofax.ProjectBuilder.Legacy.DocumentViewerLegacy.get_ViewerWindow()
at Kofax.ProjectBuilder.Legacy.DocumentViewerLegacy.StartModal(Form form)
......
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How can this be fixed?

Answer / Solution:

The following procedure has been observed to resolve this issue:

  1. Select an image from test test set.
  2. Perform OCR.
  3. Open the image in Document Viewer.
  4. DOCK the viewer.
  5. Go to the Project Settings ¦ Tables
  6. Open the existing Header Pack or create a new one.

You should now experience no errors, and the Header Pack should work fine.

Example of a more complete error message:

************** Exception Text **************
​​​​​​​
System.NullReferenceException: Object reference not set to an instance of an object.
at Kofax.ProjectBuilder.Legacy.DocumentViewerLegacy.get_ViewerWindow()
at Kofax.ProjectBuilder.Legacy.DocumentViewerLegacy.StartModal(Form form)
at Kofax.ProjectBuilder.Legacy.ApplicationWindowLegacy.SetViewDocumentViewerControl(IViewerControl viewerControl)
at Kofax.ProjectBuilder.Legacy.ApplicationWindowLegacy.SetViewerControl(IViewerControl viewerControl)
at Kofax.ProjectExtension.ctlTableSettings.StartTrainingViewer(CscLanguagePackage oLP)
at Kofax.ProjectExtension.ctlTableSettings.DisplayLPDialog()
at Kofax.ProjectExtension.ctlTableSettings.utmLPs_ToolClick(Object sender, ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.DoClickProcessing(MouseEventArgs e) 
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(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.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)

Applies to:

Product Version Category
AXPRO 6.0 Project Builder
  • Was this article helpful?