Issue running script: Exception calling "Add" with "2" argument(s): - At line:51 char:34
QuintenPXS opened this issue · comments
QuintenPXS commented
Exception calling "Add" with "2" argument(s): "Item has already been added. Key in dictionary: '' Key being added: ''"
At line:51 char:34
- ... portSkus) { $SkuHashTable.Add([string]$Line.SkuId, [string]$Line.Disp ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : ArgumentException
any idea why or is this script no longer working/supported ?
thanks!
colonelclaypoo commented
I have the same issue but have not yet found the issue at first glance. Let it run through, though. Report is still generated.
Tony Redmond commented
An attempt is being made to add a record that already exists in the hash table. It looks horrible but doesn't cause a problem. Some error handling would suppress it.