Exception has been thrown by the target of an invocation

When opening a package, I get the error "Exception has been thrown by the target of an invocation", and I cannot figure out what is causing it. 

I'm running Studio 2022 on a virtual Windows using Parallels.

I attach two of the error logs.

<task name="analyse"><taskInfo taskId="57bc54aa-668d-4fb8-846a-383d6f1a1154" runAt="25/7/2024 13:38:04" runTime="20 segundos"><project name="0241 SCT" number="e64e10d6-6509-49cc-9c32-b903eb7f83ed" /><language lcid="3082" name="Spanish (Spain, International Sort)" /><tm name="Add Source TM" /><tm name="0241 SCT_Institucional_CA-ES.sdltm" /><tm name="UPC_CA_to_ES.sdltm" /><tm name="0241 SCT_UPC_CA_to_ES.sdltm" /><settings reportInternalFuzzyLeverage="no" reportLockedSegmentsSeparately="yes" reportCrossFileRepetitions="yes" minimumMatchScore="70" searchMode="bestWins" missingFormattingPenalty="1" differentFormattingPenalty="1" multipleTranslationsPenalty="1" autoLocalizationPenalty="0" textReplacementPenalty="0" alignmentPenalty="1" characterWidthDifferencePenaltyEnabled="yes" characterWidthDifferencePenalty="1" enableFuzzyMatchRepair="no" enableMtFuzzyMatchRepair="no" fullRecallMatchedWords="2" partialRecallMatchedWords="N/A" fullRecallSignificantWords="2" partialRecallSignificantWords="N/A" /></taskInfo><file name="PERE_columna Servei_CA_rev.docx.sdlxliff" guid="a167b2c7-f501-4244-b529-7cdb6482045c"><analyse><perfect segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><inContextExact segments="9" words="41" characters="259" placeables="0" tags="0" repairWords="0" fullRecallWords="8" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><exact segments="89" words="528" characters="3580" placeables="19" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><locked segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><crossFileRepeated segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><repeated segments="585" words="4081" characters="26634" placeables="164" tags="20" repairWords="0" fullRecallWords="32" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><total segments="2183" words="19035" characters="121669" placeables="2153" tags="918" repairWords="0" fullRecallWords="171" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><new segments="901" words="7699" characters="48159" placeables="1671" tags="730" repairWords="0" fullRecallWords="25" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><newBaseline segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><newLearnings segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="50" max="74" segments="46" words="395" characters="2545" placeables="25" tags="16" repairWords="0" fullRecallWords="16" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="75" max="84" segments="118" words="1196" characters="7663" placeables="84" tags="46" repairWords="0" fullRecallWords="29" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="85" max="94" segments="193" words="2556" characters="16253" placeables="93" tags="56" repairWords="0" fullRecallWords="27" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="95" max="99" segments="242" words="2539" characters="16576" placeables="97" tags="50" repairWords="0" fullRecallWords="34" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /></analyse></file><batchTotal><analyse><perfect segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><inContextExact segments="9" words="41" characters="259" placeables="0" tags="0" repairWords="0" fullRecallWords="8" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><exact segments="89" words="528" characters="3580" placeables="19" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><locked segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><crossFileRepeated segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><repeated segments="585" words="4081" characters="26634" placeables="164" tags="20" repairWords="0" fullRecallWords="32" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><total segments="2183" words="19035" characters="121669" placeables="2153" tags="918" repairWords="0" fullRecallWords="171" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><new segments="901" words="7699" characters="48159" placeables="1671" tags="730" repairWords="0" fullRecallWords="25" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><newBaseline segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><newLearnings segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="50" max="74" segments="46" words="395" characters="2545" placeables="25" tags="16" repairWords="0" fullRecallWords="16" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="75" max="84" segments="118" words="1196" characters="7663" placeables="84" tags="46" repairWords="0" fullRecallWords="29" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="85" max="94" segments="193" words="2556" characters="16253" placeables="93" tags="56" repairWords="0" fullRecallWords="27" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /><fuzzy min="95" max="99" segments="242" words="2539" characters="16576" placeables="97" tags="50" repairWords="0" fullRecallWords="34" partialRecallWords="0" edits="0" adaptiveWords="0" baselineWords="0" /></analyse></batchTotal></task>
<SDLErrorDetails time="27/7/2024 12:24:16">
  <ErrorMessage>Exception has been thrown by the target of an invocation.</ErrorMessage>
  <Exception>
    <Type>System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>mscorlib</Source>
    <HResult>-2146232828</HResult>
    <StackTrace><![CDATA[   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionDataProvidersFactory.GetSuggestionDataProviderObject(Type suggestionDataProviderType, IEditorService editorService, ITranslatableDocumentEditorSettings editorSettings, TranslationMemorySettings translationMemorySettings)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionDataProvidersFactory.GetSuggestionDataProviderObjects(IList`1 suggestionDataProviderTypes, IEditorService editorService, ITranslatableDocumentEditorSettings editorSettings, TranslationMemorySettings translationMemorySettings)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionDataProvidersFactory.CreateSuggestionDataProviders(IEditorService editorService, ITranslatableDocumentEditorSettings editorSettings, TranslationMemorySettings translationMemorySettings)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.IntellisenseEditing.Hook(ITranslatableDocument doc, ITranslatableDocumentEditingView documentEditingView)
   at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.HookIntellisense()
   at Sdl.TranslationStudio.Editor.EditorService.document_Loaded(IDocument document)
   at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.OnLoaded()
   at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.OnLoaded()
   at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)]]></StackTrace>
    <InnerException>
      <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
      <HelpLink />
      <Source>Sdl.TranslationStudio.Editor</Source>
      <HResult>-2147467261</HResult>
      <StackTrace><![CDATA[   at Sdl.TranslationStudio.Editor.TranslationMemory.AnyAutoSuggest.AnyAutoSuggestProvider.SearchFilter(ProjectCascadeEntryData entryData)
   at Sdl.ProjectApi.Implementation.ProjectCascadeFactory.FilterProjectCascadeEntryDataList(IList`1 projectCascadeEntryDataList, ProjectCascadeEntryDataFilterFunction filter)
   at Sdl.ProjectApi.Implementation.ProjectCascadeFactory.CreateCascade(ProjectCascadeSettings projectCascadeSettings, Boolean refreshCache)
   at Sdl.TranslationStudio.Editor.TranslationMemory.AnyAutoSuggest.AnyAutoSuggestProvider.GetTranslationProviderCascade()
   at Sdl.TranslationStudio.Editor.TranslationMemory.AnyAutoSuggest.AnyAutoSuggestProvider.StartTranslatingSegment(ITranslatableDocument document, ISegmentPair segmentPair)
   at Sdl.TranslationStudio.Editor.TranslationMemory.AnyAutoSuggest.AnyAutoSuggestProvider.UpdateTranslations()
   at Sdl.TranslationStudio.Editor.TranslationMemory.AnyAutoSuggest.AnyAutoSuggestProvider..ctor(IEditorService editorService, ITranslatableDocumentEditorSettings editorSettings, TranslationMemorySettings translationMemorySettings)]]></StackTrace>
    </InnerException>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio17</ProductVersion>
    <EntryAssemblyFileVersion>17.2.10.19084</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>PEREFCMBPM30F54\perefarrando</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>PEREFCMBPM30F54</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8383168 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

emoji
Parents
  •  

    This is a very unusual error I have not seen for a long time and seems to be related to the 'AnyAutoSuggestProvider'.  Where did the package come from and if it was Studio how old is it?  If there is an AutoSuggest Dictionary in there can the customer remove it before sending you the package?

    If none of that is possible you can always unzip the package, take out the sdlxliff files from the target language folder, translate them in your own project, then save the files when you're done and send them to your customer who can simply replace the ones in their project with yours (keeping a backup of the original first of course!).

    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
Reply
  •  

    This is a very unusual error I have not seen for a long time and seems to be related to the 'AnyAutoSuggestProvider'.  Where did the package come from and if it was Studio how old is it?  If there is an AutoSuggest Dictionary in there can the customer remove it before sending you the package?

    If none of that is possible you can always unzip the package, take out the sdlxliff files from the target language folder, translate them in your own project, then save the files when you're done and send them to your customer who can simply replace the ones in their project with yours (keeping a backup of the original first of course!).

    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
Children