IBM Support

IBM i2 Analyst's Notebook crashes when trying to map chart items to Google Earth



Getting error “Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue” when trying to map chart items to Google Earth.


IBM i2 Analyst's Notebook (ANB)crashes with the following error message.

******************************* Details of the error message ********************************
Microsoft .Net Framework
Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

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

System.InvalidCastException: Unable to cast COM object of type 'EARTHLib.ApplicationGEClass' to interface type 'EARTHLib.IApplicationGE'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2830837B-D4E8-48C6-B6EE-04633372ABE4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)

at EARTHLib.ApplicationGEClass.IsInitialized()

at i2.Notebook.Tasks.MapChartItems.Mapping.Mapper.InitializeGoogleEarth(Boolean& newInstanceCreated)

at i2.Notebook.Tasks.MapChartItems.Mapping.Mapper.GenerateKmz(Boolean initializeGoogleEarth, String chartKey, Boolean surpressMessages, Boolean sendToGoogleEarth)

at i2.Notebook.Tasks.MapChartItems.Mapping.Mapper.GenerateKmz(String chartKey, Boolean sendToGoogleEarth)

at i2.Notebook.Tasks.MapChartItems.MappingControl.MappingController.GenerateMappingDataFiles(String chartKey, LNChart currentChart, Boolean sendToGoogleEarth)

at i2.Notebook.Tasks.MapChartItems.MappingControl.MappingController.GenerateMappingDataFilesForExtractedItems(LNChart currentChart, ICollection`1 extractedAnbDataList, IEnumerable`1 links, Boolean sendToGoogleEarth)

at i2.Notebook.Tasks.MapChartItems.MappingControl.MappingController.GenerateGoogleEarthMappingDataFiles(LNChart currentChart, Boolean sendToGoogleEarth)

at i2.Notebook.Tasks.MapChartItems.ToolbarControl.GenerateMappingData(Boolean sendToGoogleEarth)

at i2.Notebook.Tasks.MapChartItems.ToolbarControl.btnSendToMap_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at i2.Notebook.Support.ThemedTaskButtonBase.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.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.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)

************** Loaded Assemblies **************


Assembly Version:


For versions of Google earth released before 12th December 2015: The problem could be caused if the Google Earth installation has become corrupt or the Google Earth executable may not have been registered properly. A repair may resolve the issue.
For versions of Google earth released after 12th December 2015. Google deprecated the Google Earth API used by Analysts notebook. Below are the Google earth versions tested, known to be compatible/not compatible with ANB:

GE v - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]

GE v - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]

Google Earth Pro

v - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
v - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]

v 7.3.1 (32-bit) - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
v 7.3.1 (64-bit) - [NOT COMPATIBLE]

When you search for Google Earth download, the default drop page offers the download of v7.3.1 (64-bit) which does not work with ANB. To get a compatible version, you have to navigate to the "Direct Installers page" (found here:
For all the compatible versions, you have to manually register the Google Earth executable:
- goto GE's install folder using the Command Prompt
- run/execute the following "GoogleEarth.exe /regserver"

If a later compatible version of Google Earth is not available then as an alternative, instead use the Map chart items to Esri feature introduced in Analysts notebook 9.0.5 or later

Resolving The Problem

Try repairing the Google Earth installation by following the steps below
  1. Click on Start => Control Panel => Program and Features.
  2. In the list of installed programs, highlight Google Earth then click on 'Repair'.
  3. Follow the instructions and complete the repair process.
  4. Once it's completed, shutdown and restart the machine.

If the issue still exist after repairing the Google Earth installation then try to register the Google Earth executable. Here's how you can do that;
  1. Check in which directory the Google Earth program is installed and make note of it.
  2. Click on Start => All Programs => Accessories
  3. Right click on the Command Prompt and select 'Run As Administrator from the list.
  4. Once the Command Prompt window launched make sure you are in the directory where the Google Earth is installed. i.e. "C:\Program Files (x86)\Google\Google Earth Pro\client\googleearth.exe"
  5. If the example file path (above) matches with yours then type the following command in the Command Prompt and press Enter. i.e. "C:\Program Files (x86)\Google\Google Earth Pro\client\googleearth.exe" /RegServer
  6. Start Google Earth then try to map chart items.
Please ensure there are no items in the history of Google Earth that you have previously tried to map before mapping your chart items to Google Earth again.

[{"Business Unit":{"code":"BU008","label":"Security"},"Product":{"code":"SSXUXD","label":"i2 Analyst's Notebook"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"All Editions","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
23 July 2019