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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

$P_CRM is not defined when opening Contact lookup

(0) ShareShare
ReportReport
Posted on by 5

I have been having the followingg problem lately:

When I have a lookup for the Contact entity on a form, and I open the lookup by clicking "Look up more records" I get the following error:

"ReferenceError: $P_CRM is not defined".

This error comes from a file called crminternalutility.js.

For some reason this problem only happens on lookups for the Contact entity, not on any other lookups.

What could this be and is there a workaround for it?

I want to add a custom view to some of my contact lookups and it is not working. I suspect this error is part of the reason.

For clarity: I am having this error on all Contact-lookups in my CRM environment, not just the one I'm trying to customize.

I am working with the following Dynamics CRM version:

Microsoft Dynamics 365 Version 1612 (8.2.1.176) (DB 8.2.1.176) on-premises

I have the same question (0)
  • Satish Tiwari - CRM Profile Picture
    Microsoft Employee on at

    Hello Neal,

    One of the reason you are getting this error because of custom script(s) on the form. Do you have any custom script on the contact form ? If yes, can you try to deactivate and see if it works ?

  • Neal Robben Profile Picture
    5 on at

    Hello Satish,

    Thank you for responding.....

    This problem is not just happening on one form.... It happens on every lookup for the Contact entity, on every form.

    I just tried a form I have which has no custom scripts at all. The form contains lookups for the Account and Contact entities.

    If I open the dialog for the Contact entity, I have the problem again....

    However, if I open the dialog for the Account entity, that one just works.....

    The lookup for the Contact entity seems to be the only one affected...

    Also, when I open the dialog for the Contact lookup the add-button at the bottom of the dialog remains disabled so I can't actually select a record.

    And if I type in the little search-box, the placeholder text does not dissappear so it is just shown overlapping with whatever I type in.....

    Is there anything else I can try to diagnose the cause of the problem?

      Kind regards,

          Neal

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    Microsoft Employee on at

    Thanks for sharing details, Neal. If it's possible, can you try to upgrade to latest version of 8.2 and see if it helps ? or, you can open a support ticket so that we can investigate it further.

  • Neal Robben Profile Picture
    5 on at

    Unfortunately, I can't upgrade just now.

    I have no experience upgrading and my colleague who normally does this is on vacation for 2 weeks.

    How can I open a support ticket? I have already looked around for that yesterday but could not find how to do that.

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    Microsoft Employee on at

    You can open ticket from below portal -

    support.microsoft.com/.../productselection

    partner.microsoft.com/.../create

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans