Closed mariask2 closed 2 years ago
The corruption of the data seems to have happened when I uploaded more data. The error response above is from when I uploaded a small collection again.
I created a new collection and uploaded the same tbx again, and the same problem occurred again.
The collection is called: "A replica of the Faketerms collection that seems to have been corrupted" And I have given it Id 3 (the internal id is 42)
When uploading the tbx, I got the following response: add_terms_responses: [{'updatedEntries': 2, 'skippedAsCorrupted': 0, 'addedNewEntries': 26, 'totalImportedEntries': 28, 'skippedAsDuplicates': 0}]
So all seem to have been imported, and nothing was skipped as corrupted.
I think I've found the problem: non-ascii characters in the id. Perhaps you could add a check when pushing the tbx to make sure that the id only contains ascii characters (if that is required for things to work).
I added new terms to the collection "Faketerms third try" (id 44, Isof Id 4), and got the following response: add_terms_responses: [{'totalImportedEntries': 40, 'updatedEntries': 14, 'skippedAsDuplicates': 14, 'skippedAsCorrupted': 0, 'addedNewEntries': 26}]. However, the error occurs again, despite having removed non-asci id:s
I tried again, to create a new collection with the same tbx (still no id:s with non-ascii), and got the following response when uploading: (Isof id: 5, id, 45) add_terms_responses: [{'skippedAsDuplicates': 0, 'addedNewEntries': 54, 'skippedAsCorrupted': 0, 'updatedEntries': 0, 'totalImportedEntries': 54}]
However, it is still empty (with an entry count of 54)
I believe this one is solved together with #88
It says that the entry count is 28, but no terms are shown. No error message was given when the collection was last updated:
The following was returned: add_terms_responses: [{'updatedEntries': 2, 'addedNewEntries': 0, 'skippedAsDuplicates': 0, 'skippedAsCorrupted': 0, 'totalImportedEntries': 2}]
This happened for collection with id 1 från Isof