Error when analyzing multiple files

I get the following error when trying to add files to a project:

Trados Studio Task Results window showing an error message 'Unexpected exception when initializing task Analyze Files: Object reference not set to an instance of an object.' with a 'Show details' button.

Trados Studio Batch Processing window with a list of tasks where 'Apply PerfectMatch', 'Analyze Files', and 'Populate Project Translation Memories' have 1 message reported each, indicating errors.

<SDLErrorDetails time="27/09/2021 13:53:09">
  <ErrorMessage>Unexpected exception when initializing task 'Analyze Files': Object reference not set to an instance of an object..</ErrorMessage>
  <Exception>
    <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
    <HelpLink />
    <Source>Sdl.ProjectApi.Implementation</Source>
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.InitializeTaskImplementations()
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.Execute()
   at Sdl.ProjectApi.Implementation.AutomaticTaskExecuter.Execute()]]></StackTrace>
    <InnerException>
      <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
      <HelpLink />
      <Source>Sdl.LanguagePlatform.TranslationMemoryApi</Source>
      <HResult>-2147467261</HResult>
      <StackTrace><![CDATA[   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.<>c__DisplayClass66_0.<GetEntity>b__0(ILanguageResourceEntity entity)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.GetEntity(LanguageResourceType languageResourceType)
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.RemoveEntity(LanguageResourceType type)
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.RemoveEntities(LanguageResourceType[] types)
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.SaveDateTime()
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.SaveToEntities()
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundleCollection.SaveToEntities()
   at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundleCollection.get_ResourceDataAccessor()
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetLanguageTools(ILanguageDirection languageDirection)
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisDataCollectorX.CreateAnalysisDataStorage(ILanguageDirection languageDirection, AnalysisTaskSettings analysisSettings, TranslationMemorySettings translationMemorySettings, ILanguageObjectsCache objectsCache)
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisDataCollectorX.Initialize(IList`1 files)
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.CreateAnalysisDataCollectors()
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.InitializeTask(IExecutingAutomaticTask task)
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.InitializeTaskImplementations()]]></StackTrace>
    </InnerException>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>Studio16</ProductVersion>
    <EntryAssemblyFileVersion>16.1.8.4404</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Enterprise</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>danielhug</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>ABCD</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16568624 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

Any help is welcome.

Daniel



Generated Image Alt-Text
[edited by: Trados AI at 4:12 AM (GMT 0) on 29 Feb 2024]