Register now - Learn how Tecovas roped in success with Sanity and Shopify 🤠

Error when viewing and deleting a document, resolved by upgrading to the latest version.

5 replies
Last updated: Oct 3, 2023
Hi all, I'm trying to view a document but am getting the error:
Error: Cannot apply an "insert_node" operation at path [5] because the destination is past the end of the node.
The problem is I can't even delete the document because selecting it in the UI throws this error. When I try to use the CLI to delete it by its ID, it says the document does not exist.
Oct 3, 2023, 8:28 PM
What version of the Studio are you running?
Oct 3, 2023, 8:58 PM
3.8.3
Oct 3, 2023, 9:19 PM
You should upgrade to the latest version to see if the problem persists.
Oct 3, 2023, 9:22 PM
Ah, that did the trick. Thanks for the help.
Oct 3, 2023, 9:24 PM
Excellent!
Oct 3, 2023, 9:37 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?