"Value does not fall within the expected range" with managed metadata fields

发布时间:2017-7-9 7:29:14编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了""Value does not fall within the expected range" with managed metadata fields",主要涉及到"Value does not fall within the expected range" with managed metadata fields方面的内容,对于"Value does not fall within the expected range" with managed metadata fields感兴趣的同学可以参考一下。

 

From: http://geekswithblogs.net/claraoscura/archive/2011/01/21/143569.aspx

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["fieldname"]". 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. This really sent me in the wrong direction.

The solution: Check the "List View Lookup Threshold" for the web application (in CA, under the web application general settings). The default is 8. Managed metadata fields in a list are actually lookup fields, so if you have more than 8, error. What I don't know is why I didn't get this error with local adminstrators (maybe the threshold doesn't apply to them?). The reason I had more than 8 managed metadata fields in my list is that, after each new deploy of my content type, the field kept duplicating itself. I think I now solved this problem too by adding Overwrite="TRUE" OverwriteInChildScopes="TRUE" to the field definition.

Solution source: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/65e04367-e926-404b-b355-825a52f4ce69/

 

另外,微软官方关于List view Lookup threshold的文章如下: https://blogs.msdn.microsoft.com/spses/2013/12/02/sharepoint-20102013-list-view-lookup-threshold-uncovered/


上一篇:Centos nginx安装
下一篇:OkHttp上传文件,服务器端请求解析找不到文件信息的问题

相关文章

相关评论

本站评论功能暂时取消,后续此功能例行通知。

一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!

二、互相尊重,对自己的言论和行为负责。

好贷网好贷款