Baffling "unexpected contents" error

Here is one for the geeks: I had 2 Word files today where Prepare (except steps Convert To Translatable Format and Copy To Target Languages) failed with an "unexpected contents" error (see sdlerror-2022630-20h20m24s.sdlerror.xml). There is no stack trace!

Opening the file in the editor (it had converted after all) produced also an error (see Editor - sdlerror-2022630-20h27m4s.sdlerror.xml), this time with a stack trace.

I managed to narrow the problem down to a sequence where apparently a formatted tab character seems to be the culprit. Thus I was able to create a single line Word sample file producing the same error. Both replacing the tab char with a non-breaking space (other chars would probably do, too, but I haven't checked) or altering the formatting solved the problem.

I reproduced the error on 2 PCs, both with Trados Studio 2021 SR2 - 16.2.11.9327, different TMs & settings. To me this looks like a proper bug. If you cannot reproduce the error with the attached sample then I apologize and would like to know.

The attached zip contains:-

  • Some text (for testing).docx + Some text (for testing).docx.sdlxliff -- the Word file with the error + its xliff <-- unexpected contents
  • Some text (for testing) - repaired.docx + Some text (for testing) - repaired.docx.sdlxliff -- the Word file with changed formatting + its xliff (it looks the same to the naked eye) <-- no unexpected contents
  • Some text (for testing) first tab replaced.docx + Some text (for testing) first tab replaced.docx.sdlxliff -- the Word file were the first tab has been replaced with a non-breaking space <-- no unexpected contents
  • sdlerror-2022630-20h20m24s.sdlerror.xml
  • Editor - sdlerror-2022630-20h27m4s.sdlerror.xml

baffling formatting issue.zip

emoji
Parents
  • Ash on my head, everyone stop scratching your heads: I found the real culprit and it's me, me, me and me alone.

    Since the beginning of times and/or Trados Studio (or at least since the words "Fill your computers with software and subdue it" were uttered) I have a segmentation rule for tabs on all my TMs. It goes like this: no matter what comes before or after, a tab is a segment break.

    It actually had crossed my mind this could be the crux of the matter and I even removed the rule for a test but obviously I must have made a mistake. New day, new chance to better ourselves I tried again with a freshly minted TM and all the default settings and, hey presto, the matter was solved. Special thanks once more to  who put me on the right path.

    (Still curious though why the error occurs and why not during the conversion to xliff - where AFAIK also the segmentation happens - but while interpreting the xliff for analysis, pre-translation and what not)

    emoji
  • Hi Angela,

    I'm a little confused at your last post, though I'm pleased you found a solution!

    You thanked  for putting you on the right track... I'm pleased that he did but were you in private communication with each other?

    If not, I am unsure how his last post gave you the solution.

    If so, can you share here the full solution to your problem ... always useful for future users looking for answers.

    You said 'again with a freshly minted TM' - how does that indicate that it's your segmentation rule that was at fault? Was it the only non-default rule?

    Just asking in case there is more information that could be useful to others... and because I'm a pedant...

    Glad your problems were sorted either way...

    All the best,

    Ali Smiley

    emoji
Reply
  • Hi Angela,

    I'm a little confused at your last post, though I'm pleased you found a solution!

    You thanked  for putting you on the right track... I'm pleased that he did but were you in private communication with each other?

    If not, I am unsure how his last post gave you the solution.

    If so, can you share here the full solution to your problem ... always useful for future users looking for answers.

    You said 'again with a freshly minted TM' - how does that indicate that it's your segmentation rule that was at fault? Was it the only non-default rule?

    Just asking in case there is more information that could be useful to others... and because I'm a pedant...

    Glad your problems were sorted either way...

    All the best,

    Ali Smiley

    emoji
Children