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 :
Microsoft Dynamics CRM (Archived)

Getting script error when trying to open any entity record and also getting 404 error on quick view and iframe.

(0) ShareShare
ReportReport
Posted on by

When I am going to a customer form I am getting a Script Error, different users are getting the same error.

If you clear your cache and temp file, and increase cache size it will fix it for a few days, but the issues arises again. A few times we have to clear the cache and temp files multiple times before the issue fixes it self.

Following are the error messages :

ReferenceError: 'loadDFConfiguration' is undefined
at eval code (eval code:1:1)
at RunHandlerInternal (xyz.com/.../ClientApiWrapper.aspx)
at RunHandlers (xyz.com/.../ClientApiWrapper.aspx)
at OnScriptTagLoaded (xyz.com/.../ClientApiWrapper.aspx)
at Anonymous function (xyz.com/.../ClientApiWrapper.aspx)

TypeError: Unable to get property 'form_onload' of undefined or null reference
at eval code (eval code:1:1)
at RunHandlerInternal (xyz.com/.../ClientApiWrapper.aspx)
at RunHandlers (xyz.com/.../ClientApiWrapper.aspx)
at OnScriptTagLoaded (xyz.com/.../ClientApiWrapper.aspx)
at Anonymous function (xyz.com/.../ClientApiWrapper.aspx)

ReferenceError: 'GP' is undefined //here 'GP' is javascript namespace.
at eval code (eval code:1:1)
at RunHandlerInternal (xyz.com/.../ClientApiWrapper.aspx)
at RunHandlers (xyz.com/.../ClientApiWrapper.aspx)
at OnScriptTagLoaded (xyz.com/.../ClientApiWrapper.aspx)
at Anonymous function (xyz.com/.../ClientApiWrapper.aspx)

Issue is intermittent and mostly seen on production environment can anybody please suggest the permanent solution of this issue. Please let me know if something else is required to mention.

2047.Screenshot.jpg

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    PranavShroti Profile Picture
    4,510 on at

    Hi we were having similar issue with our online application. In our investigation we found out few things

    1. The RAM of client customer was very low and they used to open multiple browser windows and other memory consuming apps like outlook etc. 

    2. There was a memory leak in one of the third party CTI tool that we were consuming in crm environment.  The way I came to know about this was to capture browser memory consumption.

    Our suggestions:

    --We suggested to increase the RAM.

    --Contacted 3 party vendor and got a new release.

    Performance of the app improved drastically after these two suggestion implementation. 

    Hope this helps.

    Regards,

    Pranav

  • Community Member Profile Picture
    on at

    Thank You Pranav,

    Will investigate end user's environment, your input can be fit in my case too as we have tried with code change, refactoring, debugging etc.

  • Sachin Dev Gupta Profile Picture
    on at

    Hello,

    Did you guys finally found a resolution of this issue? I am also experiencing the same error message, specifically on Email entity onload, only in IE.  Same code, form is working fine in Chrome.  FYI: I am not using Legacy form render.

    ReferenceError: 'po' is undefined
    at eval code (eval code:1:1)
    at RunHandlerInternal (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
    at RunHandlers (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
    at OnScriptTagLoaded (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
    at Anonymous function (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)

  • Suggested answer
    Sachin Dev Gupta Profile Picture
    on at

    Never mind, I find the solution for my problem.  It was not a javascript error, it was not a syntax error. Just how IE is going to handle a syntax or function.

    I have one function on Onload or entity.  The way, this function was defined was defined was differnet.

    Let's say:

    if (typeof(po) == "undefined") {

      po = {

          __namespace: true

      };

    }

    if (typeof(po.Library) == "undefined") {

      po.Library = {

          __namespace: true

      };

    }

    if (typeof ($) === "undefined") {

      $ = parent.$;

      jQuery = parent.jQuery;

    }

    po.Library.Email = {

      LoadForm: function () {

          po.Library.Email.callFaultySignaturefunction(); // This will not work in IE, but work in Chrome and was causing issue.

          po.Library.Email.callfunctionwithCorrectSignature(); // This works fine.

    },

    callFaultySignaturefunction(){

    },

    callfunctionwithCorrectSignature : function()

    {

    },

      __namespace: true

    };

  • Suggested answer
    Sumit Chavan Profile Picture
    82 on at

    When we had the same issue we tried debugging the JavaScript webresource to the fullest. Then we found out that there was a fetch xml which was trying to retrieve specific values of an entity, while one of the field was deprecated. When I removed the field from the JS function, the error vanished.

    If you find this reply helpful, kindly mark it as answer.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans