Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheFeralNerd opened this issue Jun 16, 2020 · 1 comment

Comments

@TheFeralNerd
Copy link

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.

@PowershellScripts
Copy link
Owner

Thanks for noticing. I corrected it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants