Object reference not set to an instance of an object

Hi,

I've Studio15, and I get this Error most of the time when I try to open a document to translate it.

Object reference not set to an instance of an object

I can't work like this ;)

How can I fix it ?

 

THANKS

  • Hi ,

    It sounds as though the problem is this one:

    gateway.sdl.com/.../communityknowledge

    Have you ever been able to open this file? Have you added comments into the file while translating? Is it one file or are you opening several at the same time as one?

    Regards

    Paul

    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

  • Hi Paul,
    Thanks for answering.

    Actually, the problem happens with almost every files, not SDLXLIFF files. I try to "translate a single document" and to open a PDF, Word or Power Point document, and then I get the error message.
    If I create a project of the file it seems to work even though for PDF files I don't get PDF in the formats of the Save Target as, but only word.

    I'm not sure how the article you sent me can help on this one.

    Best regards,

    Yael
  • Well it doesn't even open it. I get immediately this error message and I don't see any SDLXLIFF created in the Folder where the file is located as a result of the tentative to open the file.
  • Hi  

    Unknown said:
    If I create a project of the file it seems to work even though for PDF files I don't get PDF in the formats of the Save Target as, but only word.

    There is no save as PDF.  This is because the PDF filetype actually converts the PDF to Word and then you are really working on a Word file.  If you want to be able to save as a PDF then you either save the Word file as a PDF or use a different workflow... for example:

    https://multifarious.filkin.com/2016/07/28/handling-pdfs-is-there-a-best-way/

    Unknown said:
    Actually, the problem happens with almost every files, not SDLXLIFF files. I try to "translate a single document" and to open a PDF, Word or Power Point document, and then I get the error message.

    Please can you share the full error stack?

    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

  • <SDLErrorDetails time="6/29/2017 3:09:10 PM">
      <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.ProjectApi.Helpers</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   at Sdl.ProjectApi.Helpers.LanguageDirectionHelper.GetCascadeSettings(ILanguageDirection languageDirection)
       at Sdl.ProjectApi.Helpers.LanguageDirectionHelper.CreateCascade(ILanguageDirection languageDirection, ProjectCascadeEntryDataFilterFunction filter, IComparer`1 sort, Boolean readOnly, Boolean refreshCache)
       at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocumentConfirmationStatistics..ctor(TranslatableDocument document, IMultiFileConverter converter)
       at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.Load(IJobExecutionContext context)
       at Sdl.Desktop.Platform.Services.JobRequest.Execute(IJobExecutionContext context)
       at Sdl.Desktop.Platform.Implementation.Services.Job.<_worker_DoWork>b__3()
       at Sdl.Desktop.Platform.Implementation.Services.Log.Resources(Object message, Action action)
       at Sdl.Desktop.Platform.Implementation.Services.Job._worker_DoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>12.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>12.3.5281.10</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 7 Professional </OperatingSystem>
        <ServicePack>Service Pack 1</ServicePack>
        <OperatingSystemLanguage>1033</OperatingSystemLanguage>
        <CodePage>1255</CodePage>
        <LoggedOnUser>user-PC\user</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>USER-PC</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>3667512 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

  • Hi ,

    Can you try removing your TMs from your File -> Options so that when you use the single document workflow there are no TMs added or attempted.

    Thank you

    Paul

    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

  • I'm not sure what you want me to do?
    I see that in Default Task Sequence, it's written Prepare without project TM. I don"t see anything else. Is it there ?
  • Go to File -> Options -> Language pairs -> All Language Pairs -> Translation Memory and Automated Translation and make sure you do not have any TMs in there. So remove or disable any you have. Then try again.

    If that works then please also go to File -> Options -> Editor -> Languages and make sure that the language set in there matches the languages of the TMs you want to use. Then add your TMs back again.

    See if that helps.

    Paul

    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

  • Hi ,

    ok - please can you try a reset. Rename this folder (just add _old to the end or something, it's not important what you rename it to) and restart Studio:

    c:\Users\[USERNAME]\AppData\Roaming\SDL\SDL Trados Studio\12.0.0.0

    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