JSON filter doesn't recreate JSON files
I’ve converted a few JSON files to XLIFF using the JSON filter. When I try to run the translation kit postprocessing, this error message shows up and the files are not converted back to JSON:
Production/Filestorage_TP/2023/acme/2023_0075/1_trans_de/manifest.rkm
Merging: file_name.json
ERROR: Text Unit id mismatch during merger: Original id="tu1" target id="sg2_sf1_tu1"
ERROR: Text Unit id mismatch during merger: Original id="tu1" target id="sg2_sf1_tu1"
I don’t know how to troubleshoot. I can provide the source files privately if they’re needed.
TIA,
Marco
Comments (5)
-
reporter -
- changed status to open
HI Marco,
If you could provide a reduced test file that would be very helpful. But guessing from the TextUnit Id's it's possible that the version of Okapi used to postprocess was different than the version used to original extract the file. You must use the same version as changes to the code can produce slight differences.
-
reporter I’ve exported and tried to import the translated files with the same Okapi version. Same error as above.
I can send you a sample file but can’t publish it here. Get in touch with me, and I’ll send it to you privately.
-
Would you be able to create a small (with original text replaced) test file reproducing the problem? Also, what version of Okapi and what exact steps/tools are you using? If you are using a custom pipeline can you attach the pipeline config file?
-
- changed status to on hold
Using Marco's private files I couldn't reproduce the issue. I'll do a code review of Rainbow and tikal.
- Log in to comment
If I load the fprm file directly in OmegaT and translate the JSON directly, then target files are created correctly. So the issue should be in the XLIFF to JSON conversion…