web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 
I have the same question (0)
  • LanceP1906 Profile Picture
    54 on at
    Script error
    Is your start date set incorrectly? 
  • Angge011101 Profile Picture
    3 on at
    Script error
    Hi, 

    We also encountered this error upon loading the form. Does anyone have a fix for this?
  • Edgar@LCI Profile Picture
    59 on at
    Script error
    Yeah same problem we are having. Will open a ticket with MS.
  • Chris_SKIT Profile Picture
    8 on at
    Script error
    deleted
  • Chris_SKIT Profile Picture
    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
  • Suggested answer
    nerdifand Profile Picture
    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.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 235

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 177

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 156 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans