I get the following error when trying to update the choices for a Site Column: "The object has been updated by another user since it was last fetched."
I get this error if I try to add a new choice through the Web UI or through the following PowerShell code:
$web = Get-SPWeb http://dev.domain.local/ $courses = $web.Fields["Courses"] $courses.Choices.Add("2015 Extravaganza") $courses.Update() Exception calling "Update" with "0" argument(s): "The object has been updated by another user since it was last fetched." At line:1 char:1 + $courses.Update() + ~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) , MethodInvocationException + FullyQualifiedErrorId : SPException
This content type was created through the Web UI and was not deployed as part of a feature. I also tried updating it by directly modifying the SchemaXml property but I get the same error. Anything I can do to resolve this? It is unfortunately in use so deleting and recreating isn't really an option.
Update: because this Site Column was associated with a Content Type, I went to one of the lists where it was being used, chose to edit the Content Type and Field from there and the update took. I would have much preferred to have it cascade the change through all uses of the column - as well as have the correct choices available for future use of the column.