# Unhandled GUI error if name of new profile too long

**URL:** <https://forum.opentap.io/t/unhandled-gui-error-if-name-of-new-profile-too-long/78>\
**Category:** Technical\
**Tags:** bug, ks8400-editor\
**Created:** [October 23, 2020, 12:45pm UTC](https://forum.opentap.io/t/unhandled-gui-error-if-name-of-new-profile-too-long/78 "2020-10-23T12:45:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LXuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/lxuser/32/145_2.png) [@LXuser](https://forum.opentap.io/u/LXuser)\
**Post date:** [October 23, 2020, 12:45pm UTC](https://forum.opentap.io/t/unhandled-gui-error-if-name-of-new-profile-too-long/78/1 "2020-10-23T12:45:05Z")

</div>

Adding a new profile at Bench Settting creates this unhandled error if name is too long:

14:41:06.486 Settings Saved PythonSettings to C:\Program Files\OpenTAP\Settings\Python.xml [6.13 ms]  
14:41:06.493 Settings Saved ResultSettings to C:\Program Files\OpenTAP\Settings\Results.xml [6.58 ms]  
14:41:06.499 Settings Saved YardstickSettings to C:\Program Files\OpenTAP\Settings\Yardstick.xml [6.04 ms]  
14:41:06.501 Main **Caught unhandled GUI error.**  
14:41:06.501 Main Exception: Der angegebene Pfad und/oder Dateiname ist zu lang. Der vollständig qualifizierte Dateiname muss kürzer als 260 Zeichen und der Pfadname kürzer als 248 Zeichen sein.  
14:41:06.502 Main bei [System.IO](http://System.IO).\_\_Error.WinIOError(Int32 errorCode, String maybeFullPath)  
14:41:06.502 Main bei System.IO.LongPathHelper.GetFullPathName(String path, StringBuffer fullPath)  
14:41:06.502 Main bei System.IO.LongPathHelper.Normalize(String path, UInt32 maxPathLength, Boolean checkInvalidCharacters, Boolean expandShortPaths)  
14:41:06.502 Main bei System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)  
14:41:06.502 Main bei System.IO.Path.GetFullPathInternal(String path)  
14:41:06.502 Main bei OpenTap.ComponentSettings.SetSettingsProfile(String groupName, String profileName)  
14:41:06.502 Main bei Keysight.OpenTap.Wpf.TapSettings.SetSettingsDir(String newdir)  
14:41:06.502 Main bei Keysight.OpenTap.Wpf.SettingsDialog.f()  
14:41:06.502 Main bei Keysight.OpenTap.Wpf.SettingsDialog.j(Object A\_0, RoutedEventArgs A\_1)  
14:41:06.502 Main bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
14:41:06.502 Main bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)  
14:41:06.502 Main bei System.Windows.Controls.Primitives.ButtonBase.OnClick()  
14:41:06.502 Main bei System.Windows.Controls.Button.OnClick()  
14:41:06.502 Main bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)  
14:41:06.502 Main bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)  
14:41:06.502 Main bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)  
14:41:06.502 Main bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
14:41:06.502 Main bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)  
14:41:06.502 Main bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)  
14:41:06.502 Main bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)  
14:41:06.502 Main bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)  
14:41:06.502 Main bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
14:41:06.502 Main bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)  
14:41:06.502 Main bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)  
14:41:06.502 Main bei System.Windows.Input.InputManager.ProcessStagingArea()  
14:41:06.502 Main bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)  
14:41:06.502 Main bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)  
14:41:06.502 Main bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)  
14:41:06.502 Main bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
14:41:06.502 Main bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
14:41:06.502 Main bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
14:41:06.502 Main bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)  
14:41:06.502 Main bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)  
14:41:06.502 Main bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)  
14:41:06.504 Main Exception caught at:  
14:41:06.504 Main at System.Object TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
14:41:06.504 Main at System.Object LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)  
14:41:06.504 Main at IntPtr SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)  
14:41:06.504 Main at IntPtr DispatchMessage(System.Windows.Interop.MSG ByRef)  
14:41:06.504 Main at IntPtr DispatchMessage(System.Windows.Interop.MSG ByRef)  
14:41:06.504 Main at Void PushFrameImpl(System.Windows.Threading.DispatcherFrame)  
14:41:06.504 Main at System.Object ShowHelper(System.Object)  
14:41:06.504 Main at System.Nullable`1[System.Boolean] ShowDialog()  
14:41:06.504 Main at Void OpenDialog(System.Object, System.Windows.Window, System.Object)  
14:41:06.504 Main at Void OpenSettings(System.Object)  
14:41:06.504 Main at Void h(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)  
14:41:06.504 Main at Void OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)  
14:41:06.504 Main at Boolean ExecuteCommandBinding(System.Object, System.Windows.Input.ExecutedRoutedEventArgs, System.Windows.Input.CommandBinding)  
14:41:06.504 Main at Void FindCommandBinding(System.Windows.Input.CommandBindingCollection, System.Object, System.Windows.RoutedEventArgs, System.Windows.Input.ICommand, Boolean)  
14:41:06.504 Main at Void FindCommandBinding(System.Object, System.Windows.RoutedEventArgs, System.Windows.Input.ICommand, Boolean)  
14:41:06.504 Main at Void OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)  
14:41:06.504 Main at Void InvokeHandler(System.Delegate, System.Object)  
14:41:06.504 Main at Void InvokeHandler(System.Object, System.Windows.RoutedEventArgs)  
14:41:06.504 Main at Void InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)  
14:41:06.504 Main at Void RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)  
14:41:06.504 Main at Boolean ExecuteImpl(System.Object, System.Windows.IInputElement, Boolean)  
14:41:06.504 Main at Void TransferEvent(System.Windows.IInputElement, System.Windows.Input.ExecutedRoutedEventArgs)  
14:41:06.504 Main at Void OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)  
14:41:06.504 Main at Void InvokeHandler(System.Delegate, System.Object)  
14:41:06.504 Main at Void InvokeHandler(System.Object, System.Windows.RoutedEventArgs)  
14:41:06.504 Main at Void InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)  
14:41:06.504 Main at Void RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)  
14:41:06.504 Main at Boolean ExecuteImpl(System.Object, System.Windows.IInputElement, Boolean)  
14:41:06.504 Main at Void CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)  
14:41:06.504 Main at System.Object InvokeClickAfterRender(System.Object)  
14:41:06.504 Main at System.Object InternalRealCall(System.Delegate, System.Object, Int32)  
14:41:06.504 Main at System.Object TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
14:41:06.504 Main at Void InvokeImpl()  
14:41:06.504 Main at Void CallbackWrapper(System.Object)  
14:41:06.505 Main at Void RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
14:41:06.505 Main at Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
14:41:06.505 Main at Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)  
14:41:06.505 Main at Void Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)  
14:41:06.505 Main at Void Invoke()  
14:41:06.505 Main at Void ProcessQueue()  
14:41:06.505 Main at IntPtr WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
14:41:06.505 Main at IntPtr WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
14:41:06.505 Main at System.Object DispatcherCallbackOperation(System.Object)  
14:41:06.505 Main at System.Object InternalRealCall(System.Delegate, System.Object, Int32)  
14:41:06.505 Main at System.Object TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
14:41:06.505 Main at System.Object LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)  
14:41:06.505 Main at IntPtr SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)  
14:41:06.505 Main at IntPtr DispatchMessage(System.Windows.Interop.MSG ByRef)  
14:41:06.505 Main at IntPtr DispatchMessage(System.Windows.Interop.MSG ByRef)  
14:41:06.505 Main at Void PushFrameImpl(System.Windows.Threading.DispatcherFrame)  
14:41:06.505 Main at System.Object RunDispatcher(System.Object)  
14:41:06.505 Main at Int32 RunInternal(System.Windows.Window)  
14:41:06.505 Main at Void Main()

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [October 23, 2020, 3:04pm UTC](https://forum.opentap.io/t/unhandled-gui-error-if-name-of-new-profile-too-long/78/2 "2020-10-23T15:04:25Z")

</div>

Thanks, I’ve submitted this as a bug to Keysight R&D
