12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.28k stars 567 forks source link

Issue running script: Exception calling "Add" with "2" argument(s): - At line:51 char:34 #60

Closed QuintenPXS closed 2 years ago

QuintenPXS commented 2 years ago

image

Exception calling "Add" with "2" argument(s): "Item has already been added. Key in dictionary: '' Key being added: ''" At line:51 char:34

image

any idea why or is this script no longer working/supported ?

thanks!

colonelclaypoo commented 2 years ago

I have the same issue but have not yet found the issue at first glance. Let it run through, though. Report is still generated.

12Knocksinna commented 2 years ago

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.