I get an error in the event viewer which contains "Unknown error for KNOWNFOLDERID FOLDERID_Documents" when I try to run my batch script which calls SAS in the Windows Task Scheduler. When I try to run it outside I don't get any problems.
Other info:
Anyone who have a similar problem like this? Greatly appreciate any assistance.
Which user executes the scheduled sas program? Has the user a home-folder in C:\Users?
SAS uses the known folders to assign the sasuser library
Yes, confirming the user has a home folder under C:\Users, also has Log on as a batch job permissions.
I actually have an initial post with a similar issue on the FolderID_Documents which I had to remove in my custom sas config file because the Windows Task Scheduler fails due to this.
After doing some investigation, it seems like the one which is causing the problem is when I initialize the saspy module in my python script. It seems it cannot open up a workspace or it's also calling the default sasv9.cfg file which actually has a declaration of the FolderID_Documents. Apparently, I don't see any options in the saspy module to select a specific sas config file.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.