SharePoint 2010 Value does not fall within the expected range

本文介绍了解决SharePoint2010中因列表字段过多导致的错误方法。当遇到“值不在预期范围内”的异常时,可以通过调整ListViewLookupThreshold设置来解决此问题。

SharePoint 2010, Value does not fall within the expected range.at Microsoft.SharePoint.SPFieldMap.GetColumnNumber

0 评论

If you facing this error...

if you save or read a column using splistitem["Created By"] or splistitem[internalname]...

You get this error...

Exception            Unhandled exception caught during execution of Microsoft.SharePoint.Portal.PageBase::ErrorHandler(). Exception information: Exception information: System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow)     at Microsoft.SharePoint.SPListItemCollection.GetColumnNumber(String groupName, Boolean bThrowException)     at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow)     at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException)     at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)     at Microsoft.SharePoint.SPListItem.get_Item(String fieldNa...        

 

Your list has a too much columns (Lookup, Person/Group, or workflow status fields)

You need to increase your "List View Lookup Threshold"

Go to Application Management --> Manage Web Applications --> select your application --> General Setting --> Resource Throttling --> List View Lookup Threshold --> Put a number more than number of your list columns. maybe 30, 40, or 50.

and Save it.

Now It should be working!

转载于:https://www.cnblogs.com/ahghy/archive/2013/04/15/3021731.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值