Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum
Unanswered

Script error

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 
Categories:
  • Suggested answer
    nerdifand Profile Picture
    nerdifand 24 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 30 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? 

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,137 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans