BookmarkSubscribeRSS Feed
Madhan_cog1
Quartz | Level 8

Hi Team,

 

SAS EG 7.1 is getting disconnected when we execute a program

 

below is the error message:

 

startIndex cannot be larger than length of string.

Parameter name: startIndex

 

 

-------------------------- Technical Information Follows --------------------------

 

Exception Details:

----------------------------------------

Exception type:  System.ArgumentOutOfRangeException

Message:         startIndex cannot be larger than length of string.

Parameter name: startIndex

Source:          mscorlib

Target Site:     Substring

 

Stack Trace:

   at System.String.Substring(Int32 startIndex, Int32 length)

   at SAS.EnhancedEditor.AutoComplete.CodeZoneManager.GetCurrentCodeZone(String source, Int32 col, Int32 row)

   at SAS.EnhancedEditor.AutoComplete.AutoCompleter.ShowSyntaxHelpPopup(TextRange keywordRange)

   at SAS.EnhancedEditor.Presentation.TextPane.HandleCurrentMouseToolTipRangeTimerTick(Object sender, EventArgs e)

   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.DispatcherOperation.InvokeImpl()

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Threading.DispatcherOperation.Invoke()

   at System.Windows.Threading.Dispatcher.ProcessQueue()

   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   at SAS.EG.App.Startup(String[] args)

   at SAS.EG.App.Main(String[] args)

   at SAS.EG.EntryPoint.Main(String[] args)

 

Is this a program error or could it be anything else .

 

Kindly help us to resolve this.

 

Thanks,

Madhan M.

2 REPLIES 2
anuraagjv
SAS Employee

Does it happen to all users or just specific user? If it's a specific user I'd recommed ruling out Enterprise Guide user profile corruption by renaming the Enterprise Guide\7.1 folder to 7.1_old. If the issue persists, you might want to check Event Viewer logs to see if that might help identify what's going on. Also, I recommend that you install the latest version of Enterprise Guide.

Sajid01
Meteorite | Level 14

Hello @Madhan_cog1 

If you are able to run other programs successfully in the SAS EG then the program could possibly   be a cause.
Some possible approaches would then be
(1) Run the program in steps and try trouble shooting.
(2) Execute the program in the batch mode from command line.

If no other program runs, then as suggested by @anuraagjv ,  recreate the profile and try.

If you have workspace server logs enabled, you may have a clue as to why this job is stopping abruptly. SAS Administrators should be able to enable /disable workspace server logs. 

If nothing of the above works, please approach SAS Tech Support. You will surely get a solution from them

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 334 views
  • 0 likes
  • 3 in conversation