Some documents are not returned from the REST API

There are 2 out of 2671 documents in my repository that are not returned from the REST API. They are not listed when I query all documents in my repository and they are not returned If I query them by id.

Both documents are published and they are using an active custom type. I can only see them in the editor or in the export archive.

Re-publishing those two documents would probably fix the issue. But I would like to understand the cause of this problem before trying this.

Thanks.

Hello @paul.ntawuruhunga, can you share the URL of your repository and the query to get the doc? Have you tried looking for it by UID?