LoadXML and define action errors

We are using dhtmlxScheduler v.4.3.1 Professional and 100s of exceptions triggered throughout the day. We are trying to determine the root cause but have not been able to trace the issue. The exceptions are either XML load errors or a failure in the update or insert operation. I have attached the code in question along with the pattern used below. Your guidance is highly appreciated.

// Pattern used:
myDP.defineAction(“error”, function(response)
myDP.defineAction(“invalid”, function(response)
myDP.defineAction(“inserted”, function(node)
myDP.defineAction(“updated”, function(node)
myDP.attachEvent(“onAfterUpdateFinish”,function()

myDP.init(scheduler);

scheduler.attachEvent(“onSaveError”, function(id, resp)
scheduler.attachEvent(“onLoadError”, function(resp)

dhtmlxError.catchError(“LoadXML”, function (type, desc, erData)

// scheduler_dp_setup.js

// setup scheduler data processor
myDP = new dataProcessor("/scheduler/eventsx.do");

myDP.defineAction(“error”, function(response) {
var strMessage = “Unexepected error encountered.\n”+
"E100 - Action ERR: "+response.textContent;
dhtmlx.message(strMessage);
return false;
});
myDP.defineAction(“invalid”, function(response) {
var strMessage = “Unexepected error encountered.\n”+
"E101 - Action Invalid: "+response.textContent;
dhtmlx.message(strMessage);
return false;
});
myDP.defineAction(“inserted”, function(node) {
try{
// …

	return true;
}
catch (e) {
	var strMessage = "Unexepected error encountered.\n"+
		"E102 - ERROR IN myDP.defineAction('inserted'): " + e;
	dhtmlx.message(strMessage);
}
return false;

});
myDP.defineAction(“updated”, function(node) {
try{
// …
return true;
}
catch (e) {
var strMessage = “Unexepected error encountered.\n”+
"E103 - ERROR IN myDP.defineAction(‘updated’): " + e;
dhtmlx.message(strMessage);
}
return false;
});
myDP.attachEvent(“onAfterUpdateFinish”,function(){
if (!this.updatedRows.length){
if (wm.Page.getPage(“PgScheduler”).isRefresh == true){
wm.Page.getPage(“PgScheduler”).isRefresh = false;
// clear data processor cache
// based on recommendation from DHTMLX forum: viewtopic.php?f=2&t=13478
app.varInfo.getValue(“DataProcessor”).updatedRows = [];
app.varInfo.getValue(“DataProcessor”)._invalid = {};
app.varInfo.getValue(“DataProcessor”)._in_progress = {};
wm.Page.getPage(“PgScheduler”).defineSchedData();
}
}
});

myDP.init(scheduler);

scheduler.attachEvent(“onSaveError”, function(id, resp){
var strMessage = “Error saving appointment.\n”+
"E400 - OSERR: "+resp.textContent;
dhtmlx.message(strMessage);
});
scheduler.attachEvent(“onLoadError”, function(resp){
var strMessage = “Error loading data.\n”+
"E500 - OLERR: “+resp.textContent;
console.error(strMessage);
});
dhtmlxError.catchError(“LoadXML”, function (type, desc, erData) {
var strMessage = “Unexepected error encountered.\n”+
“E600 - Type:”+type+” “+“desc:”+desc+” "+“erData:”+erData;
console.error(strMessage);
});