How to specify a calculated value for a SharePoint custom field in its XML schema? Like this: <Field Type="DateTime" Format="DateOnly" DisplayName="ExpiryDate" Required="FALSE" EnforceUniqueValues="FALSE" Group="My Group" ID="{99668BDC-5DED-46d0-A4E... StaticName="ExpiryDate" Name="ExpiryDate"> <DefaultFormula>[toda... </Field> ......
The problem: I have an item adding event receiver associated with a custom content type that accesses several managed metadata fields using the syntax "PublishingPage.ListItem["f... Suddenly, I started getting the "Value does not fall within the expected range" when accessing one of the managed metadata fields. I had nothing else except the message and, more annoyingly and off-setting, it only happened with some users. It worked for users who were local administrators of the SharePoint server. ......