Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Script Error: Cannot read properties of null (reading 'getAttribute')

(1) ShareShare
ReportReport
Posted on by 9
Today, I removed the contact quick view from opportunity form, and now it starts showing this error.
Please help me to fix it.
Much appreciated.
 
Cannot read properties of null (reading 'getAttribute')
Session Id: d77f0e08-fc66-4d5d-95ce-95fe85f096af
Correlation Id: 62334ca0-ac0b-47ad-add1-ecbd0e0664c9
Event Name: onload
Function Name: ShowContactCardOnForm
Web Resource Name: SalesPro/Common/msdynce_Common.js
Solution Name: msdyn_SalesProPublisher
Name: microsoftdynamics

Time: Tue Mar 05 2024 19:15:06 GMT-0600 (Central Standard Time)
  • Suggested answer
    DarkKnight Profile Picture
    DarkKnight 4 on at
    Script Error: Cannot read properties of null (reading 'getAttribute')
    When there is requirement to remove OOB components like Quick View Form, sub-grid by default it might be present in the form, I would suggest instead of removing the item, try to hide from the form. Because there are some MS JS which might do some operation on the components. 
     
    Revert your changes by importing back-up solution or add the quick view form in the same form.
  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,482 Super User 2025 Season 1 on at
    Script Error: Cannot read properties of null (reading 'getAttribute')
    This error coming from OOB scripts.

    To minimize the scope please add it back and check if error appears or not.

    If error does not comes then do not remove the quick view just hide the section from FORM.
     
    Thank You,
    Pradeep Rai. 
  • Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Script Error: Cannot read properties of null (reading 'getAttribute')
    Hi,
     
    Is this Web resource customized by you or does it belong to the system?
    If it was customized by you, could you provide the full code?
     
    Best Regards,
    Dengliang Li
     
     

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans