Scheduled Task - The parameter is incorrect (0x80070057) - Advanced Installer Community
mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

Scheduled Task - The parameter is incorrect (0x80070057)

We've run two upgrades a month apart. The updater is called via a windows scheduled task. The scheduled task is controlled by a user created by advanced installer. 8 of our sites did not run the second upgrade. Each of these sites had run the first upgrade correctly. When the scheduled task was run for the second upgrade there was an error message "The parameter is incorrect (0x80070057)".

More than a hundred other sites ran the exact same first upgrade, and did not have trouble running the scheduled task for the second upgrade. An inspection of every field and value in the scheduled task has shown the scheduled tasks at problem sites are identical to sites where the scheduled task runs. Every site has the scheduled task run by the same user(created by advanced installer), so this is not a permission issue. Running the upgrade manually recreates the scheduled task and resolves the issue, which indicates the task scheduler server is not the source of the problem.

As the scheduled task never calls the updater there are no logs to inspect. Is there a way to prevent this problem?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Scheduled Task - The parameter is incorrect (0x80070057)

Hello Max,

That is an error thrown by the "Task Scheduler" which is a component of Windows.

It doesn't really have much to do with Advanced Installer.

I have done some research and I found the following article which goes in detail on what can cause that specific error:

Fix: Task Scheduler Error 0x80070057

Hope that helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”