Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Script error

(3) ShareShare
ReportReport
Posted on by 16
Hi,
 
in the events sectrion on dynamics we have had a script error pop up last week. nothing has been changed yet it now brings this up
 
 
Cannot read properties of undefined (reading 'getFormContext')Session Id: xxxEvent Name: onchangeFunction Name: EventMgmt.CrmWebResource.Handlers.eventAndSessionStartDateCheck_checkEventStartDateWeb Resource Name: msevtmgt_EventMgmt.CrmWebResourceSolution Name: MicrosoftDynamics_EventManagementPublisher Name: microsoftdynamics
 
any help here would be great 
  • Suggested answer
    nerdifand Profile Picture
    nerdifand on at
    Script error
    we dont use the ootb form, which was updated correctly by the marketing solution alongside the webresource. the function probably was changed to use the formcontext and this change is not properly relfected on selfmade-entity-forms.
    passing the execution context at this onload-function will get rid of the script error.
  • Chris_SKIT Profile Picture
    Chris_SKIT 8 on at
    Script error
    Did you find the source of this issue? We also get it since a few weeks. When I debug that specific Microsoft web ressource I see that the executioncontext is indeed undefined so not passed for some rreason and that is very strange:

    EDIT: we found the issue seems in our event form in our solution the Context was indeed not passed

    no idea why probably noone from us removed it maybe the script changed and did not require it in earlier versions this is all a bit strange but at least we know how to solve it
  • Chris_SKIT Profile Picture
    Chris_SKIT 8 on at
    Script error
    deleted
  • Edgar@LCI Profile Picture
    Edgar@LCI 33 on at
    Script error
    Yeah same problem we are having. Will open a ticket with MS.
  • Angge011101 Profile Picture
    Angge011101 3 on at
    Script error
    Hi, 

    We also encountered this error upon loading the form. Does anyone have a fix for this?
  • LanceP1906 Profile Picture
    LanceP1906 54 on at
    Script error
    Is your start date set incorrectly? 

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans