I encountered "Corrupt file: Missing sub-segment content trans-unit with ID" when using studioViews to export filtered segments from a file.

Hi there,

I was using studioViews to export some filtered segments from an .sdlxliff file. The export seemed successful, but when I tried to open the .sdlxliff file exported by studioView, I got the following error:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<SDLErrorDetails time="1/4/2024 10:08:55 AM">
<ErrorMessage>Corrupt file: Missing sub-segment content trans-unit with ID: '568e8555-e9f0-4ef2-a671-b58cefba4d86'</ErrorMessage>
<Exception>
<Type>Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffParseException, Sdl.FileTypeSupport.Bilingual.SdlXliff, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
<HelpLink />
<Source>Sdl.FileTypeSupport.Bilingual.SdlXliff</Source>
<HResult>-2146233088</HResult>
<StackTrace><![CDATA[ at Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OnEndFile()
at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.<>c.<HandleFile>b__15_1(ISdlXliffStreamContentHandler handler)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.HandleFile()
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.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.Load(IJobExecutionContext context)
at Sdl.Desktop.Platform.Services.JobRequest.Execute(IJobExecutionContext context)
at Sdl.Desktop.Platform.Implementation.Services.JobExecuter.Execute(JobData jobData)
at Sdl.Desktop.Platform.Implementation.ResourceLoggingInternalCommandExecuter`1.ExecuteWithResourceLogging(TCommandData commandData, String message)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Can anyone help diagnose what caused the error?

emoji