Welcome to the Prismic community and thanks for reaching out to us.
This means that another document in your repository already has this UID value. If you can't find the document with this UID value, then that means that one of your documents used to have this UID value and now it is locked.
Unfortunately, that article's solution is to find the document with the same UID and duplicate it, then make a change.
But the document that used to have that UID was deleted from the repo and then also from the archive area. It is nowhere to be found and does not get returned, even in a query of the API.
It's as if the CMS is keeping a record of that UID and there is no way for me to remove that record; even though the page itself exists nowhere.
Any ideas on this? It feels like this should not be happening if a page is truly deleted. It should be freed up for later use.
Can you please check the release, archived, draft section of your repository? It might be possible that you have a document with the old uid in these sections.
Can you please send me the URL of your repository and the "UID" text you want to fill in, which custom-type? You can share this information with me in a private message if you wish.
I checked the API and I found that one document("a-month-of-type") is still using the old-uid. You need to follow the above article link to get rid of the old uid. You need to duplicate that document then delete the original one. You will be able to give "lego-animals" uid.
1.You need to put this query [at(my.project.uid,"lego-animals")] in the query section of your API browser. You can visit your api browser through "https://mr-kaplin.prismic.io/api/v2".
Once you find the documentation with the "old-uid", go to your repository in Prismic. First duplicate the document which has the "old-uid", in your case you need to duplicate "a-month-of-type' document. After duplicating it you can delete the original one. It will delete permanently "old-uid" from the Prismic.
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
13
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.