cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Summary

This article will describe an error you will get in the FnmpXenAppAgent.exe with the message "An unhandled error occured while attempting to process the application 'SOME APP'. An item with the same key has already been added". The affected version is FNM On Premise 2014 R3 and FNM On Demand (before April 2015)

Symptoms

If you get an error in the FnmpXenAppAgent.exe with the message "An unhandled error occured while attempting to process the application 'SOME APP'. An item with the same key has already been added"

The affected version is FNM On Premise 2014 R3 and FNM On Demand (before April 2015)

Cause

This is due to the application 'SOME APP' being published directly on a XenApp server, and a worker group that also contains the same XenApp server.

May affect XenAppAgent 6 / XenAppAgent 65 / XenAppAgent75

Resolution

You can either manually remove the XenApp server from the list of servers publishing the application and simply keep the XenApp server in the worker group, or use the patched FnmpXenAppAgent.exe attached to this KB article.

Additional Information

Sample error log:
2015-02-03 2:08:56.596 : Error : An unhandled error occured while attempting to process the application 'SOME APP'.
2015-02-03 2:08:56.596 : Error : System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplicationServers(String p_AppBrowserName)
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplications()
2015-02-03 2:08:56.596 : Error : An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplicationServers(String p_AppBrowserName)
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplications()
at Flexera.Compliance.Importer.XenAppAgent.AclImporter.Import(String p_DatabaseConnectionString, Int32 p_DatabaseTimeout, String p_OutputFile)
at Flexera.Compliance.Importer.XenAppAgent.Program.Main(String[] args)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 09, 2018 04:18 PM
Updated by: