SPOMod icon indicating copy to clipboard operation
SPOMod copied to clipboard

Function New-SPOListColumn FieldType "Calculate" Should be "Calculated"

Open TheFeralNerd opened this issue 4 years ago • 1 comments

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.

TheFeralNerd avatar Jun 16 '20 17:06 TheFeralNerd

Thanks for noticing. I corrected it

PowershellScripts avatar Jan 17 '21 15:01 PowershellScripts