Why am I getting 'Could not obtain a license for SolidWorks Task Scheduler'?

I’m getting the following error when trying to trying to call RunMacro API call:

Failed to Obtain A Valid License for SolidWorks Task Scheduler
Could not obtain a license for SolidWorks Task Scheduler.

Thanks!

Do you use a premium or professional licence for SW?
https://help.solidworks.com/2024/english/SolidWorks/sldworks/c_SOLIDWORKS_Task_Scheduler_Overview.htm#:~:text=License%20Requirements-,You%20must%20have%20a%20SOLIDWORKS%20Professional%2C%20SOLIDWORKS%20Premium%2C%20or%20SOLIDWORKS,perform%20all%20Task%20Scheduler%20tasks.

1 Like

Updates:

Found the issue. It does not matter what type of SOLIDWORKS Installation you have.

You need to make sure the license you have is a Professional or Premium.

This error will make the RunMacro2 API call fail.

1 Like