CleanUp Tasks "Sequence contains no matching element"

Hello!

While using CleanUp Tasks (1.9.8.2 version) in Studio 2019 (SR2 – 15.2.7.2849) an error appears "Sequence contains no matching elements" each time the batch task is performed.

This happens in .sdlxliff files even without any of the options selected, nor with any CleanUp rule applied.

The plugin works correctly in Studio 2017 (SR1).

Is there any workaround here to make it work?

Thanks in advance.

Parents
  • Hello ,

    It is always helpful if you post the full error stack, as this provides useful information

    Error message in Trados Studio with steps: 1) Click on the icon, 2) Save the XML file to your desktop, 3) Add file to the thread.

    In the meantime 

    1.Close Studio

    2.Go to C:\Users\yourusername\Documents\Studio 2019

    3.Rename the Project Templates folder (Project Templates and rename into something like Project Templates_old)

    4.Restart Studio and check if the issue still occurs

    Please let me know if this resolved the issue.

    Oana Nagy | QA Engineer | RWS Group

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 12:01 AM (GMT 0) on 29 Feb 2024]
  • Thank you for the prompt reply.

    Attached is the xml error stack.

    <SDLErrorDetails time="10.12.2020 11:58:07">
      <ErrorMessage>Sekwencja nie zawiera pasującego elementu.</ErrorMessage>
      <Exception>
        <Type>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>System.Core</Source>
        <HResult>-2146233079</HResult>
        <StackTrace><![CDATA[   w System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
       w SDLCommunityCleanUpTasks.TargetCleanUpHandler.ConvertTagToText(IPlaceholderTag phTag)
       w SDLCommunityCleanUpTasks.TargetCleanUpHandler.ProcessPlaceholderTags()
       w SDLCommunityCleanUpTasks.TargetCleanUpHandler.VisitSegment(ISegment segment)
       w Sdl.FileTypeSupport.Framework.Bilingual.Segment.AcceptVisitor(IMarkupDataVisitor visitor)
       w SDLCommunityCleanUpTasks.SaveToTargetPreProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.LocationMarkerLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.ParagraphUnitBuffer.ProcessParagraphUnit(IParagraphUnit pu)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OutputParagraphUnit(IParagraphUnit pu)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseLocalizableParagraphUnit(transunit transunit, LockTypeFlags lockFlags)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseTransUnit(transunit transunit)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseGroup(group group)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OnGroup(XmlElement groupElement)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.<ContinueScanning>b__14_15(ISdlXliffStreamContentHandler handler)
       w System.Collections.Generic.List`1.ForEach(Action`1 action)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.ContinueScanning()
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ContinueParsing()
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseNext()
       w Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
       w Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
       w Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
       w Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.Parse(String targetFilePath)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>15.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>15.2.7.2849</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1045</OperatingSystemLanguage>
        <CodePage>1250</CodePage>
        <LoggedOnUser>GRUPOSEPRO\aleksander.skalski</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>POL034</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16459372 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    I have followed your suggestion but the error still persists.

    At first it seemed as Studio 2017 .sdlxliff files (ones used in this example) were incompatible with Studio 2019 when using CleanUp. However, a project was created from scratch in Studio 2019 based on the original .docx file and upon running CleanUp (again even without any rules applied) the error persists.

    Thanks in advance.

Reply
  • Thank you for the prompt reply.

    Attached is the xml error stack.

    <SDLErrorDetails time="10.12.2020 11:58:07">
      <ErrorMessage>Sekwencja nie zawiera pasującego elementu.</ErrorMessage>
      <Exception>
        <Type>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>System.Core</Source>
        <HResult>-2146233079</HResult>
        <StackTrace><![CDATA[   w System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
       w SDLCommunityCleanUpTasks.TargetCleanUpHandler.ConvertTagToText(IPlaceholderTag phTag)
       w SDLCommunityCleanUpTasks.TargetCleanUpHandler.ProcessPlaceholderTags()
       w SDLCommunityCleanUpTasks.TargetCleanUpHandler.VisitSegment(ISegment segment)
       w Sdl.FileTypeSupport.Framework.Bilingual.Segment.AcceptVisitor(IMarkupDataVisitor visitor)
       w SDLCommunityCleanUpTasks.SaveToTargetPreProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.LocationMarkerLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       w Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.ParagraphUnitBuffer.ProcessParagraphUnit(IParagraphUnit pu)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OutputParagraphUnit(IParagraphUnit pu)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseLocalizableParagraphUnit(transunit transunit, LockTypeFlags lockFlags)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseTransUnit(transunit transunit)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseGroup(group group)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OnGroup(XmlElement groupElement)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.<ContinueScanning>b__14_15(ISdlXliffStreamContentHandler handler)
       w System.Collections.Generic.List`1.ForEach(Action`1 action)
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.ContinueScanning()
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ContinueParsing()
       w Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseNext()
       w Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
       w Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
       w Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
       w Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.Parse(String targetFilePath)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>15.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>15.2.7.2849</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1045</OperatingSystemLanguage>
        <CodePage>1250</CodePage>
        <LoggedOnUser>GRUPOSEPRO\aleksander.skalski</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>POL034</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16459372 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    I have followed your suggestion but the error still persists.

    At first it seemed as Studio 2017 .sdlxliff files (ones used in this example) were incompatible with Studio 2019 when using CleanUp. However, a project was created from scratch in Studio 2019 based on the original .docx file and upon running CleanUp (again even without any rules applied) the error persists.

    Thanks in advance.

Children
No Data