Overview
This article describes the error and its resolution which occurs while using the Import Export Tool:
Unhandled exception has occurred in your application...Object reference not set to an instance of an object.
The error occurs when:
- Exporting emails from GFI Archiver.
- Searching for an email to export. Here is an example of the error happening when clicking Find:
Root Cause
- The GFI Import Export Tool relies on the index of the archive stores. If the indexes are not healthy, the tool would not be able to search through the emails in that store and fail.
-
The fail occurs when trying to query the selected mailbox(/es), for example:
...\MarcImportExport\DebugLogs\BET_MailboxSearch.log
2018-05-24,12:20:42,569,1,"#000027F8","#00000005","error ","BET_MailboxSearch","Error while searching and populating results: QueryFailed"
The query fails as follows:
...\Search\DebugLogs\SearchFacade.log
2018-05-24,12:20:42,431,1,"#000019A8","#00000017","info ","SearchFacade","Search request #1289490493: structuredQuery {xfirstword} xfilter {} limit {5000} userGuids {9c4c3242a1355a4890ab88beec6e05d4} [...] metaQuery {} sortFieldName {sentdate} ascending {False} culture {en-US} requested by {KINGS\Administrator}"
"error ","SearchFacade","error: Cannot perform search as product has expired."
"error ","SearchFacade","error: Search failed because: LicenseExpired"
This can be further correlated with app event logs for MARCore:
"The following information was included with the event:
Plugin Licensing Notifications reports exception. The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state."
As well as in the license log:
2018-05-24,12:19:33,923,1,"#000020A0","#00000019","info ","LicensingNotifications","Processing. Start"
2018-05-24,12:19:33,923,1,"#000020A0","#00000019","info ","LicensingNotifications","Key: NuKqiqPq0QWNLdvMQCcK9BH-nKGB17CS-rR-10001"
2018-05-24,12:19:33,923,1,"#000020A0","#00000019","info ","LicensingNotifications","Reminder check"
2018-05-24,12:19:33,927,1,"#000020A0","#00000019","error ","LicensingNotifications","Error: Processing: System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.This is caused by an invalid, disabled, or version mismatch license key. Here is an example taken from marcsettings.xml:
<Key>NuKqiqPq0QWNLdvMQCcK9BH-nKGB17CS-rR-10001</Key> | this is a disabled license key for 2015
<ProductVersion>12.3</ProductVersion> | we see the version installed is 12.X, for which the 2015 key will not work.
Resolution
- The issue is related to the Search service and Index status:
- From the GFI Archiver web interface, check the status of the index for each store.
- Ensure that:
- The status is healthy.
- From the Summary of the Archive Stores, the value of Archive Store contains: matches the value of Indexed email:.
- The GFI Archiver Search service is running.
- Check the Event Viewer for possible errors with Event ID 1000 and 1026. These could be related to the .NET 4 Framework. Perform a re-installation of the .NET 4 Framework.
- Check and re-validate the license key from the WebUI under Configuration > Change License Key. Even if the validation is successful and archiver works as expected but if a license version mismatch error was found in the marcsettings.xml, please reinstall Archiver and check for:
- Blocked installer
- UAC enabled