You are currently working on UAT 

Object reference not set to an instance of an object in Sdl.ProjectApi.AutomaticTasks during apply of PerfectMatch in document translation for Trados 2022 SR2 17.2.12.19268

Hi, I am getting error in Trados version 2022 SR2 17.2.12.19268 
The error occurred  during the document translation in the step of applying PerfectMatch . it throw some exception and stops the translation. The same plugin is working fine with the older SR2 versions 2022(17.11, 17.10)
I want at which part of code the issue could be because from exception I am not able to understand the exact issue so that I can resolve that part of code.


Trados Studio project preparation screen showing errors in Apply PerfectMatch, Pre-translate Files, and Analyze Files steps with 1 message reported for each.


XML error details showing a NullReferenceException with the message 'Object reference not set to an instance of an object' and stack trace information for Trados Studio.

<SDLErrorDetails time="5/14/2025 12:29:38 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.AutomaticTasks</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.SegmentCategoryCountData.DeterminSegmentCategoryForAT(ICountDataExtended segmentCategory, SearchResult bestResult)
   at Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.SegmentCategoryCountData.DetermineSegmentInTMCategory(ISegmentPair segment, ICountDataExtended countData, SearchResults results, TranslationUnitData& tud)
   at Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.SegmentCategoryCountData.DetermineSegmentCategory(ISegmentPair segment, ICountDataExtended countData, SearchResults results, TranslationUnitData& tud, Boolean reportLockedSegmentsSeparately)
   at Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.AnalysisCountDataHelper.ProcessSegmentFromParagraph(IParagraphUnit paragraphUnit, ISegmentPair segment, SearchResults results, Boolean onlyOneSegment, Boolean reportLockedSegmentsSeparately)
   at Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.AnalysisContentProcessorX.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.ProjectApi.AutomaticTasks.TranslationMemoryLookupContentProcessor.OutputParagraphs()
   at Sdl.ProjectApi.AutomaticTasks.TranslationMemoryLookupContentProcessor.ProcessWaitingParagraphs()
   at Sdl.ProjectApi.AutomaticTasks.TranslationMemoryLookupContentProcessor.FileComplete()
   at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.FileComplete()
   at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.FileComplete()
   at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.FileComplete()
   at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.FileComplete()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.FileComplete()
   at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.FileComplete()
   at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.FileComplete()
   at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OnEndFile()
   at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.<>c.<HandleFile>b__15_1(ISdlXliffStreamContentHandler handler)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.HandleFile()
   at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.ContinueScanning()
   at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ContinueParsing()
   at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.Parse(String targetFilePath)]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio17</ProductVersion>
    <EntryAssemblyFileVersion>17.2.12.19268</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 11 Home Single Language</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>DESKTOP-GAIIC6B\power</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-GAIIC6B</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>33276388 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>



Generated Image Alt-Text
[edited by: RWS Community AI at 8:14 AM (GMT 1) on 14 May 2025]