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)

Refrerence error: some function is not defined at eval.

(0) ShareShare
ReportReport
Posted on by

Hi,

i am getting error while saving the data in dyanmic crm on form save. i have created "UpdateRecordOnasave" method in the js file. Below the errror which is disaplying

ReferenceError: UpdateRecordOnasave is not defined
    at eval (eval at RunHandlerInternal (arunjatin.crm8.dynamics.com/.../ClientApiWrapper.aspx), <anonymous>:1:1)
    at RunHandlerInternal (arunjatin.crm8.dynamics.com/.../ClientApiWrapper.aspx)
    at RunHandlers (arunjatin.crm8.dynamics.com/.../ClientApiWrapper.aspx)
    at ExecuteHandler (arunjatin.crm8.dynamics.com/.../ClientApiWrapper.aspx)
    at Mscrm.TurboForm.Control.CustomScriptsManager.$C3_1 (arunjatin.crm8.dynamics.com/.../JsProvider.ashx;ids=1223231347-405283869:8907:91)
    at Mscrm.TurboForm.Control.CustomScriptsManager.executeHandler (arunjatin.crm8.dynamics.com/.../JsProvider.ashx;ids=1223231347-405283869:8853:18)
    at Mscrm.TurboForm.Control.CustomScriptsManager.executeHandlerByDescriptor (arunjatin.crm8.dynamics.com/.../JsProvider.ashx;ids=1223231347-405283869:8884:18)
    at arunjatin.crm8.dynamics.com/.../JsProvider.ashx;ids=1223231347-405283869:8892:19
    at arunjatin.crm8.dynamics.com/.../global.ashx
    at Mscrm.TurboForm.Control.Data.DataEntity.$D4_1 (arunjatin.crm8.dynamics.com/.../JsProvider.ashx;ids=1223231347-405283869:17706:13)

Please suggest me to solve this.

*This post is locked for comments

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

    Hi Arun_996,

    Please try to go public your js webresource again. Then add it to your form again.

    Regards,

  • Community Member Profile Picture
    on at

    I have tried, still get the same error message.

  • Suggested answer
    Community Member Profile Picture
    on at

    Try changing the form rendering to legacy mode by going to Settings--> Administration--> System Settings.

  • Saswat Gorkhali Profile Picture
    on at

    Does your method take parameters? If it does, do you have it as "var param1" instead of just "param1"?

  • Community Member Profile Picture
    on at

    I guess the reason is a "Syntax Error" in the Javascript. Even i ran into this issue, and later found that it was a simple Syntax Error.

  • P NOUSHAD Profile Picture
    1,821 on at

    Hi,

    I am also getting this error.  Let me know what was the syntax error in java script

  • Community Member Profile Picture
    on at

    Hi P NOUSHAD have you solved the error or still you are facing the same. In my case i have added jquery, Json file in form load.

    If you have already added that then can you please share your js file so that we can look into that and give you proper solution.

  • Community Member Profile Picture
    on at

    Please check for Double Quotes in your Script. Generally, when someone copies the code from browser and paste it, the double quotes will be different. If that is the case with you, this check will solve the problem.

  • Community Member Profile Picture
    on at

    John,

    Can you share the screen shot of the form properties where you specify the OnSave handler function?

    Are you getting this error while loading the form, or are you getting this error while saving?

    Thanks,

    Charmis

  • Roxana Profile Picture
    691 on at

    Hi, 

    Take out or delete the comments.

    I have no errors after deleting comments.

    Regards.

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