Hi Everyone,
I am hoping someone will have a simple answer to this very worrying question. I recently upgraded my 2015 CRM solution to 2016, this solution uses the sales order processing piece within CRM. On the outset everything looked fine, until I started creating opportunities, quote etc...
I have varies JavaScript functions on my forms, some of which use the CRMRESTKIT to retrieve and update information in the database, these occur onload, onchange etc...
However, since upgrading I receive an error, each time my JavaScript is invoked:

After debugging I notice this error is caused in the rest kit code - I am using version "CrmRestKit-2.6.1.js".
I have tested the query that gets sent from my JavaScript to the rest kit and it works, so I am guessing there is a compatibility problem? the code breaks at this part of the CRM Rest Kit code :
Mscrm.TurboForm.Control.CustomScriptsManager.handleCustomScriptException = function(exc) {
var $v_0 = Mscrm.TurboForm.Control.CustomScriptsManager.isExceptionFromOOBWebResource(exc, Mscrm.TurboForm.Control.CustomScriptsManager.get_instance().$BC_1);
if ($v_0) {
catchError(exc.message, window.location.href, 0, true);
}
else {
var $v_1 = Mscrm.TurboForm.Control.CustomScriptsManager.getScriptErrorMessage(exc);
if (!IsNull(exc.stack)) {
var $v_3 = exc.stack.split('\n');
if (!IsNull($v_3[0]) && !IsNull($v_3[1])) {
var $v_4 = $v_3[0];
var $v_5 = $v_3[1];
$v_1 = $v_4.trim() + ' ' + $v_5.trim();
}
}
var $v_2 = Mscrm.ErrorInformation.createExtendedErrorInfo('0x8063111B', null, exc.stack, [ $v_1 ]);
openErrorDlg('0x8063111B', null, $v_2, 0, 0);
}
}
Please NOTE: Everything was fully tested and worked in 2015! Any help/advice welcomed!
Thanks In Advance