Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

Create Schedule task throwing invalid argument error.

$
0
0

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.


Viewing all articles
Browse latest Browse all 2052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>