Skip to main content
Dynamics 365 Community / Forums / Sales forum / Script Error: Cannot r...
Sales forum
Suggested answer

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

editSubscribe (0) 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)
Attachments
  • 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 Super User 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
     
     

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
a33ik Profile Picture

a33ik 84,305 Super User

#2
Sukrut Parab Profile Picture

Sukrut Parab 71,633

#3
YUN ZHU Profile Picture

YUN ZHU 60,219 Super User

Featured topics

Product updates

Dynamics 365 release plans