Forum Discussion

Andrew van Renen's avatar
Andrew van Renen
Brass Contributor
Mar 20, 2017

Exception calling SPListCollection.Add: : Invalid field name. {1faa4902-9115-44b9-bba7-791441ca1d6f}

I get an exception when trying to create a new list using PowerShell (error also happens in C#).   This is my PowerShell:   $lists = $rootWeb.Lists $index = $lists.Add("avrTest", "", [Microsoft.S...