Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

function is not defined at eval

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.

  • mmcmahon Profile Picture
    mmcmahon 75 on at
    RE: function is not defined at eval

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

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: function is not defined at eval

    Hello,

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans