Forum Discussion
Trying to add multiple users to distribution group and getting error: Cannot validate argument
- Oct 12, 2019
Test SharePointThen either your csv file is malformed, or you need to modify the Import-Csv parameters.
Some info on exactly what you did would be helpful. I've wasted over an hour on this and I'm ready to just add the 114 people via the web interface, given there is no definitive way to validate any error message in Powershell. Test SharePoint
- DanielNiccoliFeb 02, 2021Iron ContributorError messages in PowerShell are mostly straight forward. He also said exactly what he did: create a valid csv file to use for the import.
- P_NapMar 16, 2021Copper Contributor
Saved Excel file in all three available csv formats: comma-delimited, Mac and DOS. All three fails with the same error but different character location (Mac format file the outlier).
I have also used Notepad to create a generic csv file with the same outcome.
- DanielNiccoliMar 16, 2021Iron ContributorIf you want help, you need to tell us the exact command and error message.
- P_NapMar 16, 2021Copper Contributor
Not really, I have also created csv file from Excel using their export function and it does not work.
What was the error in the creation of the csv file - or more appropriately what was the error if one follows the instructions as written in various postings, ie:
Alias,Name,UPN
my1.alias,My1 Aliasm,my1.alias@myserver.com
my2. ...
.. etc