List View Threshold

I've asked this question before and got no useable responses so I'm gonna try again...
(http://social.technet.microsoft.com/forums/sharepoint/en-US/d8b2933f-110f-401a-8cca-2346e4340f76/content-query-web-part-list-view-threshold)
I'm responsible for an intranet that has two customised CQWP (Content Query Web Parts) present on the home page.
Both of these web parts aggregate all list items from across the entire site collection and use filters and Audience Targeting to provide a personalised experience to each user.
One web part is used to show upcoming calendar items and the other shows announcements.
The problem is that, a while ago, the Calendar query presented an error due to breaching the LVT (List View Threshold), and no matter what I do with the LVT setting in Central Admin, the web part always fails to deliver content.
I’ve tried increasing the LVT in Central Admin as part of the troubleshooting process but no matter how high I set it I still get the same behaviour.
If I modify the web part properties so that the query is looking at a single site instead of the entire site collection the web part is fine; if I revert back to querying the entire site collection again, using an account that is a member of the Farm Administrators
group, I can see the calendar/event items as they should be, because of the LVT setting for Admins/Auditors.
If I check the page in with the modified CQWP, I still see the correct list of objects in the web part but as soon as I publish the page, the items disappear and this empty web part is then seen by all users.
Querying the site collection using PowerShell I can see that there are 6637 announcements and only 4658 calendar/event items. The LVT is at its default of 5000.
Excerpt from the ULS entry for a specific page load.
CrossListQueryCache::GetSiteData() caught exception (Microsoft.SharePoint.SPQueryThrottledException: The attempted operation is prohibited because it exceeds the list view threshold
enforced by the administrator. ---> System.Runtime.InteropServices.COMException (0x80070024): The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.   
I think I’d ultimately like to understand what’s going on that means the LVT increases I’ve made have no effect and why one web part with a total number of results over and above the LVT is working while the one with a total below the LVT fails.
Thanks in advance.
N03L.

Hi,
According to your description, my understanding is that the error occurred when displaying calendar list items in the Content Query web part.
Did you set any sort order or filter in the Content Query web part?
If yes, then the issue may be due to the sort order or the filter uses a column that does not have an index when displaying large items in the Content Query web part.
Please add an index to the fields that are sorted or filtered in the view to see if the issue still occurs.
More reference:
http://nickhobbs.wordpress.com/2013/06/13/sharepoint-2010-list-view-threshold-explained/
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support

Similar Messages

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

  • List view threshold error in list view web part, column indexing not working

    Hello all,
    I have a list with about 8000 items and the list view threshold is set at 5000. I want to filter the list by a certain column ("Title", single line of text) so I indexed that column. I can filter the list (AllItems.aspx) however if I put the list
    on a web part page (in the form of a list view web part), I can't filter by that column. Shouldn't the indexed column allow this?
    Note that the threshold will not be increased and a daily time period to bypass the threshold is in place, but I'm looking for a solution for any time of they day.
    Thanks!

    Thanks for your response. Your suggestion did work! It got me thinking and I took some time to investigate this column indexing stuff a little closer. I had an "ah-ha" moment.
    Regardless of whether the column has an index or not, dynamic drop down filtering in a list view web part will only work if the list view has fewer items than the threshold. This is the critical point I was missing. I was assuming the index would allow for
    drop down filtering.
    Thanks again!

  • List View Threshold and using OR in list view

    I've read the white papers, searched the blogs, but I don't quite understand why I am getting the 'only showing latest results...' yellow bar due to list threhshold with following scenario:
    List has 9000 items (so above threshold).
    ALL 4 columns below are indexed!
    I have a view called 'My Items' such that:
    Show all items when
    UserColumn1 = [Me] OR
    UserColumn2 = [Me] OR
    UserColumn3 = [Me] OR
    UserColumn4 = [Me]
    All of the 4 user columns are indexed, but I'm thinking that since I have OR's in they query vs ANDs that it is causing the view to trip up and display the 'only giving you recent...' yellow filter bar.
    Any thoughts?
    Am i correct in my thinking that because of the OR's, SharePoint has to go back to the database and pull data 4 times.
    There are only 20 items where UserColumn1 is me, 10 where UserColumn2 is me, and 3 where UserColumn3 is me and only 1 item where UserColumn4 is me, so there are only total of 34 items, so I know its not because the first indexed column is returning more
    than 5000 items.
    Any advice/links to using 'OR' in view is much appreciated, I couldn't find anything.
    Herschel

    The problem is the "or" and the list view threshold.  When using an OR the query has to retrieve ALL the items to make sure it gets all the Or clauses.  Once it has all the items then it filters based on the "or".  If you
    use an"and" you can be sure that all the results will be represented by the result set that is derived from the first column.  So the query can be limited to that and then trimmed of additional results after retrieval.  When using Ors there
    is no way to limit the query Set.  What you want it to do is limit the results to 4 query sets that it then combines.  It doesn't work that way.  When using 'or' you will always try to retrieve ALL the results whether the columns are indexed
    or not.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • List View Threshold and Relevant Documents

    I have a Sharepoint Site that contains several libraries.  Some with infopath forms and others with pdf's.  On the site's main page I had added the relevant documents web part.  The relevant documents web part is used frequently by certain
    users to attach hyper links in infopath forms to pdf's stored in a library filled with pdf's.
    Recently one the sites users recieved the error message within the relevant documents web part saying: " The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator"
    Strange part was it was only affecting this user.  So I went to the central admin site and increased the list view threshold from 20,000 to 30,000 which solved the problem for now.  None of our libraries individually exceeded the 20,000 document
    view threshold limit.  However I believe all of them combined due which is what caused the relevant documents to stop working.  
    What I am wondering is if it is possible to filter which libraries the relevant documents list indexes/displays so that I can keep the lower view threshold limit to keep server load down?  I was not able to find any options in the web
    part settings for the relevant documents web part that would do this.  My backup option is to move certain libraries to a new site, which is not ideal.  Some pdf document libraries cannot be moved because the hyperlinks would all be broken.

    I instead used the greater than which looks like it worked in pulling only more recent documents.  The problem is most of the documents are in folders that were created years ago so if someone browses to the library certain folders will be hidden.
    I don't know if setting up private default views will fix this for them and allow me to drop the list view threshold back to 20,000.
    I will have to test this later today.

  • SharePoint Online list view threshold issues: "because it exceeds the list view threshold enforced by the administrator"

    SharePoint Online list view threshold issues: "because it exceeds the list view threshold enforced by the administrator"
    Office 365 SharePoint Online can be problematic when it comes to exceeding the list item threshold (e.g. 5,000).
    Examples of what happens after exceeding the threshold (e.g. 5,000 items):
    You can’t create new forms for the list in SharePoint Designer.
    You may have challenges with metadata fields in the forms (e.g. adding metadata values, editing metadata values, deleting the metadata column from the list).
    Cannot save the list as a template (i.e. you get the threshold error).
    Issue I'd like assistance with: how can I create a custom NewForm in SharePoint Designer
    when the list exceeds the threshold limit, given this is Office 365 SharePoint Online and I don't have access to increase that limit?
    As a control for my testing, I created another list with just a few custom columns with no list items --it worked fine for that list.
    I also tried clearing local AppData cache which didn't solve it. I'd need Central Admin on O365 SharePoint Online to increase the threshold which I don't have access
    to do. Errors received in SharePoint Designer:
    "Could not save the list changes to the server." After getting this, I tried to work around
    the create new forms issue by saving a copy of the original NewForm as NewForm2 and got the root error that I suspected was underlying it all:
    “Server error: the attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator”.
    Any ideas for how to create a new list form in SD?

    Thanks Alex.
    I just found a couple new workarounds instead of using SharePoint Designer:
    Method 1: Add web parts to the form pages on the client side:
    Go to the list and execute one of these actions depending what form you want to edit: create a new item (NewForm), edit an item (EditForm), or display an item (DispForm).
    With the form you want to edit displayed, go to the gear icon and click "Edit Page".
    You should now see the web part page show up with "Add a Web Part" as an option.
    Add a Content Editor or Script Editor web part.
    Add your custom code to either one to manipulate the HTML objects using your favorite web languages.
    Method 2: Use InfoPath 2013.
       The InfoPath 2013 route appears to work.

  • Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator

    Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
    involving all list items) are currently prohibited.
    Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
    Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
    Prashanth

    Reorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • List view threshold and columns manage metadata problems

    Hi
    We have problem in our company since we have more files in library than is set in List view Threshold.
    I have created index on column "year" and create view filter: Year is equal 2015.
    and I get famous error: this view cannot be displayed because....
    I haven`t find any limitations on column type: manage metadata?

    Hi,
    As I understand, you encountered the issue after you created view filter.
    Every column type has the default number that can be created. You should go to check the number of your column created is less than the number by default.
    Per my test, I can achieve it without exceeding list view threshold.
    Check things below:
    1. You can increase the number of the list view threshold, and after that, you can try again to see the same situation will occur.
    2. Go to create another managed metadata column “year”, and create index on column "year", and create view filter in the same list to see the issue will occur.
    3. Check ULS log to see the details about the cause of the issue.
    Best regards,
    Sara Fan

  • Lookup Column Issue - List View Threshold exceeded

    We use Sharepoint Foundation 2010 and we have 2 Lists in a site. Those are:
    1. Customers List.
    2. Sale Invoices List.
    Customers List has Title field as Unique & Indexed Column.
    Sale Invoices List has a lookup column (i.e., Customer) from the Customers List (Title).
    My issue is:
    Customers List has just crossed 5000 items. When I try to add a List Item in Sale Invoices List (where I have Lookup Column from Customers List), it throws an error as given below:
    Error Message:- This is a lookup column that displays data from another list that currently exceeds the List View Threshold defined by the
    administrator (5000). To add items to the current list, please ask the list owner to remove this column.
    I have increased temporarily the List View Threshold Limit to 6000 Items. It’s working fine now.
    Is there any solution to fix the issue without increasing the List Items Threshold Limit?
    Thanks in Advance.

    Hi Sri,
    If this activity (adding item) is done programmatically, then we can set
    SPList.EnableThrottling = false
    but this approach is not recommended though.
    Please let us know if this fixes your issue.
    Thanks,
    M.Gubendra Raj

  • List view threshold showing error on Production but not on Dev

    I have a library on Production containing 6000 items.
    There is a web part which displays items from that library (all on one page) and it is showing error because the items exceeded 5000 limit.
    The same web part on Dev is not showing error when I display 6000 records from that list on a single page.
    List view threshold is set to 5000 on both Production and Dev.
    Why both servers are showing different behaviors? Is there some other setting other than List view threshold different on Production than Dev?
    Where do I look?

    Hi Frank,
    The number of items in a folder needs to be less or equal to the list view threshold.
    If a list/library has 4000 items and a folder with 3000 items, both the folder view and the root folder view will
    work for a list view threshold of 5000. However, if the folder or root folder grows to have more than 5000 items,
    it will stop displaying items in the default view.
    The easiest and quickest solution is to change the list view threshold for the period you migrate the site, then change it back to default. To do this follow the steps:
    go to your SP2013 Farm's Central Administration
    go to the "Manage Web Applications" under the "Application
    Management" section
    select the "Web Application" where you migrate the site
    click the "General Settings" dropdown and select "Resources
    Throttling"
    change the "List View Threshold" to 12000 if your library has 11000 pages
    migrate your site from SP2010 to SP2013
    change the "List View Threshold" back to 5000.
    SharePoint 2013 works the same as 2010 in terms of list view threshold: you can use folders and/orviews filtered on indexed columns to
    access items in a list/library with more than 5000 of items.
    When you try to add/delete an entire list/library that has more than 5000 items, then the operation fails. The solutions here are:
    see what I've said at point 2. above
    enable the "Daily Time Window for Large Queries" option located in the same place as the "List View Threshold".
    This enables you to get around the "List View Threshold" during the time window you set, which could be sometime at 23:00 when nobody accesses SharePoint, for example. You can migrate your site during that time window.
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Error: List View Threshold. The number of items in this list exceeds the list view threshold, which is 5000 items.

    Hi, i had created a SharePoint List in cloud ( office 365) using List Template.
    List template contains 12000 items taken as template from SharePoint on Premise.
    I am getting this error message, in SharePoint Online (Office 365)
    The number of items in this list exceeds the list view threshold, which is 5000 items. Tasks that cause excessive server load (such as those involving all list items) are currently prohibited.
    How to resolve it, to get data in my SharePoint list, any help will be appreciated.

    With O365 lists over 5k items are now officially supported but they will have limited behaviour due to the threshold. There are no workarounds or options to increase the threshold either temporarily, for specific users or for the list itself as you have
    with on-prem.
    You'll need to remove enough items to get it below the threshold limit, add indexed columns to support indexed views, then re-add the items again. This article is for 2010 but the section around indexed columns and views is still accurate:
    https://technet.microsoft.com/en-us/library/cc262813(v=office.14).aspx
    It may be possible to add the indexes on your on-prem list where you can increase/avoid the threshold, then re-export the list. That would rely upon the list creation script adding indexes before it uploads items but it's a logical assumption.

  • Query Throttling issue after increasing List view threshold in connected webpart

    Dear SharePointers,
                                   I have connnected listview webpart deployed on site. Parent webpart
    has 16 fields and over 3,000 listitems exists in list. Child webpart has 7 fields and more than 30,000 Items. The code works well in other sites in same web app and it also works well in other systems. We tested same in other system by increasing/decreasing
    data but still we are not able to replicate issue. I know that this issue could also encounter if fields are not indexed in the list. Are there any other pointers which can use to debug this issue.
    Milan Chauhan
    Regards,
    Milan Chauhan
    LinkedIn
    |
    Twitter | Blog
    | Email

    Hi,
    According to your post, a Query Throttling issue occurred after increasing list view threshold in connected web part.
    By default, this limit is set to 5,000 items for regular users and 20,000 items for users in an administrator role.
    More information is here:
    http://msdn.microsoft.com/en-us/library/ff798465.aspx
    Please try to enable the Daily Time Window for Large Queries:
    1.Go to Central Administration-> Application Management -> Manage web applications.
    2.Select the web application that contains the large list.
    3.Click General Settings, and then click Resource Throttling.
    4.Under Daily Time Window for Large Queries, click to select Enable a daily time window for large queries.
    5.Set a start time and duration when most of your users will not be working.
    6.Click OK.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Can we set List View Lookup Threshold at site collection level ?

    Hello,
    Presently, we have requirement to set the List View Lookup Threshold  at Site Collection/Sub-Site level instead of web application level.
    Could you please let me know, are there any ways to set
    List View Lookup Threshold setting at Site Collection/Sub-Site level
    in SharePoint 2010 using Powershell/Object Model
    Also, it would be helpful if you colud let me know, upto what extent , we can drill down List View Lookup Threshold setting i.e. SubSite/List/Library-Folder.
    Thanks in advance !
    Regards,
    Sagar Acharya
    Email -  [email protected]

    Hi Sagar,
    We cannot set list view threshold value at sitecollection/subsite level. It can only be set at web application level.
    However we can bypass the 5000 limit using PowerShell command by setting “Enable Throttling”= false for particular list.
    Reference link:
    http://pravahaminfo.blogspot.in/2012/10/how-to-increase-list-view-threshold.html
    Thanks,
    Somnath Matere

  • Error while creating a list view

    Hi Friends,
    When I try to create a new view for a list, I get this error message:
    "This view cannot be displayed because it exceeds the list view threshold (5000 items) enforced by the administrator.
    To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for the list, ask your administrator to modify the view so that it conforms to the list view threshold"
    I tried to apply filters for the list to reduce down the results but still the same problem.
    I'm very keen for an answer to this question. I've researched a lot but couldn't find any help. Your advice will be much appreciated.
    Many thanks.

    Hi
    a. introduce more filters to reduce the number of items in your view
    b. ask your admin to modify the default value ( isn't a suitable option, because will affect your farm's  performaces )
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • List Views displaying error - when using Lookup column for filtering ( which are indexed )

    I'm trying to filter a large list that has more items than the list view threshold. The list has a lookup column that is indexed. If I  try to filter by other columns, the view works fine as long as it returns fewer than 5,000 items. However, if
    I try to filter by the lookup column, I get the error about not being able to display the items because the list is too large.
    The views are returning items which are less than threshold value , but still I am seeing the same issue.I Created some pages and added this filtered views to the pages it is showing below error
    This view cannot be displayed because it exceeds the list view threshold ....
    IF I navigate the view in the list it's returning zero records with out any error page . But no records. 
    Is there a known issue with filtering large lists by lookup column? Any other troubleshooting suggestions? Everything I'm doing here is through the web interface.

    Thank you for your reply. Yeah it’s default limit. But when I created view based on some filter condition on lookup column it’s not working.
    For example:
    Created a View based on Lookup column DEPT using filter condition Dept = HR , returned 1400 items
    Created another View based on Lookup column DEPT using filter condition Dept=Admin , returned 3600 items
    Adding this list view webparts to the page also working fine , displaying the results .
    After adding one item to this list , both the views are not displaying any results. Now the count is 5001.(it exceeded the list view threshold)
    The page where the list view web parts are added throwing the below error.
    This view cannot be displayed because it exceeds the list view threshold (5000 items) enforced by the administrator.
    To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify
    the view so that it conforms to the list view threshold.
    Learn about
    creating views for large lists.
    I am experiencing this problem only with lookup columns, Choice and site columns are working fine in this same situation .
    Thanks,

Maybe you are looking for

  • Problem in activating Photoshop cs2

    Hi; I've seen the other answers to this problem, and Adobe's solution (download a special version of cs2), but, there is (no longer?) a download feature for this version. Not that I can find anywhere. And Adobe points me to ask on the forum, but I wo

  • MacBook wifi signal lost.

    Hello , I have a problem with my wifi signal. I have an Macbook 1,1 , and the Airport Card is Airport Extreme. The problem is that i keep losing my wifi signal. It happens every where. I can keep being connected to wifi about an hour then the signal

  • Networking troubles with ABIT BP6 board and Solaris 8

    Hi, Im trying to install the Solaris 8 software on my ABIT BP6 board with a Compaq NetFlex3 10TX NIC. This is a SMP board (dual celeron) but is not on the HCL (the NIC is). The installation gives no problems at all (except for a memory conflict betwe

  • Does Motion 3 have a Warp function similar to Photoshop?

    I have a character with a mouth that I'd like to animate using Motion. In Photoshop I can easily create this effect (one frame at a time) by using the warp transform, where I can manipulate the mouth from several different points. I cannot find where

  • Range Expander Placment

    Can I line up range expanders, like if I have one in a place and I need some more range could I put one after another. Please help!?Message Edited by AP19 on 02-05-200706:23 PM