validation error at the last line of the SDL XLIFF file (docx; Studio 2021)

Hello!

I get the following message while opening one of my files. I use Studio 2021 and Windows 10. The source file is docx. The document has some comments (I do not want to lose them so starting a new project and retrieving the translation from the TM is not the solution I would be happy with, as the comments would be lost). Opening the file in PSPad (text editor) I can see the line number mentioned in the error message is the number of the last line. Oddly, a part of the message is in English language (the language used in Studio) and a part in Polish (system language). The last part of the message reads something like "can't refer to a key".

Trados Studio error message in Messages panel showing 'SDL XLIFF validation error at line 644: offset 19:1525:...can't refer to a key'. Part of the message is in English and part in Polish.

I can export the target and update the TM.

Can anybody tell me what this message really meant? Should I bother about that?



Generated Image Alt-Text
[edited by: Trados AI at 2:15 AM (GMT 0) on 29 Feb 2024]
emoji
Parents
  • Start with switching off the validation in your project settings:

    Trados Studio project settings window showing the Validation section with 'Validate SDL XLIFF documents before reading' option checked.

    This should already help.

    The cause is typically merging segments over paragraph breaks.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 2:15 AM (GMT 0) on 29 Feb 2024]
  • I have merged some segments, but I not think I have merged across paragraphs. The error message points to this fragment of the XLIFF file: "<mrk mtype="x-sdl-location" mid="63f9c784-94e0-413f-801f-460041e5f2ab"/>" and the broader fragment is as follows:

    <group><sdl:cxts><sdl:cxt id="26"/><sdl:cxt id="9"/></sdl:cxts><trans-unit id="fc5d03d5-5854-4cf8-8b0b-139c5c6e535a"><source><g id="2795"/><mrk mtype="x-sdl-location" mid="325f6c46-f90c-4396-9420-59c8a6574c8c"/></source><seg-source><g id="2795"/><mrk mtype="seg" mid="68"/><mrk mtype="x-sdl-location" mid="325f6c46-f90c-4396-9420-59c8a6574c8c"/></seg-source><target><g id="2795"/><mrk mtype="seg" mid="68"/><mrk mtype="x-sdl-location" mid="63f9c784-94e0-413f-801f-460041e5f2ab"/></target><sdl:seg-defs><sdl:seg id="68" locked="true" conf="Translated" origin="interactive" origin-system="MergedParagraph"><sdl:value key="SegmentIdentityHash">PrQWIj6eaea7juGXk5Ea0a0gJ9g=</sdl:value></sdl:seg></sdl:seg-defs></trans-unit></group>

    I assume that the 'mid="68"' means the segment number 68. There is no segment number 68, it has been merged probably (I have 66a, 66ba, 66bba, 66bbb and then 71).

    I have switched the validation off as you suggested, . Thank you for your suggestion. The error is not reported any more. However, is it safe to work with the validation off? Is it a way to fix the error?

Reply
  • I have merged some segments, but I not think I have merged across paragraphs. The error message points to this fragment of the XLIFF file: "<mrk mtype="x-sdl-location" mid="63f9c784-94e0-413f-801f-460041e5f2ab"/>" and the broader fragment is as follows:

    <group><sdl:cxts><sdl:cxt id="26"/><sdl:cxt id="9"/></sdl:cxts><trans-unit id="fc5d03d5-5854-4cf8-8b0b-139c5c6e535a"><source><g id="2795"/><mrk mtype="x-sdl-location" mid="325f6c46-f90c-4396-9420-59c8a6574c8c"/></source><seg-source><g id="2795"/><mrk mtype="seg" mid="68"/><mrk mtype="x-sdl-location" mid="325f6c46-f90c-4396-9420-59c8a6574c8c"/></seg-source><target><g id="2795"/><mrk mtype="seg" mid="68"/><mrk mtype="x-sdl-location" mid="63f9c784-94e0-413f-801f-460041e5f2ab"/></target><sdl:seg-defs><sdl:seg id="68" locked="true" conf="Translated" origin="interactive" origin-system="MergedParagraph"><sdl:value key="SegmentIdentityHash">PrQWIj6eaea7juGXk5Ea0a0gJ9g=</sdl:value></sdl:seg></sdl:seg-defs></trans-unit></group>

    I assume that the 'mid="68"' means the segment number 68. There is no segment number 68, it has been merged probably (I have 66a, 66ba, 66bba, 66bbb and then 71).

    I have switched the validation off as you suggested, . Thank you for your suggestion. The error is not reported any more. However, is it safe to work with the validation off? Is it a way to fix the error?

Children
No Data