The function "CreateJobScheduleByName", using the C# development environment, fails when I passed the properly formed XML to schedule a job to run at a future date. The following error is displayed:
Creating the schedule by name... An exception occoured System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: There is no row at position 0. ---> Altiris.ASDK.ASDKException: There is no row at position 0.
The cause is unclear at this moment but it would seem to be a problem with parsing the XML passed to the function.
It appears that the documentation showing how to correctly form the XML for the schedule is incorrect. The following type of syntax should be used:
// Get the JobID. int jobID = jobManagement.GetJobIDs("DIR Command (Windows)");
// The appropriate computer name should be substituted in <computerName>. string scheduleInfo = computerManagement.GetSchedulesByAttribute("<computerName>", 6); scheduleManagement.CreateJobSchedule( id, jobID, false, "ScheduleManagement", stringXML);
With this approach, the parsing of the schedule seems to be correctly intact.
The documentation issues have been entered into the tracking system to get them changed for the next release of the ASDK.
NOTE: CreateJobSchedule must be used rather than CreateJobSchedulByName due to DS authentication issues (see KB 33965).
Applies To ASDK 1.3 Notification Server 6.0 SP3 Deployment Solution 6.8
Rate this Article
This is machine translated content
Login to Subscribe
Please login to set up your subscription.
Didn't find the article you were looking for? Try these resources.