If you see this:
Or simply the column is not included in the result set (SPQuery -> ViewFields) and you're trying to retrieve missing field value.
{System.ArgumentException: Value does not fall within the expected range.probably you are facing with the list view lookup threshold (e.g. like described here).
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 fieldName)
Or simply the column is not included in the result set (SPQuery -> ViewFields) and you're trying to retrieve missing field value.
No comments:
Post a Comment