"Object reference not set to an instance of an object" when running automated match-finding

This message occurs every time I try to check a large project file in Trados Studio 2022 SR 1 for 100 % and fuzzy matches against a TM provided by the client.

The following suggestions found online on how to solve this problem I have already tried to no avail:

- reset the windows arrangement to default
- close and reopen Trados Studio
- repair Studio
- reindex the TM
- export the content of the TM and import it into a new TM*
- delete the project from Studio and import it again
- delete those 3 XML files
- delete the default template

* Creating a new TM from an existing one via the TM Editor works while the new TM is empty - when I import the content of the old TM, the error is back.

I have run out of idea what to do. Now I am stuck with a 200 000 words project and because of this error I cannot search it for matches with the TM.

This is the actual error record:

<SDLErrorDetails time="22.01.2024 11:27:31">
  <ErrorMessage>Exception of type LanguagePlatformException occurred: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Stacktrace:
   bei Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemoryLanguageDirection.SearchTranslationUnitsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, TranslationUnit[] translationUnits, Boolean[] mask)
   bei Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.SearchSegmentAndSubSegmentTranslationUnitsMaskedCommand.Execute(T cascadeEntry, SearchSettings searchSettings)
   bei Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.ExecuteSearchCommand(SearchCommand`1 searchCommand, SearchSettings searchSettings, Int32 searchResultsCount, IEnumerable`1&amp; cascadeMessages)</ErrorMessage>
  <Exception>
    <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=17.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
    <HelpLink />
    <Source />
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[]]></StackTrace>
  </Exception>
</SDLErrorDetails>

emoji
Parents
  • Hi  ,

    Based on the stacktrace provided, it appears that the problem originates within the translation memory (TM) itself. Despite your attempts at various suggested workarounds proving ineffective, I would recommend verifying the integrity of your TM in light of the error details outlined in the stacktrace. Additionally, exploring potential recovery options for the TM could be beneficial.

    To facilitate this process, you may want to consider utilizing a plugin designed for such tasks, called SDLTM Repair

    I hope it helps!!

    Regards,

    Oana

    Oana Nagy | 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
  • Thank you! I have installed and executed SDLTM Repair. The error was gone then.
    After a few hours of work it showed up again. With the repaired TM being in use.

    SDLTM Repair is no solution therefore, alas.

    Slight frown

    emoji
  • The problem has even worsened. SDLTM Repair does nothing any more to remove it: The "repaired TM" would give the very same error from the very beginning, and Studio is simply refusing any attempt to auto-translate. This is the error log:

    <SDLErrorDetails time="13.02.2024 19:11:01">
    <ErrorMessage>Exception of type LanguagePlatformException occurred: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. Stacktrace: bei Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemoryLanguageDirection.SearchTranslationUnitsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, TranslationUnit[] translationUnits, Boolean[] mask) bei Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.SearchSegmentAndSubSegmentTranslationUnitsMaskedCommand.Execute(T cascadeEntry, SearchSettings searchSettings) bei Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.ExecuteSearchCommand(SearchCommand`1 searchCommand, SearchSettings searchSettings, Int32 searchResultsCount, IEnumerable`1& cascadeMessages)</ErrorMessage>
    <Exception>
    <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=17.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
    <HelpLink/>
    <Source/>
    <HResult>-2146233088</HResult>
    <StackTrace>
    <![CDATA[ ]]>
    </StackTrace>
    </Exception>
    <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio17</ProductVersion>
    <EntryAssemblyFileVersion>17.1.6.16252</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1031</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>LAPTOP-KGAJFPEH\lalaith</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>LAPTOP-KGAJFPEH</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8260324 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

    Now I am stuck with a set of files that could be filled almost completely from the TM, only that Studio won't because of this dreadful error massage. What can I do since every single suggestion tried according to the OP is utterly failing???
    emoji
  •  

    It's odd that using a new TM is ok until you import the content of the TM have been provided.  This does seem to point to the content of that TM.  If you can share the TM we can take a look and see if we can find anything wrong with it?

    If that's acceptable make it available to pfilkin at sdl dotcom

    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
  • Well, good luck with finding an error among 12000 entries. But I am not actually sure whether the TM really is the culprit. The funny thing is that it works fine with some files of my project but not with some other files of the same project. There is no apparent pattern to this behaviour. But because of this I have now manually to restore four files that had already been translated.

    (And this despite the fact that I had stored them in Review files. But I cannot import these again because Trados Studio had the most wise idea to renumber all the tags when I reimported the source files without tracking, and my precious Review files are therefore useless.)

    emoji
Reply
  • Well, good luck with finding an error among 12000 entries. But I am not actually sure whether the TM really is the culprit. The funny thing is that it works fine with some files of my project but not with some other files of the same project. There is no apparent pattern to this behaviour. But because of this I have now manually to restore four files that had already been translated.

    (And this despite the fact that I had stored them in Review files. But I cannot import these again because Trados Studio had the most wise idea to renumber all the tags when I reimported the source files without tracking, and my precious Review files are therefore useless.)

    emoji
Children