That error code is "Invalid service argument".
Could you check if you manage to destroy an event using the following code:
Code:
function calendar_deleteCalendarEntry() {
// The ID of the entry to be deleted
var entryId = "2";
var criteria = {
Type: "CalendarEntry",
Data: {
LocalIdList: [entryId]
}
}
try {
// Warning: The calendar entry will be deleted permanently!
var result = calendar_serviceObj.IDataSource.Delete(criteria);
if (result.ErrorCode == 0) {
alert("Calendar entry deleted successfully.");
} else {
alert("Error in deleting calendar entry");
}
} catch (ex) {
alert("Error in deleting calendar entry: " + ex);
}
}
-Ilkka