Problem Note 58247: An unhandled exception error might occur when scheduling a SAS® Enterprise Guide® project or process flow
When scheduling a SAS Enterprise Guide project or process flow, the following error might occur:
-------------------------- Technical Information Follows--------------------------
Exception Details:
----------------------------------------
Exception type: System.UnauthorizedAccessException
Message: Access is denied. (Exception from HRESULT: 0x80070005(E_ACCESSDENIED))
Source: Microsoft.Win32.TaskScheduler
Target Site: RegisterTaskDefinition
Stack Trace:
at
Microsoft.Win32.TaskScheduler.V2Interop.ITaskFolder.RegisterTaskDefinition(Strin
g Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object
password, TaskLogonType LogonType, Object sddl)
at Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String
Path, TaskDefinition definition, TaskCreation createType, String UserId, String
password, TaskLogonType LogonType, String sddl)
at SAS.EG.ProjectElements.ScheduleElement.CreateNewTaskSchedule(String
vbsPath, String parameters)
at SAS.EG.ProjectElements.ScheduleElement.OpenNew(IntPtr parent)
at SAS.EG.MainForm.OnScheduleElement(Element ele)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
The Windows Task Scheduler does not run programs as an administrator by default. This is true even if the user who is running the scheduled job has administrator rights.
On the Microsoft Task Scheduler General tab, select Run only when user is logged on to avoid the error. Alternatively, to work around this Windows requirement, run SAS Enterprise Guide as an Administrator before scheduling the project or process flow. For more information, see "How to Run an App as Administrator in Windows 10".
Operating System and Release Information
SAS System | SAS Enterprise Guide | Microsoft Windows 10 | 7.11 | 7.13 | | 9.4 TS1M4 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2016-05-26 11:26:53 |
Date Created: | 2016-05-19 17:01:51 |