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 :
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

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

#1
11manish Profile Picture

11manish 93

#2
Subra Profile Picture

Subra 90

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 72 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans