[SOLVED] : 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) at XPoint.Base.Extensions.c_SPExtensions.GetFieldValue
I wanted to retrieve a SPListItem value and got error while debugging as- " 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) at XPoint.Base.Extensions.c_SPExtensions.GetFieldValue"
I started banging my head like anything. because for another column of same field type it was working fine and for one of the column of same field type it was giving this error. Those fields i have created through schema. So i created one more column of same type and tried to work on that.Errr!!.. still same error.
After doing thorough debug and analysis i realized about the root cause of issue. Yes yes yes!!.. We have one lookup field already and we are saving values in few fields through workflow and event receiver. This is also kind of look up process. By default SharePoint has its own settings and we can extend it .
This was causing because the "List View Lookup Threshold". By default its value is 8. We can further increase it to required number. In my case i made it as 13. and the result is AILAAAA!!!.. working fine.. :)
Here i have mentioned steps to fix this issue:
1. Open sharepoint 2010 central administration site and select the web application which is having your site causing the issue.Click on General Settings and select Resource throttling
2.Scroll down till List view lookup Threshold and change the number from 8 to any upper value..Here i have mentioned 13 for my purpose
Now save this change and check.!!!
Hope this may help someone
cheers
pradeepa achar
Comments