You are currently working on UAT 

Studio 2019. Error while performing a "Find and Replace" operation.

Former Member
Former Member

Error dialog box in Trados Studio displaying message: Specified argument was out of the range of valid values. Parameter name: Invalid 'from' position for this document.

I was just running a simple Find and Replace function.

Stacktrace here:

<SDLErrorDetails time="12/2/2018 8:32:42 PM">
  <ErrorMessage>Specified argument was out of the range of valid values.
Parameter name: Invalid 'from' position for this document</ErrorMessage>
  <Exception>
    <Type>System.ArgumentOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <ParamName>Invalid 'from' position for this document</ParamName>
    <HelpLink />
    <Source>Sdl.TranslationStudio.Common</Source>
    <HResult>-2146233086</HResult>
    <StackTrace><![CDATA[   at Sdl.TranslationStudio.Common.SearchFramework.InteractiveFind.UpdateRangeFrom(Position from)
   at Sdl.TranslationStudio.Common.FindAndReplace.FindInDocument.UpdateRangeFrom(ContentRange range)
   at Sdl.TranslationStudio.Common.FindAndReplace.AbstractFindAndReplaceProvider.dialogReplaceInvoked(Object sender, ReplaceEventArgs e)
   at Sdl.TranslationStudio.Common.FindAndReplace.ReplaceControl.replaceButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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.0.1.36320</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8378192 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>



Generated Image Alt-Text
[edited by: Trados AI at 3:13 PM (GMT 0) on 28 Feb 2024]
emoji
Parents Reply
  • Hi Paul, I am seeing this error too many times. And when this happens, find & replace no longer works before re-opening the document (the document saves properly). I don't think a sdlxliff will be something for you to debug because this error does not reproduce, I tried. And most of the time the files are confidential, I simply can't upload them anywhere for everybody to see. All I can provide is that I was replacing Chinese character AAA with BBB, Studio will find AAA and replace with BBB before showing this error message, then Find and Replace window will not open when pressing Ctrl+F before saving and re-opening the document. And it seems that AAA is always the last instance in the document.
Children