Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting on indexed columns not working anymore #766

Open
PzKfWg opened this issue Dec 15, 2022 · 12 comments
Open

Sorting on indexed columns not working anymore #766

PzKfWg opened this issue Dec 15, 2022 · 12 comments
Assignees
Labels
support-request A support-style question where the customer needs help with solving a problem.

Comments

@PzKfWg
Copy link

PzKfWg commented Dec 15, 2022

Since a couple of weeks, multiple flat views on multiple tenants suddenly failed even if they were following those guidelines. So, even if I filter on an indexed column that returns less than 5000 items, if I also sort the view by an indexed column that is text, people, type or managed metadata, the view fails. This is a change of behavior in the infrastructure and leaves multiple of my clients in crisis mode.

@sympmarc
Copy link
Collaborator

@PzKfWg Unfortunately, this isn't a good forum for this. No one from Microsoft who can take any action on it participates here.

I'll ask in my MVP channels to see if anyone else is reporting this, etc. and let you know if I hear anything.

@sympmarc
Copy link
Collaborator

Also, have you put in a ticket with Microsoft? If you have and can let me know the incident number, I can attach it to my question.

@sympmarc sympmarc self-assigned this Dec 15, 2022
@sympmarc sympmarc added the support-request A support-style question where the customer needs help with solving a problem. label Dec 15, 2022
@PzKfWg
Copy link
Author

PzKfWg commented Dec 15, 2022

Hi! Yes, two tickets for two tenants and today a third one came to me with the same issue. Tickets are:
34013152 (this one, I just had an hour call explaining the support guy how to create a SharePoint view! This might take a while...)
34209323 (this one told me they don't touch anything related to LVT because it is too tricky!)
Thank you so much!

@PzKfWg
Copy link
Author

PzKfWg commented Dec 21, 2022

Hi @sympmarc , I got this answer from MS-Support:
"I've consulted this question and got this explanation: Columns with column types like people, lookup, or managed metadata can cause list view threshold errors when sorting. However, you can use text, number, date, and other column types in the first sort."
Is this new to you? Any news from the MVP channel? Thank you so much!

@sympmarc
Copy link
Collaborator

Unfortunately, nothing in the MVP channel. Microsoft goes very quiet this time of year.

What they say is sort of true, but not. "Complex" columns - those which they list first - can act a little differently, but I've seen them work just fine if they are indexed. It is important that the first filter brings the results down below the 5000 item limit, then you can add additional filter clauses.

For example, if you have 100000 items with a Color choice column with [Red, Yellow, Blue] evenly distributed, then a filter for any one of those values would still leave you over 5000 items. If you could include a date filter first, which brings the subset below 5000 items, then the Color filter would work.

I expect I'm telling you things you already know, but have you looked at this article?
https://support.microsoft.com/en-us/office/manage-large-lists-and-libraries-b8588dae-9387-48c2-9248-c24122f07c59?ui=en-us&rs=en-us&ad=us

Given the way you've described this, it seems like something has changed. Are these lists or libraries? (Which shouldn't be different, but sort of are.)

@PzKfWg
Copy link
Author

PzKfWg commented Dec 21, 2022

This is indeed what I understand and worked with this knowledge for years. Filter gets less than 5000 and usually sorted perfectly well with an indexed column such as MM. If this can't be reproduced by the community, this might be a hint: They are document libraries where there are document sets. In all the cases, I am trying to have flat views on documents inside the doc sets. Thanks!

@sympmarc
Copy link
Collaborator

Ok, that's a good clue. It's sort of a niche case. I'm guessing there aren't a lot of people this would affect.

@sympmarc
Copy link
Collaborator

sympmarc commented Jan 9, 2023

@PzKfWg - Did you ever figure this out?

@PzKfWg
Copy link
Author

PzKfWg commented Jan 10, 2023

Thanks for the follow-up! Unfortunately not: I'm back from vacation and the nightmare is still real :-(
Today, I did a test: I copied the doc lib structure and the content, but WITHOUT the document sets (ShareGate copied as simple folders, but kept metadata to play). The behavior is exactly the same which seem to rule out the document set as a culprit. I still don't see how this is only a niche case affecting me only. Views that I could easily sort by MM columns or easily use in subfolders with a couple of documents are still not working. I am running out of ideas...

@sympmarc
Copy link
Collaborator

I'm curious about this. I could make some time tomorrow to take a look at it with you if it would be helpful.

@PzKfWg
Copy link
Author

PzKfWg commented Jan 10, 2023

Absolutely! Please email me so that we can set a time. Thanks!

@sympmarc
Copy link
Collaborator

Email sent with a FindTime!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support-request A support-style question where the customer needs help with solving a problem.
Projects
None yet
Development

No branches or pull requests

2 participants