web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Javascript error at page loading

(0) ShareShare
ReportReport
Posted on by

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,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Saroj Das Profile Picture
    3,355 on at

    Try selecting Legacy form rendering yes in Settings --> Administration --> System settings

    Sys_2D00_setting.JPG

    Thanks,
    Saroj

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans