Input string was not in a correct format when trying to confirm a segment.

Hi,

I’m using Studio 2019 and got this message “Input string was not in a correct format” when trying to confirm a segment in a translation. I can confirm some segments in the same file and sometime, one segment can be confirmed one day but not the day after. 

Thanks for your help.

Lidya

  • Hello ,

    Could you please give us a bit more details about the issue? Please save the error by clicking on the disc icon and, then saving to your desktop and including this in communications with SDL.

    These 'error stacks' helps us locate the issues and provide solutions much quicker generally.

    Error dialog box in Trados Studio showing 'Failed to save target content: Could not find a part of the path C:UsersUsernameAppDataLocalTemp'.

    You can also post the full 'error stack':

    Screenshot of Trados Studio forum post interface with arrows pointing to 'Click here' and 'Advanced Editing Options' buttons.

    Oana Nagy | QA Engineer | RWS Group

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 2:00 AM (GMT 0) on 29 Feb 2024]
  • Hi,

    Here's the message error. It may help to know that the TM I work with is in a distant server.

    <SDLErrorDetails time="2021-04-08 09:46:23">
      <ErrorMessage>Input string was not in a correct format.</ErrorMessage>
      <Exception>
        <Type>System.FormatException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>mscorlib</Source>
        <HResult>-2146233033</HResult>
        <StackTrace><![CDATA[   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
       at System.Text.StringBuilder.AppendFormat(String format, Object[] args)
       at Sdl.Community.NumberVerifier.Processors.AggregateExtendedMessageOnNewLineErrorMessageProcessor.GenerateMessage(INumberResults numberResult, String errorMessage)
       at Sdl.Community.NumberVerifier.Processors.ConditionalErrorMessageProcessor.GenerateMessage(INumberResults numberResult, String errorMessage)
       at Sdl.Community.NumberVerifier.Processors.VerifyProcessor.<Verify>d__5.MoveNext()
       at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
       at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
       at Sdl.Community.NumberVerifier.NumberVerifierMain.CheckSourceAndTarget(String sourceText, String targetText)
       at Sdl.Community.NumberVerifier.NumberVerifierMain.CheckParagraphUnit(IParagraphUnit paragraphUnit)
       at Sdl.Community.NumberVerifier.NumberVerifierMain.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.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.TranslationStudio.Editor.TranslationEditor.SingleParagraphUnitBilingualParser.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.SegmentVerifier.Verify(ISegmentContainerNode segmentContainerNode, IParagraphUnitContainerNode paragraphContainerNode, IFileContainerNode fileContainerNode)
       at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.VerifySegment(ISegmentContainerNode segmentContainerNode, IParagraphUnitContainerNode paragraphContainerNode, IFileContainerNode fileContainerNode)
       at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.VerifySegment()
       at Sdl.TranslationStudio.Editor.TranslationEditor.Actions.AbstractConfirmSegmentAction.ExecuteActiveSegment()
       at Sdl.TranslationStudio.Editor.TranslationEditor.Actions.AbstractConfirmSegmentAction.Execute()
       at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.<>c__DisplayClass30_0.<ExecuteAction>b__0()
       at Sdl.Desktop.Logger.Log.Resources(Object message, Action action)
       at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteAction(IAction action, ActionOrigin origin, Boolean allowToggle)
       at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteActionForShortcut(Keys shortcut)
       at Sdl.Desktop.Platform.WinForms.StudioWindowForm.OnKeyDown(KeyEventArgs e)
       at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
       at System.Windows.Forms.Form.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
       at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
       at System.Windows.Forms.Control.WmKeyChar(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>15.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>15.2.8.3007</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Professionnel</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>3084</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>DESKTOP-OQMPFV4\Lidya</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>DESKTOP-OQMPFV4</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>8273984 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

  • Hi ,

    Thank you for the error details.

    Can you please open the project and a local TM and check if the issue is persistent.

    Also, I see you have the NumberVerifier plugin installed. Please check if you have it updated with the updated build 2.0.7.0., here:

    https://appstore.sdl.com/language/app/sdl-number-verifier/440/

    Let us know how it goes with the local TM, if you can easily confirm segments or, on the contrary, it's the same so we can go try other workarounds.

    Regards,

    Oana Nagy | QA Engineer | RWS Group

  • Hi Oana Nagy,

    I reinstalled the app for number verification and it seems to have resolved the problem. Slight smile

    thanks a lot,