"Object reference not set to an instance of an object" error when creating new project in Trados 2021 Here follows the log generated:

I was creating new project and the "Object reference not set to an instance of an object" popped out, then Trados crashed. Here follows the log generated:

<SDLErrorDetails time="2022/6/17 10:12:05">
<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.LanguagePlatform.TranslationMemoryApi</Source>
<HResult>-2147467261</HResult>
<StackTrace><![CDATA[ at Sdl.LanguagePlatform.TranslationMemoryApi.RecognizerFactory.<>c__DisplayClass4_0.<GetDateTimeFormats>b__0(ILanguageResourceEntity e)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Sdl.LanguagePlatform.TranslationMemoryApi.RecognizerFactory.GetDateTimeFormats(String languageCode, IEnumerable`1 entities, LanguageResourceType type)
at Sdl.LanguagePlatform.TranslationMemoryApi.LanguageResourceBundle.get_LongTimeFormats()
at Sdl.TranslationStudio.ProjectManagement.Settings.AutoSubstitutionValidation.DateTimeSettingsValidator.ReadDateTimePatternsFromTm(LanguageResourceBundle defaultLanguageResourceBundle, LanguageResourceBundle targetLanguageResourceBundle)
at Sdl.TranslationStudio.ProjectManagement.Settings.AutoSubstitutionValidation.DateTimeSettingsValidator.AreSettingsValid(LanguageResourceBundle defaultLanguageResourceBundle, LanguageResourceBundle targetLanguageResourceBundle)
at Sdl.TranslationStudio.ProjectManagement.Settings.AutoSubstitutionValidation.GeneralAutoSubstitutionSettingsValidator.CheckAutoSubstitutionSettings(TranslationMemorySettings tmSettings, List`1 targetLanguageResourceBundles, LanguageResourceBundle defaultLanguageResourceBundle)
at Sdl.TranslationStudio.ProjectManagement.Settings.TranslationMemoriesSettingsPage.EnforceConsistencyForAutoSubstitutionSettings()
at Sdl.TranslationStudio.ProjectManagement.Settings.TranslationMemoriesSettingsPage.AfterSave()
at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.OnSave(Boolean validateInput)
at Sdl.Desktop.Platform.Implementation.Settings.SettingsControl.Save()
at Sdl.Desktop.Platform.Wizard.SettingsHostWizardPage`1.OnNext()
at Sdl.Desktop.Platform.Wizard.AbstractWizard`1.SetCurrentPageIndex(Int32 index, Boolean back)
at Sdl.Desktop.Platform.Wizard.AbstractWizard`1.OnSelectedPageChanged(Object sender, SelectedPageEventArgs e)
at Sdl.Desktop.Platform.Wizard.ProgressHeader.MoveToSelectedPage(IProgressHeaderItem item)
at Sdl.Desktop.Platform.Wizard.Commands.MouseDownCommand.Execute(Object parameter)
at Sdl.Desktop.Platform.Controls.Behaviours.EventBehaviourFactory.ExecuteCommandBehaviour.HandleEvent(Object sender, EventArgs e)
at Sdl.Desktop.Platform.Controls.Behaviours.EventBehaviourFactory.ExecuteCommandOnRoutedEventBehaviour.EventHandler(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
</Exception>
<Environment>
<ProductName>Trados Studio</ProductName>
<ProductVersion>Studio16</ProductVersion>
<EntryAssemblyFileVersion>16.2.10.9305</EntryAssemblyFileVersion>
<OperatingSystem>Microsoft Windows 10 Enterprise</OperatingSystem>
<ServicePack>NULL</ServicePack>
<OperatingSystemLanguage>1033</OperatingSystemLanguage>
<CodePage>936</CodePage>
<LoggedOnUser>XLNX\jayc</LoggedOnUser>
<DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
<ComputerName>XSHJAYC30</ComputerName>
<ConnectedToNetwork>True</ConnectedToNetwork>
<PhysicalMemory>16554144 MB</PhysicalMemory>
</Environment>
</SDLErrorDetails>

Please help.



Moved to code box for legibility
[edited by: Paul at 9:52 AM (GMT 1) on 18 Jun 2022]
emoji
Parents Reply Children
No Data