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 :
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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans