Docx file would not open for translation in Studio

Dear Studio 2015 users,

I received the following error message when trying to open a docx file using translate a single file method in Studio 2015.  I ended up using another tool to complete the task (it imported the file without problems), but I would like to know if there is a fix for this issue so that I can continue using Studio next time.

Thank you.

Chunyi

  • Hi again Chunyi,

    I've never seen that particular error message before but I never work on any translation as a 'single file'. I always work with projects because it is tidier. I always have, ever since Studio and projects began.

    Actually, there is a fix for this on the Knowledgebase:

    kb.sdl.com/.../

    In case for some reason the link doesn't work for you, here is what it says you must do:

    Follow these steps:

      1. Exit Studio.
      2. Go to...

      ...the project file (*.sdlproj)

          •  of the affected project in the folder of the project or located in the same folder where the source file is located when using 

      Translate Single Document

          • ...or...


      ...when this issue occurs when editing a project template

          • , go to the affected project template file with 

      *.sdltpl

          •  extension.

        • Open the project or template file with a text editor (for example Notepad).
        • Change all occurrences of the string MicrosoftOffice.Common to MicrosoftOffice.Core.Common within the <SettingsGroup Id="WordprocessingML v.2> element:

           

                  <SettingsGroup Id="WordprocessingML v. 2">
                    <Setting Id="NonTranslatableStyleMappingRules3">

                      <NonTranslatableStyleMappingRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Common">

           

                        <StyleName>tw4winMark</StyleName>

                        <TagProperty>Inline</TagProperty>

                      </NonTranslatableStyleMappingRule>

                    </Setting>


          Be sure to repeat this action for all occurrences of this string (by default it occurs four times).
        • Restart Studio. You should now be able to edit the project settings or template.

        (Explanation:

        This error occurs in the following circumstance:

        • In a previous Studio 2015 release (such as Studio 2015 CU3), you accessed and confirmed the Styles settings within the Microsoft Word 2007-2016 file type settings.

        In Studio 2015 SR2, the settings structure for styles has been modified. Normally, these settings are not actively written by the Microsoft Word file type, which is why this issue occurs only rarely. But if you access and change these settings or leave them unchanged, but confirm the dialog box with OK, then the settings are written to the *.sdlproj (project) or *.sdltpl (project template) file. This then causes the error in SDL Trados Studio 2015 SR2 as it no longer expects this settings structure.)


        If you tried the above and this doesn't work for you...

        Since before Studio, if a Word file has caused me trouble, I have always gone back to the original file in Word before taking it to the Project stage. That is where you will be able to create a file that works. This can involve various possibilities, depending on what content is causing the problem. It can be as simple as saving to a new docx file with a different filename or saving to .doc or .rtf, or as complex as eliminating macros, headers, footers, images, imported tables or other '3rd-party' content, in order to create a file that works.

        Thankfully most of these problems are relatively rare now but the thing that has stayed the same is that it is a lot easier to create a file that works on saving to Target BEFORE translation than after. So whatever you try, as soon as you create your Project, save to Target to see if it works. If it doesn't try eliminating some content that could be causing the problem, from a copy of the orginal Word file, and then see if that will save to Target.

        Finally, I find using a project is always the most stable way of working, whatever original format of file you are working on.

        All the best,
        Ali

      1. Hi Ali,

        Thank you for your kind help. Unfortunately I found out just now that this error message occurs with every file I try to open in Studio using the translate the single file method.
        One thing I can think of that may have caused the problem (just my wild guess) is I moved all Studio related files and folders to Onedrive under my C drive instead of using C:\username\Documents. OneDrive is still under local drive, but then it sends my documents to the Cloud which allows me to access these documents from my laptop when needed. I am not sure if this change confused Studio and caused this issue.
        Anyway, I have logged a case with SDL Support and hopefully will hear from them soon.
        Thank you for all of your help!

        Chunyi
      2. In Studio go to File -> Options and click there File Types. Then press the "Reset to Defaults" button on the left.
        When done, go to File -> Setup -> Project templates, remove all templates listed there and import them again.
        This should reset the error.

        _________________________________________________________

        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.

      3. Hi Chunyi, hi Jerzy,

        Thank you Jerzy, I wouldn't have thought of that.

        Chunyi, do you mean that you actively work to files on OneDrive, or that you download files from there when you want to work on them locally? The former would cause problems for my setup because I live in an area where the internet connection is unreliable. The latter should not cause any problem.

        Anyway, I'm sure that SDL Support will help you better than I. On the other hand, I believe that Jerzy has the knowledge and ability to help you as well as anyone from SDL Support ;-)) He's one of my Heroes :))

        Enjoy the rest of your Sunday,
        All the best,
        Ali

      4. Wow, thanks Ali, but please do not exaggerate :)
        BTT: when you "move" files used by Studio, changes must happen. Some files are stored in the Document library in Windows 10. You can easily mount it with OneDrvie WITHOUT moving this folder. This is for Window 8.1, but should work also for Win 10: www.howtogeek.com/.../
        I have moved the Libraries to my HDD D:\ and synchronized Documents with OneDrive. This way all Studio templates and other files are on OneDrive. This way Studio uses the OneDrive local folder, but does not lose its connections.

        _________________________________________________________

        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.

      5. Hi Jerzy,

        No exaggeration, I assure you :D

        Have a good evening, or what's left of it ;-)
        Ali :))
      6. Thank you. Enjoy the evening and hopefully a bank holiday tomorrow? At least this is what we have in Germany.

        _________________________________________________________

        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.

      7. No bank holiday here in the UK but it would make no difference, I have too much work to stop! But I'm not complaining, I LOVE being busy!
        Have a great day tomorrow - I hope you'll be relaxing, my friend!
        Ali :)
      8. Hi Ali,

        I followed Jerzy's advice and fixed the file won't open problem:)
        Regarding the OneDrive setup, I thought it's cloud based, but then I realized with Windows 10, OneDrive is set up in your local drive. It just has the added benefit of storing a copy in the cloud so that it can be accessed from your other devices. I have always wanted to synchronize Studio projects on my two desktop computers at home (and on my laptop which I got a few months ago), so working with OneDrive seems to be a better way for me.
        One thing I am not sure if whether it slows down Studio a little since it sends files to the cloud for synchronization. When I was working with Studio projects stored in C not C's OneDrive, Studio seemed faster. But this could be my misconception since I did not spend much time working this way before moving stuff to OneDrive. Anyway, the speed is acceptable, and I will stick to this method unless the disadvantages outweigh the benefits.

        Chunyi
      9. Hi Jerzy,

        I followed your advice and the issue was gone. Just the first part of your suggestion (reset to defaults) did the trick.
        Thank you so much for your help!

        Chunyi