Solution - Responder - Duplicate Key in Update Population Tool

Version 6



    The update population tool is throwing the following error when ran via Command Line or ArcMap:


    ERROR UpdatePopulationInformation.UserInterface [(null)] - An item with the same key has already been added.

    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 Miner.Responder.Framework.UpdatePopulationInformation.Tasks.UpdateDataForFeedersTask.UpdateFeederCounts(String feederId, DateTime currentDateTime) at Miner.Responder.Framework.UpdatePopulationInformation.Tasks.UpdateDataForFeedersTask.<>c__DisplayClass3.<ThreadProc>b__2() at Miner.Responder.Framework.UpdatePopulationInformation.ProgressReportingTaskBase.RetryAction(Action action) at Miner.Responder.Framework.UpdatePopulationInformation.Tasks.UpdateDataForFeedersTask.ThreadProc(Object obj)




    One cause of this error is a duplicate name in the feeder name of the circuit source table.  This includes FeederID field and the Feeder Name field must be unique for each record and they cannot be NULL.  The tool will throw this error if its key (feeder name) has already been loaded during the iteration.




    Customers can remedy this by accessing the circuit source table and renaming the offending features.  Responder services will need to be restarted after making any changes to the data.  The tool should then work through the iteration without any issues.


    Please contact Schneider Electric Customer Service if there doesn't appear to be any duplicates and the error is still occuring.