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 365 | Integration, Dataverse...
Unanswered

function is not defined at eval

(0) ShareShare
ReportReport
Posted on by 75

We are in the process of changing all our JavaScript prior to moving to Unified Interface, yesterday I started to experience a strange issue.

After copying upgraded JavaScript to original file, each on load function is giving error - 

One of the scripts for this record has caused an error. For more details, download the log file.
ReferenceError: onLoad is not defined at eval (eval at RunHandlerInternal (xxxxxx.crm11.dynamics.com/.../ClientApiWrapper.aspx, <anonymous>:1:1)

where onLoad is one of the functions called (it happens for them all) it appears that the event handler details aren't pointing to the file for some reason, syntax definitley correct.  when I created a brand new file and pasted same code in it works when i point at that file, i then pointed back to the original file and it seemed to still work but on further testing even though the original file is in the on load event handler, it's actually pointing at my new test file still. I've tried everything I can think of to resolve, reverted to legacy forms and back, exported solution and re imported. Cleared local cache, used new browser etc but it seems there is some strange caching going on on the server.

Has anyone seen this behavior? DoI need to contact Microsoft to get things going again? It's happening on both dev and staging servers.

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You found the workaround - just use it. I migrated few customers to UCI and I have never experienced issue mentioned.

  • mmcmahon Profile Picture
    75 on at

    I will get in touch with Microsoft to see if they can reboot, workaround isn't reliable enough. Hopefully support can resolve. Thanks.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans
Liquid error: parsing "/globalsearch/?q=new+holland+methodist+church%2C+lincolnshire+%7C+lincolnshire+%7C++filetype%3Axls" - Nested quantifier +.