Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

[CRM9, Script] Cannot read property 'bookOrRescheduleWithCallback' of undefined

(0) ShareShare
ReportReport
Posted on by 20

After upgrading our Sandbox environment we encored problem with saving new record of “Appointment” entity.

Problem occurs on Quick Form with is invoked by CRM from Account entity form (standard Add New functionality).

No additional JavaScript functionality is added on “Appointment” entity, in “Account” form there is simple JavaScript that makes some fields disabled.

Error that GUI shows:

 1185.err1.png

Debugging of CRM JavaScript’s shown me following problems:

 06355.err2.png

With shows following callstack:

"TypeError: Cannot read property 'bookOrRescheduleWithCallback' of undefined
    at Mscrm.InlineEditDataService.$1f_0 (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:5230:54780)
    at Mscrm.InlineEditDataService.saveData (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:5230:51642)
    at Function.Mscrm.InlineEditDataService.save (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:5230:12486)
    at Mscrm.FormDataManager.save (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:6:7117)
    at Mscrm.FormDataManagerWrapper.save (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:6:44450)
    at Mscrm.GlobalQuickCreate.RefreshFormCallbacks.onRefreshFormSaveCallback (xxx.crm4.dynamics.com/.../JsProvider.ashx;ver=1005756403:1998:34051)
    at Function.Mscrm.Utilities.executeFunction (xxx.crm4.dynamics.com/.../global.ashx)
    at HTMLButtonElement.Mscrm.GlobalQuickCreate.GlobalQuickCreateBehavior.$Y (xxx.crm4.dynamics.com/.../globalquickcreatebehavior.js)
    at HTMLButtonElement.u (r1.res.office365.com/.../shellcoreming2am_20bef2ed.js:1794:22)"

After digging into following exception I found a place where this error occurs:

1050.err3.png

5661.err4.png

 

*This post is locked for comments

  • Suggested answer
    jenneefer Profile Picture
    jenneefer 85 on at
    RE: [CRM9, Script] Cannot read property 'bookOrRescheduleWithCallback' of undefined

    Hi,

    This is a known issue when using legacy form rendering and has been fixed. The fix will be shipped in a future release. As a workaround if possible, you can turn off legacy form rendering (Settings -> Administration -> System Settings) and this issue should not occur. 

    snip_5F00_20181130114553.png

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans