Issue importing TMXs into TM in Studio 2022 (but not Studio 2019)

We've been running into an issue where importing TMXs from an external tool into a Studio TM does not work in Studio 2022 - yet the import works with the same TMXs in Studio 2019. This is the error message that appears when trying to import the TMXs in Studio 2022:

Error dialog box from Trados Studio with a red cross symbol indicating 'Import failed. The file could not be processed.' and a detailed error message below.

When searching for the error message, we came across the following article:

https://gateway.rws.com/csm?id=kb_article_view&sysparm_article=KB0034896

However, there were no segments with empty targets, and it appears to be a different issue. After splitting the TMXs into smaller and smaller parts, we found that the issue is with translation units containing <note> segments.

Snippet of TMX code with XML tags showing translation units, properties, and a note element within the source and target elements.

Once we delete the <note> elements, the import works fine. Considering this is not an issue in Studio 2019 and note elements in tuv elements are allowed according to TMX specifications, is this a bug in Studio 2022? (There are also no problematic symbols or anything like that within these note elements.)

Thank you.



Generated Image Alt-Text
[edited by: RWS Community AI at 1:25 PM (GMT 0) on 14 Nov 2024]
emoji
Parents Reply
  •   

    <prop> elements as seen in my screen print are not custom fields. They are in fact default.
    Where as you are thinking 

    it seems to list <prop> elements, which are indeed used for custom fields.


    <note> would be a custom field as I see it. This is further supported given your resource link has the following statements

    • while <note> and <prop> allow you to store information specific to each <tuv>.
    • <note>Text of a note at the TU level.</note>

    I also see they say: 

    <note>This is a note at document level.</note>

    In your working examples is note at document level or TU level?

    In order to try clear confusion quicker and given you say that Trados Studio 2019 the import works error free,  please open the TM settings and check to see if there is <note> listed as a custom field:

    Trados Studio Translation Memory Settings window showing 'Gala' selected with 'Fields' expanded. A red arrow points to 'note' listed under Name column indicating it as a custom field.

    Alternatively please do provide a small data set

    Lyds

    Lydia Simplicio | 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 1:33 PM (GMT 0) on 29 Feb 2024]
Children
  • Yes, I understand <prop> elements are default. I was just saying they are used to define custom fields, i.e. those elements which are not part of the TMX specification.

    However, <note> is a part of the TMX specification, just like <prop> is. Yet it appears to cause issues in Studio 2022 but not Studio 2019.

    "Note" is not a custom field in the TM in Studio 2019 or Studio 2022. And even if I add it, that does not change anything. It would create a prop element defining note. But note is a part of the TMX specification just like prop is.

    As mentioned, the sample TMX file from the TMX specification does not work either. But as soon as you delete the note element, it will import both in Studio 2019 and Studio 2022.

    https://www.gala-global.org/tmx-14b#AppSample

    As a further test, I have created the simplest TMX via Studio that I could. Then I added a <note> element. Afterwards, I could import that TMX without issue into a blank Studio 2019 TM. However, that same import does not work on a blank Studio 2022 TM. It only works once you delete the <note> element.

    <?xml version="1.0" encoding="utf-8"?>
    <tmx version="1.4">
      <header creationtool="SDL Language Platform" creationtoolversion="8.1" o-tmf="SDL TM8 Format" datatype="xml" segtype="sentence" adminlang="en-US" srclang="en-US" creationdate="20240104T130028Z" creationid="test">
        <prop type="x-Recognizers">RecognizeAll</prop>
        <prop type="x-IncludesContextContent">True</prop>
        <prop type="x-TMName">Test (EN-DE)</prop>
        <prop type="x-TokenizerFlags">DefaultFlags</prop>
        <prop type="x-WordCountFlags">DefaultFlags</prop>
      </header>
      <body>
        <tu creationdate="20240104T130153Z" creationid="test" changedate="20240104T130156Z" changeid="test" lastusagedate="20240104T130156Z">
        <note>A simple greeting</note>
          <prop type="x-LastUsedBy">test</prop>
          <prop type="x-Context">0, 0</prop>
          <prop type="x-Origin">TM</prop>
          <prop type="x-ConfirmationLevel">Translated</prop>
          <tuv xml:lang="en-US">
            <seg>Hello</seg>
          </tuv>
          <tuv xml:lang="de-DE">
            <seg>Hallo</seg>
          </tuv>
        </tu>
      </body>
    </tmx>

    emoji
  •  Please find attached a tmx file based on your sample.

    It fails for me in 2021 and 2022 with the same error you mentioned: 

    Trados Studio error message window showing 'Import failed. The file could not be processed.' with details of the XML parsing error.

    It is very unclear to me how you have it working error free in 2019 but I will continue to enquire. 

    Note.tmx

    Lyds

    Lydia Simplicio | 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 1:33 PM (GMT 0) on 29 Feb 2024]
  • I think I had a similar problem last spring (2023) trying to import tmx files from an external MT engine into the trial version of Studio 2022. During an Elevate event in May 2023 I was explained the problem was not popping up with Studio 2021 and was going to be fixed with the Studio 2022 release of June 2023. I would like to make sure this issue has been fixed before upgrading. Looking forward to knowing more, thanks and regards.

    emoji