DeepL plugin is not working in SDL Trados 2021 - 2 different error messages

Hello,

For a while now, my DeepL plugin has not been working. I have tried the steps provided here. I have set the language pairs and have set my default language (En-Fr)

Here is the error message I get when I use the path Use... DeepL MT translation Provider

Screenshot showing a software interface with a list of options and a red arrow pointing to 'DeepL MT Translation Provider'.

Warning message window saying 'The translation provider 'DeepL Translation provider' could not be opened and has been disabled.' with an OK button.

But here is the error message I get when I use the path Use... AnyTM: Any other translation provider... DeepL MT translation Provider

Screenshot showing a software interface with a list of options and a red arrow pointing to 'AnyTM: Any other translation provider...'.

Error message window saying 'Object reference not set to an instance of an object.' with Knowledge Base and Community links and an OK button.

My DeepL API key is working on another account, so I know this is not the issue. My version is Studio Pro 2021 SR2 16.2.12.9338

I have save a fiddler session when doing all this. Can you help?



Generated Image Alt-Text
[edited by: RWS Community AI at 11:51 PM (GMT 1) on 17 May 2024]
emoji
  •  

    Better to share the file from here:

    Error dialog box with a red cross icon, displaying the message 'Object reference not set to an instance of an object.' with an 'OK' button and links to 'Knowledge Base' and 'Community'.

    That error message could be anything... it's just a generic description explaining that the code is trying to use an object that hasn't been properly created.  The cause could be the code, it could be something you have done and the software allowed you to do it when it probably shouldn't!  The full error message might be more helpful in finding the issue.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 12:47 AM (GMT 1) on 18 May 2024]
  • Thanks for your prompt answer, here is a SS of the error message (if I copy it, the site thinks I'm spamming :/)

    <SDLErrorDetails time="17/05/2024 20:58:34">
    <ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
    <Exception>
    <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink/>
    <Source>Sdl.TranslationStudio.Plugins.AnyTM</Source>
    <HResult>-2147467261</HResult>
    <StackTrace>
    <![CDATA[ at Sdl.TranslationStudio.Plugins.AnyTM.AnyTMProviderFactory.GetTranslationProviderInfo(Uri translationProviderUri, String translationProviderState) at Sdl.ProjectApi.TranslationProviderItem.GetTranslationMethod() at Sdl.ProjectApi.TranslationProviderItem.IsMachineTranslation() at Sdl.TranslationStudio.Common.TranslationMemory.AutoTranslateEnabler.SignalIfAutoTranslateShouldBeEnabled(ITranslationProviderItem currentProvider) at Sdl.TranslationStudio.Common.TranslationMemory.TranslationMemoriesControl.pluginContextMenuStripItem_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ]]>
    </StackTrace>
    </Exception>
    <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio16</ProductVersion>
    <EntryAssemblyFileVersion>16.2.12.9338</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>2057</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>ALCHEMIST\User</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>ALCHEMIST</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>33387852 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 1:04 AM (GMT 1) on 18 May 2024]
  •  

    The site thinks you are spamming it when you add it as text.  If you attach the XML file you save, or add it as "code" using the insert menu then most of the time it gets through.  Not always, but most of the time.  We have to run fairly strict rules on posts because otherwise the forum gets full up with posts from spammers.  If you saw how many you'd definitely see this as a small price to pay :-)

    I removed your image and inserted the code.  It's easier to work with when it's not an image.

    Clearly this error is coming from AnyTM, and it's probably triggered because the addition of DeepL doesn't work anyway.  So my best suggestion is you delete all files from these locations:

    c:\Users\%username%\AppData\Roaming\SDL\SDL Trados Studio\16\Plugins

    c:\Users\%username%\AppData\Local\SDL\SDL Trados Studio\16\Plugins

    c:\ProgramData\SDL\SDL Trados Studio\16\Plugins

    Then add DeepL back after downloading again from the appstore, and make sure you have the correct version for your needs.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • So much spam everywhere, I understand the need for this system!

    Unfortunately, after deleting the content of the 3 paths you mentioned, I still get an error message (attached as XML here)

    <SDLErrorDetails time="19/05/2024 21:54:29">
      <ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
      <Exception>
        <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>Sdl.TranslationStudio.Plugins.AnyTM</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   at Sdl.TranslationStudio.Plugins.AnyTM.AnyTMProviderFactory.GetTranslationProviderInfo(Uri translationProviderUri, String translationProviderState)
       at Sdl.ProjectApi.TranslationProviderItem.GetTranslationMethod()
       at Sdl.ProjectApi.TranslationProviderItem.IsMachineTranslation()
       at Sdl.TranslationStudio.Common.TranslationMemory.AutoTranslateEnabler.SignalIfAutoTranslateShouldBeEnabled(ITranslationProviderItem currentProvider)
       at Sdl.TranslationStudio.Common.TranslationMemory.TranslationMemoriesControl.pluginContextMenuStripItem_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio16</ProductVersion>
        <EntryAssemblyFileVersion>16.2.12.9338</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>2057</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>ALCHEMIST\User</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>ALCHEMIST</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>33387852 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    Can you tell me what I should do?

    I appreciate your help!

    emoji