our blog

How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio

How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 1

If Studio decided to divide by zero

The fascinating TV show about Trados Studio errors continues! 

How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 2

The Error occurred in the file ... Attempted to divide by zero error appears when you try to import a WSXZ package. The error is rare: Google knows about it by hearsay, and even if you use the link, you will find the description of termbase issues, but the real reason turned out to be different.

The exact origin of this issue is unknown, but it is related to some problems with the XLF file structure. Surprisingly, the problematic XLF file itself gets opened as intended (in our case).

First, you should inform your client about the issue. If the client is unavailable or has no idea about how to solve it, perform the operations below. Their common purpose is to retrieve the XLF file from the package and translate it separately. The order of actions is as follows:

  • Rename the package file: replace the WSXZ extension with ZIP, or just add the ZIP extension.
  • Unzip the resulting ZIP archive.
  • Manually create a project in Trados Studio with the name repeating the name of the source package and the same language direction.
  • Specify the XLF file from the unzipped archive as a file for translation.
  • In the project, create an empty translation memory and import the TMX file from the unzipped archive into it.
  • If the unzipped archive contains a TBX file, connect it as a termbase. You need to convert it from TBX to SDLTB first—we will tell you how to do it in one of the future posts because this one is already getting huge :)
  • Namely, translate the project as usual.
  • Put the translated XLF file instead of the XLF file with the same name into the unzipped archive without changing its structure.
  • Make an archive out of the unzipped ZIP archive.
  • Change the ZIP extension back to WSXZ. Then, you will probably have to either upload the package to SDL WorldServer (if you have done everything correctly, the server will accept it) or send it to your client, depending on your procedures.
  • Profit.

The instruction seems long, but it takes longer to write than do what it tells: it is important to understand the purpose of each action, though. And if your XLF file is small and the translation memory does not reduce the amount of work, you can translate it by opening it in Trados Studio directly, i.e., even without creating a project.

If you know a more humane method, please share.

Recommended content

How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 3

How to fix the «Failed to load project from …» error in Trados Studio

About another error in Trados Studio Let’s analyze the Trados Studio error: Failed to load project from … There is an error in XML document (X, Y). Unexpected end of file has occurred. Unexpected end of file while parsing Name has occurred. The error is caused by a violation of the structure of the SDLPROJ […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 4

A Few Abbreviations Every Technical Translator Should Know

Useful information for technical translators Here is are a few abbreviations you will encounter regularly if you work in technical translation:  
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 5

How to Prevent Data Loss If Your CAT Tool Crashes

Useful tips about working with CATs If your CAT tool crashes and there is a risk of losing the completed portion of your translation, the first priority is to preserve the work you have already done. Only after securing the data should you attempt to fix the issue. Otherwise, you may have to redo the […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 6

Why Word May Refuse to Check Spelling

Useful tips about working in Word Why Word may refuse to check spelling: Go to File → Options → Proofing, then select the Check spelling as you type checkbox and clear the Hide spelling errors in this document only checkbox (see image). Select the text you want to check, then verify that the correct language […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 7

How to replace “straight quotes” with «guillemets» in Word

Useful tips about working in Word We already know how to quickly replace straight quotes with guillemets in Trados Studio and memoQ. Sometimes this has to be done not in the CAT tool but directly in the “monotext,” the text in the target language in Word. The easiest way to do this is to use […]