Stale read on CreateTranscriptions
One query is used to fetch all of the element_id
used in all transcriptions sent to CreateTranscriptions
. This query looks up elements in the replica, so recently created elements (especially numerous ones from CreateElements
) might not always be visible, resulting in errors.
Example from a Transkribus import
[ERROR] Failed importing transcript 164781/CE601S095-1877_duplicated/0005_6061341.xml to page 6e9ef38b-ac1b-4067-b325-fc6e1be7a654: 400 - {'transcriptions': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'element_id': ['Element 1f03888f-36e8-467b-9850-804b58df5abd was not found or cannot be written to.']}, {'element_id': ['Element 4dd1b788-bed3-4f1c-b9ee-7ffe94717a63 was not found or cannot be written to.']}, {'element_id': ['Element 41c57835-836a-4010-a07f-143124fa3b44 was not found or cannot be written to.']}, {'element_id': ['Element 2150c750-459c-45e1-9ef5-487f7b2b67d4 was not found or cannot be written to.']}, {'element_id': ['Element 36090dee-15e7-47b9-a4f1-f025a790e28a was not found or cannot be written to.']}, {'element_id': ['Element 7b3b5ae6-cae5-48e7-a756-b92cdc2fa31b was not found or cannot be written to.']}, {'element_id': ['Element c5686d33-3d08-4385-853f-5864f9ff5b6e was not found or cannot be written to.']}, {'element_id': ['Element 54f7a084-4500-402e-8412-86268fd89feb was not found or cannot be written to.']}, {'element_id': ['Element fa9c6fb7-e495-4c1a-9508-a9d7505f087b was not found or cannot be written to.']}, {'element_id': ['Element 34e8175d-fb21-4eb1-a2b3-46319fd63b6d was not found or cannot be written to.']}, {'element_id': ['Element a3c93b33-fc99-41aa-ad22-7fc3538e23fe was not found or cannot be written to.']}]}