3
Vote

Webresource not loading

description

The webresource is not loading (in any browser) when there is data in audit history of an record. I have a following error message when I debug CRM:
SCRIPT16389: Unknown method.

*[-->local-name()<--='NewValue']/a:Attributes/a:KeyValuePairOfstringanyType/c:key
XRM.Undo.js, line 502 character 9

If the record has no changes in audit history, there's a message, that there is no data to show.

CRM 2013 online

comments

acraigx wrote Apr 1, 2014 at 6:42 PM

Same here. Is there a fix for this?

wrote Apr 6, 2014 at 2:52 AM

wrote Apr 10, 2014 at 1:48 PM

JDiMarzio wrote Apr 10, 2014 at 2:59 PM

i made changes to 4 lines:
//var newKeys = Xrm.Undo._selectNodes(auditDetails[i], "*[local-name()='NewValue']/a:Attributes/a:KeyValuePairOfstringanyType/c:key");
//var newVals = Xrm.Undo._selectNodes(auditDetails[i], "*[local-name()='NewValue']/a:Attributes/a:KeyValuePairOfstringanyType/c:value");
var newKeys = Xrm.Undo._selectNodes(auditDetails[i], "//b:NewValue/a:Attributes/a:KeyValuePairOfstringanyType/c:key");
var newVals = Xrm.Undo._selectNodes(auditDetails[i], "//b:NewValue/a:Attributes/a:KeyValuePairOfstringanyType/c:value");
and
//var oldKeys = Xrm.Undo._selectNodes(auditDetails[i], "*[local-name()='OldValue']/a:Attributes/a:KeyValuePairOfstringanyType/c:key");
//var oldVals = Xrm.Undo._selectNodes(auditDetails[i], "*[local-name()='OldValue']/a:Attributes/a:KeyValuePairOfstringanyType/c:value");
var oldKeys = Xrm.Undo._selectNodes(auditDetails[i], "//b:OldValue/a:Attributes/a:KeyValuePairOfstringanyType/c:key");
var oldVals = Xrm.Undo._selectNodes(auditDetails[i], "//b:OldValue/a:Attributes/a:KeyValuePairOfstringanyType/c:value");