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

Where will experienced translators come from if there are fewer inexperienced ones on the market?

Abstract semi-philosophical considerations Machine translation is gradually pushing out of the market those translators who cannot keep up with it in terms of quality, i.e., those who are not very experienced. As a result, the ratio of experienced to inexperienced translators should theoretically gradually change in favor of the former. This seems to be a […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 4

How to fix «Failed to save target content: Cannot find central directory» error in Trados Studio

About the ways to fix the issue in Trados Studio When trying to generate a translated document in Trados Studio, this error sometimes occurs: Failed to save target content: Cannot find central directory. It happens because of corrupted data in the source file used to create and store the SDLXLIFF file you translated in Trados […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 5

How to fix «Failed to open return package» error in Trados Studio

About another issue in Trados Studio When importing a package, Trados Studio might say that it Failed to open return package, because it contains a project that does not exist in your setup. That it’s not a Trados Studio issue, but yours: you tried to import a return package for a project Trados Studio doesn’t […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 6

Lorem ipsum

About the dummy or placeholder text Lorem ipsum is a meaningless Latin text, so-called dummy or placeholder text, which is used to estimate how a layout will look with text presented in a particular font. This is usually done by designers, but it is also needed for pseudo-localization. This text became widely popular due to […]
How to Get Rid of the “Error Occurred in File … Attempted to Divide by Zero” Error in Trados Studio - 7

You sell not only the translation, but also your expertise

Some thoughts and reflections Modern technical translators have to be inquisitive. They don’t even have to; they must. The tools they use today will become unrecognizable in a few years. New programs and methods emerge, existing knowledge becomes outdated, and translators who are not interested in anything beyond the text are being outpaced by more […]