Unable to apply changes for custom fields: Validation of viewstate MAC failed
When I try to "Apply Changes" to Custom Fields I'll get an error with viewstate MAC failed and no changes were saved. There is no errors logged.
Errors I get:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that
Things I've tried:
- Added a static machine key as suggested in the microsoft link.
- Set LoadUserProfile = true.
- Increase the value of the MaxHttpCollectionKeys suggested here: https://answers.coveo.com/questions/5520/admin-tool-unable-to-editdelete-custom-fields
Does anyone have any idea how I go about resolving this?
Running version: 7.0 x64 Build 8047.0
Thank you for your answers to my questions.
With Coveo for Sitecore, you should never modify the Sitecore field options in the CES Administration Tool. If the modification you tried to do would have succeed, you would have noticed later that your modification was overridden.
The way to specify field options with Coveo for Sitecore is to define them in the Sitecore configuration, specifically in the "fieldMap" section of your Sitecore indexes configuration. Coveo for Sitecore is synchronizing the fields and their options at the beginning of each indexing operation triggered by Sitecore. (see Working With Fields)
So if you ever succeed to modify the custom field options of a Coveo for Sitecore field set from the CES Administration Tool, you will lose your modifications the very next time Sitecore will index an item in a Coveo index.
I hope this helps.