SharePoint / SharePoint/sp-dev-docs

Broken/corrupt SharePoint list column indexes across multiple tenant

Open
#10,714 5 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Mar 11, 2026.

area:spfx-in-lists sharepoint-developer-support type:bug-confirmed
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

SharePoint CSOM

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details

No response

Issue description

As part of the software we create, we use SharePoint Online lists for storing data on the customer Microsoft 365 tenant. Some of them are exceeding the 5000 item threshold already for a long time. Back in the days we added column indexes to work around possible issues with these large lists abd ti be still able to query data by using those indexed columns, as long as the results are below the list view treshold.

This has worked perfectly fine for multiple years on all the tenants we connected to in the past, because we're respecting the known rules for these large lists. Now since a couple of weeks some tenants are starting to show failures in these lists. The failures we see:

  • Duplicate values can be added without any warning for indexed columns, even though unique values are enforced for these columns.
  • UI Filtering or searching by the indexed columns does not return (all) results. Only recent items are returned.
  • CSOM and REST queries filtering on Identifier fail to find (all) existing items. Only recent items are returned

It looks like the indexes are reset on a certain point in time as new items added are indexed and returned but older items seem to not be part of the index.

The only solution we currently see is removing the column index from the list, wait untill it's fully removed (can take up to 5 minutes, depending the list item count), and re-add the index. After these steps it's fully working again and we haven't seen it happen again on these 'repaired' lists. The biggest disadvantage is that indexes for columns which enforce unique values cannot be removed. Then you first have to disable the unique value enforcement. But this setting can only be re-enabled if the list contains less than the 5000 listitems. Our only solution to this is to temporarily recycle items from this list untill there are less than 5000 items, then fix the index and restore all items again.

Is this a known/by design issue? As this has never occured during the past 10+ years, it looks like something has recently changed or reset in this area.

The issue is also mentioned here by my colleague

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.