Getting "Unexpected exception when initializing task 'Analyze Files': Object reference not set to an instance of an object" When Creating Projects

Hi, I'm frequently getting "Unexpected exception when initializing task 'Analyze Files': Object reference not set to an instance of an object" error when creating projects lately. Here is the error report:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<SDLErrorDetails time="7/13/2023 6:31:38 PM">
<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()
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

At first, I though it was because of my TM and/or TB, so I changed to brand new TM and TB to test and still get the same error. I've tried to fix installation of my Trados Studio 2021, yet that did not fix the issue. 

Please help. 



Moved the error stack to code
[edited by: Paul at 5:24 PM (GMT 1) on 13 Jul 2023]
emoji