VMware {code} Community
vaibhav87
Enthusiast
Enthusiast

Create Schedule task throwing invalid argument error.

Hi,

Currently we are using DailyTaskScheduler for SOME activity in our plugin.

Code Snip :

    taskSpec details :

                name : "task name"

                description : "some desc"

                enabled = true;

                scheduler = dailyScheduler.

              

               CreateTaskAction taskAction = new CreateTaskAction();

               taskAction.cancelable = true;

               taskAction.taskTypeId = "XXX_ID"

 

               taskSpec.action = taskAction;

              scheduledTaskManager.createScheduledTask(me, taskSpec);  //for creating schedule task.

Above code works fine with vCenter 5.1 and 5.5 but while deployed in VC 6.0 it throws

com.vmware.vim25.InvalidRequest

While checking on web client task details it says : You have attempted to use scheduler vim.scheduler.TaskScheduler that is unknown to VCenter.

0 Kudos
0 Replies