This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error message when I open a file in Editor: Object reference not set to an instance of an object

Hi,

I bought Trados a month ago and started getting this error message (Object reference not set to an instance of an object) when I open a file in Editor, after I'm prompted to choose Source and Target languages and TMs, this message pops up in Editor. It seems to disable TMs and MT. 

I've tried to uninstall Trados and install it again. That didn't help. I've also tried the Repair button but that didn't help either.

Could you please help me fix this?

Please find the error details below:

Type   System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

HelpLink:

Source   Sdl.TranslationStudio.Editor

HResult: -2147467261

I use Windows 10, Microsoft Office Home and Student 2019, it is a Word file, language pair English>Czech, I've selected English>Czech

Yesterday I translated the very same file no problem and today when I open it I get this error. It happens with other Word files, PPTs and with .txt files.




[locked by: Steven Whale at 9:27 AM (GMT 0) on 6 Dec 2019]
  • Hello ,

    Could you please post the full error stack please as this may help identify the issue.

    Error dialog box with red X icon, 'Click here' and 'Advanced Editing Options' highlighted in Trados Studio interface.

    As you said 

    Yesterday I translated the very same file no problem and today when I open it I get this error.

    .If you create your own test project, does the problem still occur- or is it only with a particular set of files from a client?

    How did you receive the files? Individually or via an SDLPPX (package)?

    The more information you can provide, the easier it is to identify the problem-

    https://community.sdl.com/product-groups/translationproductivity/w/customer-experience/4159/how-to-get-help-quickly-in-the-sdl-community-technical-forums

    Lydia Simplicio | 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: Trados AI at 7:25 PM (GMT 0) on 28 Feb 2024]
  • Hello Steven,

    Thank you for getting back to me. It happens with individual files. So far I've received 2 project packages and on those 2 occasions Trados worked fine. The error occurs both with the files I download and with the files I create. For instance, yesterday I used Trados to translate a PPT, it worked fine, but today when I open the same source PPT it gives me the error.

    Please find the error details below:

    <SDLErrorDetails time="28/11/2019 10:34:46">
    <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.Editor</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[ at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateIcon()
    at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateTranslationProvider()
    at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.OnActiveDocumentChanged()
    at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.editorService_ActiveDocumentChanged(IDocument document)
    at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
    at Sdl.TranslationStudio.Editor.EditorService.set_ActiveDocument(IDocument value)
    at Sdl.TranslationStudio.Editor.EditorView.OnActiveViewPartChanged(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.AbstractViewWithParts.Control_ActiveViewPartChanged(IViewWithParts view, IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.OnActiveViewPartChanged(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.InternalActivateViewPart(IViewPartReference viewPartToActivate)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl._tabControl_SelectedTabChanged(Object sender, SelectedTabChangedEventArgs e)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnSelectedTabChanged(SelectedTabChangedEventArgs e)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent(UltraTabControlEventId id, EventArgs e)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e)
    at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_SelectedTab(UltraTab value)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPartTab(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPart(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.NotifyViewPartAdded(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.AbstractViewWithParts.AddViewPart(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.AbstractDockingView.AddViewPart(IViewPartReference viewPartReference)
    at Sdl.TranslationStudio.Editor.Shared.InternalEditorContext.AddDocumentViewPart(IDocumentViewPart documentViewPart)
    at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.0.1041</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>3082</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>DESKTOP-ROSPNQM\mirad</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-ROSPNQM</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8283992 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

  • Hello Steven,

    Thanks for getting back to me. I've translated 2 or 3 project packages so far and Trados worked fine. It gives me error both for files I download and files I create - so yes, also with test projects. I saved the error stack clicking on the floppy disk icon, but when I try to copy and paste it here it automatically flags the post as spam and erases it. Can I send them to you as an attachment somehow?

  • Dear,

    Please note that the error stack has been unflagged as spam and you can see it in the message below your reply.

  • I saved the error stack clicking on the floppy disk icon, but when I try to copy and paste it here it automatically flags the post as spam and erases it.

    I approved the post so you can see it above.  But if you save the error stack as the error file you get when you click on the disk symbol, and then attach the xml file you get this instead... no errors from the forum and the post is more readable and less messy:

    <SDLErrorDetails time="28/11/2019 10:34:46">
    <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.Editor</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[ at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateIcon()
    at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateTranslationProvider()
    at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.OnActiveDocumentChanged()
    at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.editorService_ActiveDocumentChanged(IDocument document)
    at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
    at Sdl.TranslationStudio.Editor.EditorService.set_ActiveDocument(IDocument value)
    at Sdl.TranslationStudio.Editor.EditorView.OnActiveViewPartChanged(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.AbstractViewWithParts.Control_ActiveViewPartChanged(IViewWithParts view, IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.OnActiveViewPartChanged(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.InternalActivateViewPart(IViewPartReference viewPartToActivate)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl._tabControl_SelectedTabChanged(Object sender, SelectedTabChangedEventArgs e)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnSelectedTabChanged(SelectedTabChangedEventArgs e)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent(UltraTabControlEventId id, EventArgs e)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e)
    at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab)
    at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_SelectedTab(UltraTab value)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPartTab(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPart(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.NotifyViewPartAdded(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.AbstractViewWithParts.AddViewPart(IViewPartReference viewPartReference)
    at Sdl.Desktop.Platform.AbstractDockingView.AddViewPart(IViewPartReference viewPartReference)
    at Sdl.TranslationStudio.Editor.Shared.InternalEditorContext.AddDocumentViewPart(IDocumentViewPart documentViewPart)
    at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.0.1041</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>3082</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>DESKTOP-ROSPNQM\mirad</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-ROSPNQM</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8283992 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

    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

  • Hello .

    I would suggest resetting Studio (and ensuring Studio and MultiTerm is added you your AV)

    Please take a look at the following Wiki (ensuring everything is up to date)

    https://community.sdl.com/product-groups/translationproductivity/w/customer-experience/3392/how-to-part-1-trouble-shoot-unexplained-errors-and-unwanted-behaviour-in-studio-multiterm Part 1+2

    Then use the following app to reset Studio-

    https://appstore.sdl.com/language/app/sdl-freshstart/876/

    If this still has not resolved the issue, you might need to do a fresh installation.

    First remove the following folders (Back up all your resources such as TM's and TB's first!)

    c:\ProgramData\Package Cache\SDL\SDLTradosStudio2019\
    c:\Program Files (x86)\SDL\SDL Trados Studio\Studio15\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL Trados Studio\15\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL Trados Studio\15.0.0.0\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL Trados Studio\15\
    c:\Users\[USERNAME]\AppData\Roaming\SDL\SDL Trados Studio\15.0.0.0\
    c:\Users\[USERNAME]\Documents\Studio 2019\Project Templates\
    c:\Users\[USERNAME]\Documents\Studio 2019\Projects\projects.xml

    Then reinstall Studio (making sure you have admin rights).

    Please let me know if this has now resolved the problem.

    Lydia Simplicio | 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

  • Hello Steven,

    I followed all the Wiki steps, used the Freshstart app to reset Studio, removed all the folders you've mentioned, reinstalled Studio and, after having spent hours doing all that, I still get the exact same error as at the beginning.

    If you have any other ideas on how I could fix this, I'd really appreciate your help. Thank you.

    Please find the error stack below.

    <SDLErrorDetails time="29/11/2019 23:53:41">
      <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.Editor</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateIcon()
       at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateTranslationProvider()
       at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.OnActiveDocumentChanged()
       at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.editorService_ActiveDocumentChanged(IDocument document)
       at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
       at Sdl.TranslationStudio.Editor.EditorService.set_ActiveDocument(IDocument value)
       at Sdl.TranslationStudio.Editor.EditorView.OnActiveViewPartChanged(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractViewWithParts.Control_ActiveViewPartChanged(IViewWithParts view, IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.OnActiveViewPartChanged(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.InternalActivateViewPart(IViewPartReference viewPartToActivate)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl._tabControl_SelectedTabChanged(Object sender, SelectedTabChangedEventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnSelectedTabChanged(SelectedTabChangedEventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent(UltraTabControlEventId id, EventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e)
       at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_SelectedTab(UltraTab value)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPartTab(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.NotifyViewPartAdded(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractViewWithParts.AddViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractDockingView.AddViewPart(IViewPartReference viewPartReference)
       at Sdl.TranslationStudio.Editor.Shared.InternalEditorContext.AddDocumentViewPart(IDocumentViewPart documentViewPart)
       at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>15.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>15.2.0.1041</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>3082</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>DESKTOP-ROSPNQM\mirad</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>DESKTOP-ROSPNQM</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>8283992 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

  • Also, it doesn't allow me to add any TMs or MTs. I mean with this error they didn't work anyway in the previous installation but I could see them when I went to Project Settings. Now I cannot even add them.

    Screenshot of Trados Studio with an 'Information' pop-up window displaying the message: 'An error occurred while adding a translation memory or machine translation service. Please verify that the server is available and that your user credentials are correct.'

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 7:25 PM (GMT 0) on 28 Feb 2024]
  • Can you update your Studio, and probably Multiterm as well?  The one you are running is out of date.  This may solve the problem, but if it doesn't at least we can start from the point of view of you being up to date.  Latest versions are these:

    SDL Trados Studio 2019 SR2 - 15.2.4.1693

    SDL MultiTerm 2019 - 15.0.4.56053

    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

  • Dear Paul,

    Thank you for your reply. I've updated Studio and keep getting the same error. 

    <SDLErrorDetails time="01/12/2019 14:45:20">
      <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.Editor</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateIcon()
       at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.UpdateTranslationProvider()
       at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.OnActiveDocumentChanged()
       at Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.editorService_ActiveDocumentChanged(IDocument document)
       at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
       at Sdl.TranslationStudio.Editor.EditorService.set_ActiveDocument(IDocument value)
       at Sdl.TranslationStudio.Editor.EditorView.OnActiveViewPartChanged(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractViewWithParts.Control_ActiveViewPartChanged(IViewWithParts view, IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.OnActiveViewPartChanged(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.InternalActivateViewPart(IViewPartReference viewPartToActivate)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl._tabControl_SelectedTabChanged(Object sender, SelectedTabChangedEventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnSelectedTabChanged(SelectedTabChangedEventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent(UltraTabControlEventId id, EventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e)
       at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab)
       at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_SelectedTab(UltraTab value)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPartTab(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.AddViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.NotifyViewPartAdded(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractViewWithParts.AddViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractDockingView.AddViewPart(IViewPartReference viewPartReference)
       at Sdl.TranslationStudio.Editor.Shared.InternalEditorContext.AddDocumentViewPart(IDocumentViewPart documentViewPart)
       at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>15.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>15.2.4.1693</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>3082</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>DESKTOP-ROSPNQM\mirad</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>DESKTOP-ROSPNQM</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>8283992 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>