Task Scheduler Error: An invalid argument was encountered

Dear all,

I've been successfully running Solidworks 2015 SP4 on Windows 10 (although I have to run it in Windows 8 compatibility mode because otherwise the open dialog crashes).  If I try to schedule a task in the scheduler, however, this gives an error: An invalid argument was encountered. This happens as-soon-as have browsed and added files in the 'task files and folders' dialog. From that point on, it doesn't matter what I try; I keep getting the error.

I've tried to run the sceduler in compatibility mode (windows 7/8), but without success.

Hope someone knows a fix.

Best regards,

Cor

SolidworksTask Scheduler
Answers 10
MB
MB 2016-01-21 Best Answer

I am having a similar issue in task scheduler.  When I try to Print Files, I can add the specific files to print, but when I click on the Advanced or Options button to changed the settings I get the same error (see pic below).  Then after I get the error the first time, I get it whenever I select any other task (such as Export Files, etc...).  I have to close down Task Scheduler and restart it to get the other tasks to start working again. 

Although, if I were to reverse the process (by selecting Options first, modifying the options as needed, then selecting the files to print last), it will let me print the files without getting the error.

comment imagecomment image
SF
SF 2016-02-19

Hello, Mike and Cory

This is a know issue. Please see the following Solution:

S-068257

What may cause the error message "An invalid argument was encountered" to appear  when performing tasks in the SOLIDWORKS Task Scheduler?

This error is  may be caused by specific user account.

You may advise the customer to log in on the same machine with different user account, and perform a task in the Task Scheduler.

If the error is no longer present, then this issue is related to user account.

The customer needs to contact their IT department.

Sincerely, D.Hall

NH
NH 2016-07-12

This doesn't seem like an actual fix.  It is barely a work around.  I have privileges, an email account, and links to folders that would all have to be reassigned to a new user.  Not to mention paying our outsourced IT company to come in and make all of these changes.  If it is a known issue, why is no one trying to fix it?

DM
DM 2016-08-01

I agree with Nicholas, this is a HUGE issue for us. It seems to randomly crop up on many(but not all) of our machines.  It is a huge waste of time to have to recreate accounts.   It feels very much like we are forced to waste lots of time jumping through hoops for this error because SW is too lazy to find out what is going wrong.     two version now have had is 2015 and 2016

SF
SF 2016-11-03

Hi Dennis,

I just installed 2016 sp5 and 2017 and still have the issue. I had created a new user profile as they suggested. It just took a minute and I didn't lose anything. I kept my old user profile and just use the new one for task scheduler. Not a solution, I know.

My customer was able to resolve it with a reformat and reinstall.

I am going to create an SR and ask if there are any updates.

Sincerely, Darcie

JS
JS 2016-11-07

any updates on this? i don't want to have to create a new user account. some of our users here have this issue, and it is unhandy.

CM
CM 2016-11-07

This issue was not really solved, since I also don't have the option to just create a new user account.

My work around was to built my own vba macro's to do some batch tasks for me (very simple stuff).

Good luck,

Cor

JS
JS 2016-11-07

Hi Cory.

Basically all I use TS for is to export drawings to pdfs, or to print files.

Is this the type of tasks you do? I have never created my own macros. where could i go to find info on creating macros?

SF
SF 2016-11-07

Hi Joseph,

I would call your VAR and have them create a High Priority SR for the issue. Get Solidworks attention.

Sincerely, Darcie

JS
JS 2016-11-07

Another thread covering the same issues - see