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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to get property 'getValue' of undefined or null reference.

(0) ShareShare
ReportReport
Posted on by

Hi, I am getting a strange error "Unable to get property 'getValue' of undefined or null reference".  I even remove all the scripts from the Form and no script attach in ribbon as well. Cache is cleared. 

*This post is locked for comments

  • Suggested answer
    Jitendra Sahu Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Hi Sohail,

    Make sure your field is not a typeof Lookup.

    Also check whether you have entered valid attribute name as

    Xrm.Page.getAttribute("prefix_name");

  • Suggested answer
    Jitendra Sahu Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Also remember

    getValue is a method, so the right way is getValue()

    Xrm.Page.getAttribute("prefix_name").getValue();

  • Suggested answer
    Hosk Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Do you have any javascript running on a form?

    if you have removed the javascript from a form then you need to save and publish those changes

  • Waqar Sohail Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Thanks Guido, But debugger is not working... Also I think FormLoad Event not getting trigger as well. I put the debugger on change of field it works but On load function is not getting called as this error comes first.

  • Waqar Sohail Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Hi Ben, I remove all the script and for sure I save and Publish but form still getting this issue. I check this on other System as well.  On Load script not getting called but if i put script on Change field it works.

    Thanks

  • Hosk Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    What version of CRM are you using?

  • Waqar Sohail Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Ben 2013 on Prem, There was some script on field before. So I remove the field and also remove the script from there. But now it causing this issue.

  • Hosk Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Have you removed the form onload event

  • Waqar Sohail Profile Picture
    on at
    RE: Unable to get property 'getValue' of undefined or null reference.

    Yes :) . do you think it caching something about onload event? because onload event it not getting call even.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans