With a couple of projects recently, I have been unable to run batch tasks (Analyse files and Pre-translate files), and I get the following error message "An error occurred inserting the translation into the document", which I haven't seen on

Parents Reply Children
  • Thanks for your reply Paul, in the meantime I was contacted by SDL Support, who suggested changing the Word filters in the Options/File Types, now I get a different error message: Object reference not set to an instance of an object. SDL are still working on this. Attached is the error stack

    <SDLErrorDetails time="06/04/2018 17:35:20">
      <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.TranslationMemory</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   at Sdl.LanguagePlatform.TranslationMemory.WordCounts.doWordCounts(IList`1 tokens, Boolean BreakOnHyphen, Boolean BreakOnDash, Boolean BreakOnTag, Boolean breakOnApostrophe)
       at Sdl.ProjectApi.Translation.FuzzyMatchRepair.MatchRepairWordCounts..ctor(SearchResultMatchRepairMetaData matchRepairMetaData)
       at Sdl.ProjectApi.Translation.MatchRepairUtil.GetMatchRepairWordCounts(SearchResult bestResult)
       at Sdl.ProjectApi.AutomaticTasks.Analysis.SegmentCategoryCountData.CreateCountData(IParagraphUnit paragraphUnit, Boolean onlyOneSegment, SearchResults results)
       at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisCountDataHelper.ProcessSegmentFromParagraph(IParagraphUnit paragraphUnit, ISegmentPair segment, SearchResults results, Boolean onlyOneSegment, Boolean reportLockedSegmentsSeparately)
       at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisContentProcessorX.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.ProjectApi.AutomaticTasks.TranslationMemoryLookupContentProcessor.OutputParagraphs()
       at Sdl.ProjectApi.AutomaticTasks.TranslationMemoryLookupContentProcessor.ProcessWaitingParagraphs()
       at Sdl.ProjectApi.AutomaticTasks.TranslationMemoryLookupContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Filters.Processors.SegmentRenumberingBilingualProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Integration.LocationMarkerLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.ParagraphUnitBuffer.Release()
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OutputParagraphUnit(IParagraphUnit pu)
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseLocalizableParagraphUnit(transunit transunit, LockTypeFlags lockFlags)
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseTransUnit(transunit transunit)
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseGroup(group group)
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OnGroup(XmlElement groupElement)
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.<ContinueScanning>b__14_15(ISdlXliffStreamContentHandler handler)
       at System.Collections.Generic.List`1.ForEach(Action`1 action)
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.ContinueScanning()
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ContinueParsing()
       at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseNext()
       at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
       at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
       at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
       at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.Parse(String targetFilePath)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>14.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>14.1.10009.15268</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Professionnel</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1036</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>PORT-JACKIE\Jackie</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>PORT-JACKIE</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>4087584 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

  • Hi ,

    Thanks for the error stack. Have you tried running this task with a brand new TM just to see whether this makes a difference? perhaps your current TM is corrupt in some way?

    If support come up with the resolution in the meantime it would be useful to know what the problem was as I have not seen this one before.

    Regards

    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

  • Hi Paul, thanks a lot for the suggestion. I disabled my own TM and tried running the task just with a separate Groupshare TM (for this same customer) and it worked perfectly. That would then explain why my colleagues had no problems processing this same file. Now I just need to sort out my corrupted TM...

    Incidentally, I had the same initial error message ("an error occurred inserting the translation into the document") with a different .docx file previously; that was fixed by changing the "File Types" settings (deactivating the Microsoft Office 79-2003 filter and moving the Microsoft Office Word 2007-2016 filter to the top of the Word filters, using the "move Up/Move Down' buttons). But I was intrigued as I'd not found that error message on any forum anywhere!

    I'm a big multifarious fan by the way!

  • Hi ,

    Glad you managed to sort that out... good luck with the TM! Glad you like the blog too... I like writing it!

    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