SDL Studio 2017 error when typing into a segment that already contains text.

Hi,

when I type into a target segment that already contains text, I frequently get an error "index and length must refer to a location within...". It's pretty annoying, is there anything I can do to stop it? The only time it occurs is when I'm typing something before (at the start of a phrase) or inserting text into existing text (if I first delete the text already in the segment, the error doesn't occur).

 

Many thanks

Parents Reply Children
  • Hi Paul

    ok, here is the XML file rundown for the error.

    <?xml version="1.0"?>

    -<SDLErrorDetails time="11/4/2017 1:58:47 PM">

    <ErrorMessage>Index and length must refer to a location within the string. Parameter name: length</ErrorMessage>


    -<Exception>

    <Type>System.ArgumentOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>

    <ParamName>length</ParamName>

    <HelpLink/>

    <Source>mscorlib</Source>

    <HResult>-2146233086</HResult>


    -<StackTrace>

    <![CDATA[ at System.String.Substring(Int32 startIndex, Int32 length) at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionWindow.ProcessNormalKeyPress(Char ch) at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionWindow.ProcessKeyPressEvent(KeyPressEventArgs e) at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.IntellisenseEditing.Editor_KeyPress(Object sender, KeyPressEventArgs e) at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e) at System.Windows.Forms.Control.ProcessKeyEventArgs(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>14.0.0.0</ProductVersion>

    <EntryAssemblyFileVersion>14.0.5889.5</EntryAssemblyFileVersion>

    <OperatingSystem>Microsoft Windows 7 Home Premium </OperatingSystem>

    <ServicePack>Service Pack 1</ServicePack>

    <OperatingSystemLanguage>1033</OperatingSystemLanguage>

    <CodePage>1252</CodePage>


  • Thanks . I think the first thing you need to do is upgrade Studio (It's free). The latest versions are:

    SDL Trados Studio 2017 SR1 - 14.1.6329.7
    SDL MultiTerm 2017 SR1 - 14.1.2471.5

    You'll find the installers in your account and they will update themselves to the latest CU when you run them after installation. This process may well resolve your issue so I think you should do this first.

    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

  • Ok, I'll do that and get back to you should the problem continue. Many thanks!
  • Hi Paul

    ok, so after updating this error happened again. The Knowledge Base says this is a hyperlink related issue, but neither the segment concerned nor the file contain any hyperlinks. The Knowledge Base also says to activate the Word 2007-2016 File Type instead of the Word 2007-2013 File Type, but the setting were already in line with this advice.

    Error dump:

    <?xml version="1.0"?>

    -<SDLErrorDetails time="05/11/2017 17:29:55">

    <ErrorMessage>Index and length must refer to a location within the string. Parameter name: length</ErrorMessage>


    -<Exception>

    <Type>System.ArgumentOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>

    <ParamName>length</ParamName>

    <HelpLink/>

    <Source>mscorlib</Source>

    <HResult>-2146233086</HResult>


    -<StackTrace>

    <![CDATA[ at System.String.Substring(Int32 startIndex, Int32 length) at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionWindow.ProcessNormalKeyPress(Char ch) at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionWindow.ProcessKeyPressEvent(KeyPressEventArgs e) at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.IntellisenseEditing.Editor_KeyPress(Object sender, KeyPressEventArgs e) at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e) at System.Windows.Forms.Control.ProcessKeyEventArgs(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>14.0.0.0</ProductVersion>

    <EntryAssemblyFileVersion>14.1.6329.7</EntryAssemblyFileVersion>

    <OperatingSystem>Microsoft Windows 7 Home Premium </OperatingSystem>

    <ServicePack>Service Pack 1</ServicePack>

    <OperatingSystemLanguage>1033</OperatingSystemLanguage>

    <CodePage>1252</CodePage>

    Many thanks
  • Hello ,

    Can you share your Word file? If so you can email pfilkin@sdl.com

    Thanks

    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

  • Dear Paul
    I have the same problem than Simon. And it is quite annoying. As he said, it happens when typing a second word at the beginning of a translation segment.
    Say you have this (translation segment):
    "are rated on the basis of continuous duty operation"
    When I begin to type "sont" (replacing "are"), type a space then it triggers that message "index and length must refer to a location within..." It seems that it has something to do with the windows of suggested translations that may pop up if it has found an occurrence of translation. If it doesn't, then no problem. But it seems also that this phenomena is not systematic.
    Thanks for your help
    Arnaud
  • Yes, same here. There's no discernible pattern, and in my case I see this quite often when dictating into a segment that already has some text in it.