SDL XLIFF validation error at line 198 offset 54926: The 'mtype' attribute is invalid - The value 'x-' is invalid according to its datatype
000003308|8/14/2017 3:25 PM
Scope/Environment
Trados Studio
Symptoms/Context
Once you import a Studio Return package (or you try to create a WorldServer Return package), you will receive the error message:
SDL XLIFF validation error at line..
Resolution
Edit the SDLXLIFF from the return package in Notepad++.
To be able to do this, you will have to rename the return package from nameofpackage.sdlrpx (or nameofpackage.sdlrpx.wsxz)to nameofpackage.zip
Explore the zip file and find the SDLXLIFF file. Extract it from the zip and open it in Notepad++.
Go to the location mentioned in the error message, for example: line 198 offset 54926. This is where you will find that mrk mtype="x-" as the wrong attribute
Replace mrk mtype="x-" with mrk mtype="x-x-sdl-none".
Save the file and copy it back into the zip file.
Rename the return package from nameofpackage.zip to nameofpackage.sdlrpx.
Open the Return package in Trados Studio. It will now open correctly. If you work with a WorldServer Studio project, you will now be able to create a correct Return package
Root Cause
The issue is caused by a corrupt attribute inside the structure of the .sdlxliff file. To be more specific, it was defined as “x-“ instead of “x-x-sdl-none".