Stuck in "Resolving structure" loop when restoring document to past state
I understand you're stuck in a "Resolving structure" loop when trying to restore a document to its state from 6 days ago. This is frustrating, and while this specific error pattern isn't documented in the official Sanity resources I've checked, I can help you troubleshoot it.
First, verify your history retention:
According to the Document History documentation, history retention depends on your plan:
- Free Plan: 3 days
- Growth Plan: 90 days
- Enterprise Plan: 365 days
If you're on the Free plan, 6-day-old revisions won't be available. However, since you're seeing the restore interface, this is likely not your issue.
Troubleshooting steps to try:
Examine the network error details - You mentioned seeing an error in the network tab. Look for:
- The specific HTTP status code (400, 403, 500, etc.)
- The error message in the response body
- Any timeout indicators
- Also check your browser's Console tab for JavaScript errors
These details will reveal whether this is a permissions issue, API timeout, data problem, or something else.
Try the programmatic restoration workaround - You can bypass the Studio UI entirely by using the History API. Use the API to fetch the document's history, find the specific
_revvalue from 6 days ago, and restore it using the JavaScript client'screateOrReplace()method with that revision's data.Test with default structure - If you have a custom Structure Builder configuration in your
sanity.config.jsor desk structure file, temporarily disable it to use the default Studio structure. If the restore works with the default structure, there may be an issue with your custom configuration that's interfering with history navigation.Update your Studio version - Ensure you're running a current version of Sanity Studio, as various document operation bugs have been fixed in recent releases.
Try the Compare Versions feature - As an alternative approach, use the document comparison tool to view the version from 6 days ago, then manually copy the content you need.
Getting more specific help:
Since this appears to be an unusual error, I'd strongly recommend sharing the actual error message from your network tab (and browser console) in the Sanity Community Slack or opening a support ticket if you're on a paid plan. The specific error details will help identify whether this is a known bug or something specific to your setup.
If you can share the actual error message here or in the community, we can provide much more targeted guidance on what's causing the "Resolving structure" loop.
Show original thread13 replies
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.