Hi guys,
I'm using CRM 2016 SP1. I have a weird error message at my entities forms' loading. The problem does not occur every time and it's not directly related to my custom javascript. I think it's caused by a script that loads before the page is done rendering but I can't figure out a way to fix it. So, I want your advise on this:
Here's the log:
TypeError: Impossible d’obtenir la propriété « getElementsByClassName » d’une référence null ou non définie
at Mscrm.Utilities.getChildElementsByClassName (xxx/.../global.ashx)
at Mscrm.TurboForm.Control.View.LookupValueElement.prototype.setValue (xxx/.../JsProvider.ashx;ids=1223231347-405283869:32329:9)
at Mscrm.TurboForm.Control.View.LookupValueElement.prototype.update (xxx/.../JsProvider.ashx;ids=1223231347-405283869:32259:17)
at Mscrm.TurboForm.Control.View.ReadControlView.prototype.update (xxx/.../JsProvider.ashx;ids=1223231347-405283869:31487:13)
at Mscrm.TurboForm.Control.View.EditableControlView.prototype.update (xxx/.../JsProvider.ashx;ids=1223231347-405283869:23899:9)
at Mscrm.TurboForm.Control.Data.DataAttributeBase.prototype.setValueInternal (xxx/.../JsProvider.ashx;ids=1223231347-405283869:16825:17)
at Mscrm.TurboForm.Control.Data.DataAttributeBase.prototype.setValue (xxx/.../JsProvider.ashx;ids=1223231347-405283869:16812:13)
at Mscrm.FormControls.ClientApi.XrmTurboFormEntityAttributeLookup.prototype.setValue (xxx/.../JsProvider.ashx;ids=1223231347-405283869:14574:9)
at OnChangeExistingAccount (xxx/.../lead.js)
at OnLoad (xxx/.../lead.js)
Thanks,