Error when finalizing json files

Hi, 

Can someone help me out with this issue?

I created a bilingual project with a json file, translated it from Engish to Dutch, and had no problems so far.
When I try to finalize the file however, I get the following error.

 

Do I need to add a specific setting? 

Parents
  • Hi  

    This will be difficult to figure out the problem without looking at the file.
    One wild guess is are you using quotation marks anywhere?

    The error shows an "s" which leads me to believe you are using a single quotation mark for possessive case
    Like in the sentence "The dog's leash". Either way, its some special character before an "s" that is messing it up.

  • Hi,

    I've got nearly the same error, but with a t, instead of an s... (working on Studio 2019).

    After reading this post, we've tried to harmonize the quotation marks, just in case, but with no effect.

    I think the source file is fine as there was no problem converting it into an xliff. It had also been translated previously into other languages, and we didn't get any problem getting the target files in json format.

    Any idea that could help?

    Thanks in advance,

    Johanne

  • Unfortunately it is impossible to give an answer without actually looking at the file itself.

  • Thanks Jesse for your answer.

    Difficult to send the file around...

    If someone could tell me what this error means and how it should be solved, that would be great!

  • These screenshots of errors are not really very helpful.  You need to provide the error stack which you can attach as the xml file you download to your reply:

    Alternatively copy the contents and then insert as "code" to your post selecting XML as the format:

    This "might" provide more information we can use to troubleshoot your problem.

    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

  • Sure, thanks for the tip, Paul.

    Here is the xml file attached.

    <SDLErrorDetails time="10/09/2021 10:28:30">
      <ErrorMessage>Unexpected character while parsing path indexer: t</ErrorMessage>
      <Exception>
        <Type>Newtonsoft.Json.JsonException, Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed</Type>
        <HelpLink />
        <Source>Newtonsoft.Json</Source>
        <HResult>-2146233088</HResult>
        <StackTrace><![CDATA[   à Newtonsoft.Json.Linq.JsonPath.JPath.ParseQuotedField(Char indexerCloseChar)
       à Newtonsoft.Json.Linq.JsonPath.JPath.ParseIndexer(Char indexerOpenChar)
       à Newtonsoft.Json.Linq.JsonPath.JPath.ParsePath(List`1 filters, Int32 currentPartStartIndex, Boolean query)
       à Newtonsoft.Json.Linq.JsonPath.JPath.ParseMain()
       à Newtonsoft.Json.Linq.JsonPath.JPath..ctor(String expression)
       à Newtonsoft.Json.Linq.JToken.SelectToken(String path, Boolean errorWhenNoMatch)
       à Sdl.FileTypeSupport.Filters.Json.Writer.JsonTokenUpdater.UpdateJson(String jsonPath, String translatedText)
       à Sdl.FileTypeSupport.Filters.Json.Writer.ValueParagraphUnitConsumer.Consume(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Filters.Json.Writer.JsonWriterPublisher.PublishParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Filters.Json.Writer.JsonWriter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Filters.Processors.CopySourceToEmptyTargetProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Bilingual.WhitespaceBetweenSegmentsBilingualProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.GenerationBilingualContentLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.FileGenerator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.ProjectApi.AutomaticTasks.CancelProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.LocationMarkerLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
       à Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.ParagraphUnitBuffer.ProcessParagraphUnit(IParagraphUnit pu)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OutputParagraphUnit(IParagraphUnit pu)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseLocalizableParagraphUnit(transunit transunit, LockTypeFlags lockFlags)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseTransUnit(transunit transunit)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseGroup(group group)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.OnGroup(XmlElement groupElement)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.<ContinueScanning>b__14_15(ISdlXliffStreamContentHandler handler)
       à System.Collections.Generic.List`1.ForEach(Action`1 action)
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.SdlXliffFeeder.ContinueScanning()
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ContinueParsing()
       à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileReader.ParseNext()
       à Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
       à Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
       à Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
       à Sdl.ProjectApi.AutomaticTasks.NativeFileGenerator.GenerateFiles(ContentRestriction restriction, Boolean preview, Int32 filePercentBase, Int32 filePercentFactor)
       à Sdl.ProjectApi.AutomaticTasks.GenerateTargetTranslation.GenerateTargetTranslationTask.ProcessFile(IExecutingTaskFile executingTaskFile)
       à Sdl.ProjectApi.AutomaticTasks.AbstractFileLevelAutomaticTaskImplementation.Execute()]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>15.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>15.1.0.44109</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 8.1</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1036</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>CD219270-14924\Bienvenue</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>CD219270-14924</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>4112624 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    Cheers,

    Johanne

  • Thank you.  I think the first thing is to upgrade... it's free.  You are using 15.1.0.44109 and the current versions for 2019 are these:

    Trados Studio 2019 SR2 - 15.2.8.3007
    MultiTerm 2019 - 15.0.6.56482

    Once you have done this recreate your project and pre-translate from your TM.  Then try to save the target file again.

    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 Children