JSON filter doesn't recreate JSON files

Issue #1317 on hold
Marco Cevoli created an issue

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)

  1. Marco Cevoli reporter

    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…

  2. jhargrave-straker
    • 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.

  3. Marco Cevoli 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.

  4. jhargrave-straker

    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?

  5. jhargrave-straker

    Using Marco's private files I couldn't reproduce the issue. I'll do a code review of Rainbow and tikal.

  6. Log in to comment