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

Announcements

News and Announcements icon
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 16
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)
I have the same question (0)
  • Dengliang Li Profile Picture
    Microsoft Employee on at
    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
     
     
  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at
    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. 
  • Suggested answer
    DarkKnight Profile Picture
    4 on at
    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.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 123

#2
Hamza H Profile Picture

Hamza H 96 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans