Due to essential maintenance, access to Trados cloud will be unavailable on Saturday 30 August from 00:00 to 12:00 UTC.

"Range is not valid" error - no way to dismiss it

Occurred when I tried to select all target text in Studio 2017 SR1 (going from bottom to the top). An error pops-up, which can not be dismissed and forces me to kill trados using Task Manager.

Error details:
<SDLErrorDetails time="2017-08-10 12:54:18">
<ErrorMessage>Range is not valid.</ErrorMessage>
<Exception>
<Type>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
<ParamName />
<HelpLink />
<Source>Sdl.DesktopEditor.Control</Source>
<HResult>-2147024809</HResult>
<StackTrace><![CDATA[ w AbstractFrameworkDocument.GetMarkupDataRanges(ContentRange range)
w Sdl.TranslationStudio.Editor.Comments.AddCommentCondition.IsSelectionEntireSingleRevision()
w Sdl.TranslationStudio.Editor.Comments.AddCommentCondition.GetValue()
w Sdl.Desktop.Platform.Extensions.AbstractCondition.get_Value()
w Sdl.TranslationStudio.Editor.Comments.Actions.AddCommentAction.IsEnabledWithSelection(IContentSelection selection)
w Sdl.TranslationStudio.Editor.AbstractActiveRangeAction.IsActionEnabled()
w Sdl.TranslationStudio.Editor.Comments.Actions.AddCommentAction.IsActionEnabled()
w Sdl.TranslationStudio.Api.Editor.AbstractActiveDocumentAction.UpdateAction()
w Sdl.TranslationStudio.Editor.AbstractActiveRangeAction.sideBySideEditor_Target_Entered(Object sender, EventArgs e)
w System.EventHandler.Invoke(Object sender, EventArgs e)
w System.Windows.Forms.Control.OnGotFocus(EventArgs e)
w System.Windows.Forms.Control.WmSetFocus(Message& m)
w System.Windows.Forms.Control.WndProc(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
w 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.6284.6</EntryAssemblyFileVersion>
<OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
<ServicePack>NULL</ServicePack>
<OperatingSystemLanguage>1045</OperatingSystemLanguage>
<CodePage>1250</CodePage>
<LoggedOnUser>Biurotron\mieczu</LoggedOnUser>
<DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
<ComputerName>BIUROTRON</ComputerName>
<ConnectedToNetwork>True</ConnectedToNetwork>
<PhysicalMemory>16753196 MB</PhysicalMemory>
</Environment>
</SDLErrorDetails>

Parents Reply Children
  • I was selecting by holding left mouse button and scrolling (what a pity thought that there is no other way to do it - e.g Select All anywhere in the menus). The file was not merged, single sdlxliff (with excel file inside). I guess, I might have accidentally included the file start (but I shouldn't Studio be be prone to this rather than locking up like that?). No unusual content. 501 TUs long (I've been selecting much longer files this way).
  • Hi ,

    When does the error occur? Simply after you've tried to highlight the text? Or have you performed an action after highlighting, that triggered the error.

    Normally if one includes the file start or end, it does not matter if all one is going to do is copy the text. If one tries to perform an action that is not possible (deleting for example) a simple message appears saying that the action cannot be performed on the file start/end but the software does not freeze. Unless there is another factor involved, such as a very large file or 'temperamental' 3rd party content for example. 

    When you say 'Excel file inside' do you mean that the original file was an Excel file, or that it is included as content in another format, a Word file for example, before conversion to .sdlxliff?

    Run a little test as follows:

    Try left-clicking once in the first segment before the first character. Now, using your mouse, drag the right-hand scroll bar down to the end of the document (without moving your cursor).

    Hold down the Shift key then left-click once in the last segment after the last character.

    It may take a moment or three but the whole text should become selected with no error message.

    If you've done exactly as I described and an error message occurs, there is definitely something wrong.

    Hopefully someone who knows more than I will be able to suggest what that might be...

    All the best,

    Ali

  • It happened after I tried to highlight the text. Orignal file was Excel. I managed to copy the text the way you are suggesting. I was just hoping that if I post it here, someone from SDL will see this and treat it as a (nasty) bug report. BTW is there any official channel users could report bugs directly to SDL ?
  • Hi again Krzysztof,

    If you were able to copy the text the way I suggested then I'm surprised your usual method didn't work. The reason I suggested the method I did is because it is easier to be more precise in what you select. I find the gradual highlighting of the text within the document more prone to failure through my shaky hands ;-))

    Regarding the 'official channel', I'm sure when  or one of the other SDL guys reads this they will be able to ask you for any further information they need to decide if this is a bug and report it. Here is as good a place as any.

    All the best,

    Alison