A scheduled Easy API task fails with a "Class not registered" error when you are not simultaneously logged on to the server


A scheduled Easy API task for the SAS® Cost and Profitability Management client might fail with a "Class not registered" error. This error occurs when you are not also logged on to the Microsoft Windows console. The error appears in the sasservices.log file.

This problem occurs because of the restricted registry access that is introduced by new security settings in Windows 2012. In the registry, Windows assigns a temporary profile for each user. If the user logs off, the temporary profile is automatically deleted. The user then cannot access the necessary registry to create an instance of the automation object.

You can work around this problem in two ways.

One option is to ensure that you run the task while using the user account that originally installed the SAS Cost and Profitability Management client. 

Another option is to create a new scheduled task in Windows Task Scheduler. Specify the Configure for parameter to be Windows Server 2003, Windows® XP, or Windows® 2000, as shown in the image here.

 

Windows Server 2003, Windows XP, or Windows 2000 is selected as configure for, with Run with Highest privileges and run whether user is logged on or not checked