"Failed to save target: Object reference not set to an instance of an object" when exporting to Word (originally PDF)

Hi,

Hope someone can help me.. I'm getting this dreaded error message when trying to save a target file.

The original file was a scanned PDF, but fairly good scan quality. I followed the instructions here http://blog.sdltrados.com/translate-pdf-sdl-trados-studio/ to convert it into an xliff for Studio (2017 SR1 - I only downloaded the SR1 update yesterday) and have been working through the translation with no trouble. Now done, I was planning to export it into Word so that I could then fine-tune any formatting that's gone wrong... Apparently Studio doesn't want to play that game.

Any quick fixes on how I can get it to export / make the error message go away??

Otherwise the only alternative I can think of is to work in the Word file that Studio originally generated from the source PDF, and just copy over all my segments from Studio as I go through. Not a great option, as it's over 8000 words, but I have a bit of time - and given that I was planning to go through and check all the formatting in Word anyway, perhaps it wouldn't take all that much longer in the grand scheme of things..?

Thanks in advance,

Steph

 

PS I've saved the error message file below if it's of any help at all:

<SDLErrorDetails time="22/09/2017 15:21:19">
  <ErrorMessage>Failed to save target content: 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.FileTypeSupport.Filters.MicrosoftOffice.Word_2</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.Illustrations.SwitchToIllustrationParagraphUnitRoute.WriteIllustrationEndTag()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.Illustrations.SwitchToIllustrationParagraphUnitRoute.PauseProcessingWhenIllustrationObjectWasParsed(IParagraphUnit processedParagraph)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.Illustrations.SwitchToIllustrationParagraphUnitRoute.SwitchBackParagraphUnit()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.Illustrations.SwitchToIllustrationParagraphUnitRoute.Handle(Entity entity)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.ParserService.Publish(Entity parsedEntity)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.ParserService.Parse()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Parser.DocumentParser.Parse()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.Illustrations.IllustrationEntitiesPublishingService.PublishEntitiesFromSourceFile()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.Illustrations.IllustrationEntitiesPublishingService.StartPublishingEntities()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.Illustrations.IllustrationPlaceholderProcessor.ProcessPlaceholder(IPlaceholderTag placeholderTag)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Consumers.Writer.IllustrationPlaceholderConsumer.Consume(IPlaceholderTag placeholderTag)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.PlaceholderFoundRoute.Handle(PlaceholderFound placeholderFound)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.VisitPlaceholderTag(IPlaceholderTag tag)
   at Sdl.FileTypeSupport.Framework.Bilingual.PlaceholderTag.AcceptVisitor(IMarkupDataVisitor visitor)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.PublishEventsFrom(IEnumerable`1 container)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.SegmentFoundRoute.Handle(SegmentFound segmentFound)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.VisitSegment(ISegment segment)
   at Sdl.FileTypeSupport.Framework.Bilingual.Segment.AcceptVisitor(IMarkupDataVisitor visitor)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.PublishEventsFrom(IEnumerable`1 container)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Consumers.Writer.ContentFormattingTagPairConsumer.Consume(ITagPair tagPair)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.TagPairFoundRoute.HandleContentFormattingTag(ITagPair tagPair)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.TagPairFoundRoute.Handle(TagPairFound tagPairFound)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.VisitTagPair(ITagPair tag)
   at Sdl.FileTypeSupport.Framework.Bilingual.TagPair.AcceptVisitor(IMarkupDataVisitor visitor)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.PublishEventsFrom(IEnumerable`1 container)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.ParagraphUnitEventsPublisherService.PublishNonEmptyActiveParagraph(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.ParagraphUnitEventsPublisherService.PublishParagraphUnitAndNonEmptyActiveParagraph(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.ReplaceTargetContentService.PublishParagraphUnitAndUpdateReplacedContentPosition()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.ReplaceTargetContentRoute.Handle(Entity entity)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.ParserService.Publish(Entity parsedEntity)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.ParserService.Parse()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Parser.DocumentParser.Parse()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.Illustrations.IllustrationEntitiesPublishingService.PublishEntitiesFromSourceFile()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.Illustrations.IllustrationEntitiesPublishingService.StartPublishingEntities()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.Illustrations.IllustrationPlaceholderProcessor.ProcessPlaceholder(IPlaceholderTag placeholderTag)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Consumers.Writer.IllustrationPlaceholderConsumer.Consume(IPlaceholderTag placeholderTag)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.PlaceholderFoundRoute.Handle(PlaceholderFound placeholderFound)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.VisitPlaceholderTag(IPlaceholderTag tag)
   at Sdl.FileTypeSupport.Framework.Bilingual.PlaceholderTag.AcceptVisitor(IMarkupDataVisitor visitor)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.MarkupDataEventsPublisherService.PublishEventsFrom(IEnumerable`1 container)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.ParagraphUnitEventsPublisherService.PublishNonEmptyActiveParagraph(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.ParagraphUnitEventsPublisherService.PublishParagraphUnitAndNonEmptyActiveParagraph(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Services.ReplaceTargetContentService.PublishParagraphUnitAndUpdateReplacedContentPosition()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Routes.Writer.ReplaceTargetContentRoute.Handle(Entity entity)
   at lambda_method(Closure , IMessage )
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Dispatcher.Publish(IMessage message)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.ParserService.Publish(Entity parsedEntity)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.ParserService.Parse()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Parser.DocumentParser.Parse()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Writer.DocumentWriter.Process()
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Writer.DocxWriter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Processors.HandleActionByTagTypeProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Filters.Processors.CopySourceToEmptyTargetProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Bilingual.WhitespaceBetweenSegmentsBilingualProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.GenerationBilingualContentLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.FileGenerator.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.Bilingual.Tmfc.TmfcReaderImpl.vv_Visit(TmfcReaderImpl* , FrameworkParagraphContainerField* field)
   at FrameworkParagraphContainerField.vv_AcceptFrameworkVisitor(FrameworkParagraphContainerField* , FrameworkFieldVisitor* visitor)
   at Sdl.FileTypeSupport.Bilingual.Tmfc.TmfcReaderImpl.vv_VisitStartEndField(TmfcReaderImpl* , StartEndField* startEnd)
   at Sdl.FileTypeSupport.Bilingual.Tmfc.TmfcReaderImpl.b_VisitNext(TmfcReaderImpl* )
   at Sdl.FileTypeSupport.Bilingual.Tmfc.TmfcReader.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.SaveMonolingualAsJobRequest.Execute(IJobExecutionContext context)
   at Sdl.Desktop.Platform.Implementation.Services.Job.<_worker_DoWork>b__3()
   at Sdl.Desktop.Platform.Implementation.Services.Log.Resources(Object message, Action action)
   at Sdl.Desktop.Platform.Implementation.Services.Job._worker_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>14.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>14.1.6329.7</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>LAPTOP-E0CBRQ9K\steph</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>LAPTOP-E0CBRQ9K</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8292256 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

Parents
  • Hi ,

    I think the best options are these.

    First, try to create a new project with the PDF, pretranslate it from your TM and immediately save the target file. This may work.

    If it doesn't then open the PDF as a single file translation (so just drop it into the Welcome View and select "Translate Single Document"). Once the file has opened close it immediately. You now have a Word file in the same folder as the PDF. Clean up the Word file and then translate the Word file instead.

    Hope that helps? If it doesn't and if you are ok with this send me the translated SDLXLIFF file and the original source PDF and I'll see whether I can recover it. You can email it to pfilkin@sdl.com

    Regards

    Paul

    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

Reply
  • Hi ,

    I think the best options are these.

    First, try to create a new project with the PDF, pretranslate it from your TM and immediately save the target file. This may work.

    If it doesn't then open the PDF as a single file translation (so just drop it into the Welcome View and select "Translate Single Document"). Once the file has opened close it immediately. You now have a Word file in the same folder as the PDF. Clean up the Word file and then translate the Word file instead.

    Hope that helps? If it doesn't and if you are ok with this send me the translated SDLXLIFF file and the original source PDF and I'll see whether I can recover it. You can email it to pfilkin@sdl.com

    Regards

    Paul

    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

Children