Fixing corrupted TMW files in SDL Trados

posted Aug 16, 2013, 4:47 AM by Milan Karásek   [ updated Aug 16, 2013, 10:55 AM ]

Sometimes happen that SDL Trados 8 (2007) database (TMW file) gets corrupted, can't be fully exported and even reorganization doesn't help, stucking  at some position in the middle of the database when processing. Many people tried to solve this, even SDL specialists, but without any success. Usual error message says: 

  • 50052: Inconsistent data. Pls reorganize the database o run an export/import 
  • 50050: Source segment is empty!


The issue can be solved using "Emergency Export" in Trados. This kind of export is offered when a corrupted TMW file 
is opened in Trados Workbench and exports ALL segments from the database even when it is corrupted. The problem is that 
not all types of corruption are the same for Trados and Emergency export is invoked very occasionally  I have tried to create 
a TMW file which always invokes this situation and it seems I succeeded. 

To solve this problem, follow the steps:
  1. Make a backup of your files (always recommended)

  2. Open TMW file in any binary editor (I've used UltraEdit but free PSpad could help as well) and look for binary pattern

          01 00 00 00 00 15 00 00 02 00 00 00 40 20 00 00  

    It is usually located at the beginning of the file at adress around 0x0500h. 
  3. In this binary code, just reset bytes 13 and 14, like:

          01 00 00 00 00 15 00 00 02 00 00 00 00 00 00 00  

  4. Save the file and open in Trados Workbench.

  5. While opening, the Error dialog box appears asking whether to run an emergency export. Click on 'Yes' button and create the export file. You can now close Trados Workbench.

  6. Open a new instance of Trados Workbench and create a brand new database, based on corrupted one (if possible).

  7. Import the "emergency export" file.

  8. That's it.

1-1 of 1