Sitecore Item Version Count Mismatch

Cover Image for Sitecore Item Version Count Mismatch

I recently came across an issue in an upstream environment where an item showed as having 2 versions, but only one appeared in the dropdown.

Bad Versions

To replicate the issue, I packaged the item up and installed it on my local. Voila. The 1st version appeared in the dropdown list.

Good Versions

Issues like this can arise due to index corruption.

The quick fix is to run a reindex in the affected environment (master and web).

To put the issue to bed once and for all, check your Sitecore and Solr logs to find the root cause.

Keep on BUIDLing.

-MG


More Posts

Cover Image for Year in Review: 2022

Year in Review: 2022

> Full steam ahead

Cover Image for Early Returns in React Components

Early Returns in React Components

> When and how should you return early in a React component?

Cover Image for How to Run Old Versions of Solr in a Docker Container

How to Run Old Versions of Solr in a Docker Container

> Please don't make me install another version of Solr on my local...

Cover Image for XM Vulnerability Exploit Attempts

XM Vulnerability Exploit Attempts

> Learnings from hacker activity in 2023 and 2024