🎤 Builder Talk: The Story Behind Lady Gaga’s Digital Experience – Register now

Indexing issue resolved for document update problem in Sanity dataset

8 replies
Last updated: Jun 7, 2022
Hello there 🖖
We currently have a problem with Sanity datasets, actually, with one of the datasets.

In a particular document type, the user can start creating a document and it is saved as a draft, so far so good, once the document is published, the document id changes from
draft.123**456
to
123**456
, everything OK, as expected, but it does not allow to update it anymore. We have tried with the cli import script into another dataset we have and works, but not on this one.
Has anyone experienced a similar problem? Or do you have ideas on how to debug this better? Thanks in advance
May 25, 2022, 5:06 PM
Hi User. Are you using any document actions that set the document as read-only on publish?
May 25, 2022, 5:13 PM
hello
user A
not afaik, how can I check it?
May 25, 2022, 5:15 PM
Your sanity.json file would implement a part like
part:@sanity/base/document-actions/resolver
. The file in the path will contain (or import) the document action code.
In addition, it might help if you’re able to include your schema for that one document type.
May 25, 2022, 5:23 PM
  "parts": [
    {
      "name": "part:@sanity/base/schema",
      "path": "./schemas/schema"
    },
    {
      "name": "part:@sanity/desk-tool/structure",
      "path": "./desk-structure.ts"
    },
    {
      "implements": "part:@sanity/production-preview/resolve-production-url",
      "path": "./resolveProductionUrl.ts"
    },
    {
      "implements": "part:@sanity/base/theme/variables/override-style",
      "path": "./styles/variables.css"
    }
  ]
this is what we have right now
May 25, 2022, 5:28 PM
A fix has been implemented and this should now be resolved. Thanks for your patience, Luis.
Jun 4, 2022, 5:37 PM
could you please detail what the problem was and if it is solved forever or it could happen again, thank you in advance
Jun 6, 2022, 9:24 AM
It was an indexing issue, which we don’t see too often but it can happen. The team mentioned they will be prioritizing work on this to make it even less likely going forward.
Jun 6, 2022, 4:16 PM
great, many thanks
user A
for all your support on this!!
Jun 7, 2022, 7:21 AM

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?