A translation error

Under the version of  2019 SR2 - 15.2.0.1041, when partially matched with translation memory meanwhile using the self-developed plugin under the check-box "look up segments in MT even if a TM match has been found", there would be a translation error reported. But under the version of 2019 - 15.0.1.36320, it will work well.

Screenshot of Studio Developers Q&A plugin settings with checkboxes for translation memory options, including 'look up segments in MT even if a TM match has been found' checked.Screenshot of a translation error in Studio Developers Q&A, with a red arrow pointing to the error message and a 'click here' prompt for more information.



Generated Image Alt-Text
[edited by: RWS Community AI at 7:02 AM (GMT 0) on 15 Nov 2024]
Parents
  • Hi

    Is there a more detailed error message in the Studio log file?

    Regards,

    Iain.

  • Hi Iain Shaw,

    I finally found the Error message in the Studio log file as following:

    ERROR [2021-02-02 10:47:58,276] Sdl.TranslationStudio.Editor.Translation.Translator - Object reference not set to an instance of on object. 
    System.AggregateException:one or more error have occurred. ---> System.NullReferenceException: Null Reference Exception.
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetTranslations(IReadOnlyList`1 sourceTokens, TranslationPurpose purpose, ICollection`1 proposals, SegmentAndSubsegmentSearchResultsMerged searchResults, Boolean completeTranslationsOnly)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetTranslations(List`1 sourceTokens, TranslationPurpose purpose, Boolean completeTranslationsOnly)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.AddSearchIfRequired(List`1 searchTokens, TranslationPurpose proposalPurpose, Boolean completeProposals, Dictionary`2 requiredSearches)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetRequiredSearches(DeferredTranslationData translation, Dictionary`2 requiredSearches, Boolean& alignmentSearchAdded)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetDeferredTranslations(List`1 deferredTranslationData)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.ProxyTranslationSource.<>c__DisplayClass10_1.<GetDeferredTranslations>b__0()
    在 System.Threading.Tasks.Task.InnerInvoke()
    在 System.Threading.Tasks.Task.Execute()
    ---End of inner exception stack trace ---
    在 System.Threading.Tasks.Task.FastWaitAll(Task[] tasks)
    在 System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.ProxyTranslationSource.GetDeferredTranslations(List`1 deferredTranslationData)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.FuzzyMatchRepair.GetDeferredTranslations()
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.FuzzyMatchRepair.RepairResults()
    在 Sdl.TranslationStudio.Editor.Translation.Translator.ApplyMatchRepairs()
    在 Sdl.TranslationStudio.Editor.Translation.Translator.EditorTranslate()
    ---> (inner exception  #0) System.NullReferenceException:Object reference not set to an instance of on object.
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetTranslations(IReadOnlyList`1 sourceTokens, TranslationPurpose purpose, ICollection`1 proposals, SegmentAndSubsegmentSearchResultsMerged searchResults, Boolean completeTranslationsOnly)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetTranslations(List`1 sourceTokens, TranslationPurpose purpose, Boolean completeTranslationsOnly)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.AddSearchIfRequired(List`1 searchTokens, TranslationPurpose proposalPurpose, Boolean completeProposals, Dictionary`2 requiredSearches)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetRequiredSearches(DeferredTranslationData translation, Dictionary`2 requiredSearches, Boolean& alignmentSearchAdded)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.TranslationMemorySource.GetDeferredTranslations(List`1 deferredTranslationData)
    在 Sdl.ProjectApi.Translation.FuzzyMatchRepair.TranslationSource.ProxyTranslationSource.<>c__DisplayClass10_1.<GetDeferredTranslations>b__0()
    在 System.Threading.Tasks.Task.InnerInvoke()
    在 System.Threading.Tasks.Task.Execute()<---

    Thank you

    Lieven

  • Thanks Lieven. Do you experience the same issue with Studio 2019 SR2 CU08 (v15.2.8)?

    Regards,

    Iain.

Reply Children