SPOMod
SPOMod copied to clipboard
Function New-SPOListColumn FieldType "Calculate" Should be "Calculated"
When trying to add a new calculated column, the error message below is displayed:
Exception calling "ExecuteQuery" with "0" argument(s): "One or more field types are not installed properly. Go to the list settings page to delete these fields."
Where the function's ValidSet() for the parameter $FieldType is defined, it shows "Calculate" to be the valid type; however, in SharePoint, the field type is "Calculated" (with a D at the end), which I believe is preventing this query from executing.
I attempted to add the D at the end of Calculated in both the ValidSet() and when calling the function, but it still puts "calculate" when executing the query for some reason. I'm not enough of a PowerShell guru to know why it's behaving like this.
Thanks for noticing. I corrected it