Importing XML file into SDL Trados TM failed

Hello,

I'm trying to import an XML file into a translation memory in SDL Trados 2022.

The XML contains a translation memory exported from Lokalise.

I've got the following error message.

Error dialog box in Trados Studio showing 'Import failed. The file could not be processed.' with details of the system exception and stack trace related to TranslationMemoryManager and XMLTextReaderImpl.

I found a similar case with solution here: Solution Article: Trados Studio - Error during TMX import: "Import failed. The file could not be processed." (sdl.com). But for my case, the problem seems not to be "<br/>". Does anybody have an idea, how to solve the problem?

I'm using SDL Trados 2022 SR2 version 16.1.8.4404

Thanks a lot,

Chengle



Generated Image Alt-Text
[edited by: Trados AI at 12:31 PM (GMT 0) on 29 Feb 2024]
emoji
Parents
  • Hi  ,

    Thanks a lot for your fast reply! Yes, you are right. Actually, it's a TMX file.

    Please find an extract as follows (it looks much simpler that the file exported from SDL):

    <?xml version="1.0" encoding="utf-8"?>
    <tmx version="1.4">
    <heade-DEr creationtool="Lokalise" creationtoolversion="10409" datatype="PlainText" segtype="block" adminlang="en-us" srclang="de-DE" o-tmf="Lokalise"/>
    <body>
    <tu>
    <tuv xml:lang="de-DE">
    <seg>Formeln</seg>
    </tuv>
    <tuv xml:lang="fr-FR" creationdate="20220922T184309Z">
    <seg>Formules</seg>
    </tuv>
    </tu>
    <tu>
    <tuv xml:lang="de-DE">
    <seg>Unschärfe</seg>
    </tuv>
    <tuv xml:lang="fr-FR" creationdate="20220922T184309Z">
    <seg>Floutage</seg>
    </tuv>
    </tu>

    Best,

    Chengle

    emoji
  •  

    After correcting the header (typo in the forum I guess) this imports just fine for me:

    Screenshot of Trados Studio showing a translation segment with the source language 'de-DE' and target language 'fr-FR'. The first row contains the words 'Formeln' and 'Formules', and the second row shows 'Unscharfe' and 'Floutage'.

    However, I'm using  Trados Studio 2022 - 17.1.8.17828.

    I'm using SDL Trados 2022 SR2 version 16.1.8.4404

    I doubt it!  I think you're using 2021, and an old one too.  The current version is Trados Studio 2021 - 16.2.12.9338 so you should upgrade (it's free).

    However, I think your problem may be this:

    o-tmf="Lokalise"

    Try removing that attribute and then try again.  If that fail then change this:

    <tmx version="1.4">

    to this:

    <tmx version="1.4b">

    I'm guessing a bit, but I think Trados Studio 2022 had a recent fix for the o-tmf so my money would be on that!

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 12:32 PM (GMT 0) on 29 Feb 2024]
Reply
  •  

    After correcting the header (typo in the forum I guess) this imports just fine for me:

    Screenshot of Trados Studio showing a translation segment with the source language 'de-DE' and target language 'fr-FR'. The first row contains the words 'Formeln' and 'Formules', and the second row shows 'Unscharfe' and 'Floutage'.

    However, I'm using  Trados Studio 2022 - 17.1.8.17828.

    I'm using SDL Trados 2022 SR2 version 16.1.8.4404

    I doubt it!  I think you're using 2021, and an old one too.  The current version is Trados Studio 2021 - 16.2.12.9338 so you should upgrade (it's free).

    However, I think your problem may be this:

    o-tmf="Lokalise"

    Try removing that attribute and then try again.  If that fail then change this:

    <tmx version="1.4">

    to this:

    <tmx version="1.4b">

    I'm guessing a bit, but I think Trados Studio 2022 had a recent fix for the o-tmf so my money would be on that!

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 12:32 PM (GMT 0) on 29 Feb 2024]
Children