We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Uncaught TypeError: Cannot read property 'promise' of null

Hi Guys,

I am having issues to save an appointment in the ejschedule.


<meta name="viewport" charset="utf-8" content="width=device-width, initial-scale=1.0" />
    <link rel='nofollow' href="content/bootstrap.min.css" rel="stylesheet" />
    <link rel='nofollow' href="content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
    <link rel='nofollow' href="content/default.css" rel="stylesheet" />
    <link rel='nofollow' href="content/default-responsive.css" rel="stylesheet" />
    <link rel='nofollow' href="content/ejthemes/responsive-css/ej.responsive.css" rel="stylesheet" />
    <link rel='nofollow' href="content/ejthemes/responsive-css/ejgrid.responsive.css" rel="stylesheet" />
    <!-- Fix jQuery Reference  -->
    <script>if (typeof module === 'object') { window.module = module; module = undefined; }</script>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../scripts/jquery-1.11.3.min.js" ></script>
    <!--[if gte IE 9]><!-->
    <script src="scripts/jquery-3.1.1.min.js"></script>
    <script src="scripts/jquery.easing.1.3.js"></script>
    <script src="scripts/jsrender.min.js"></script>
    <script src="scripts/ej.web.all.min.js" type="text/javascript"></script>
    <script src="scripts/properties.js" type="text/javascript"></script>
    <script src="scripts/jsondata.min.js"></script>
    <script src="scripts/jsonscheduledata.js" type="text/javascript"></script>
    <script src="scripts/jsonkanbandata.js"></script>
    <!-- Fix jQuery Reference  -->
    <script>if (window.module) module = window.module;</script>

  var scheduleObj = $("#schedule").data("ejSchedule");

 var StartDate = new Date(cur_StartTime);
                    var StartTime = new Date(cur_StartTime);
                    var EndTime = cur_EndTime;

                    var obj = {
                        Id: 108,
                        Subject: "Talk with Nature",
                        StartTime: StartTime,
                        EndTime: EndTime,
                        AllDay: $(e.target).hasClass("e-alldaycells") ? true : false,
                        Recurrence: false,
                        RecurrenceRule: null,
                        StartTimeZone: "UTC +00:00",
                        EndTimeZone: "UTC +00:00",
                        Promise: 1

                    // Appointment object saving to the schedule control


ej.web.all.min.js:10 Uncaught TypeError: Cannot read property 'promise' of nullsaveAppointment @ ej.web.all.min.js:10scheduleDrop @ index.html:257rowDrop @ index.html:146_trigger @ ej.web.all.min.js:10dragStop @ ej.web.all.min.js:10_trigger @ ej.web.all.min.js:10_dragStop @ ej.web.all.min.js:10e @ jquery-3.1.1.min.js:2dispatch @ jquery-3.1.1.min.js:3q.handle @ jquery-3.1.1.min.js:3

4 Replies

JD Jonas de Abreu Resenes February 12, 2017 01:21 PM UTC

I fixed the issue. You can close this thread

KK Karthigeyan Krishnamurthi Syncfusion Team February 13, 2017 06:15 AM UTC

Hi Jonas, 
Thank you for contacting Syncfusion support. 
We are happy to hear that your issue is resolved. 
Kindly let us know if you need further assistance. 

SK Shanth Kumar June 12, 2017 08:02 AM UTC

Hi Jonas de Abreu Resenes,

Could you please let me know how you fixed the issue since I am facing the same issue.

Thanks in advance.

KK Karthigeyan Krishnamurthi Syncfusion Team June 13, 2017 04:29 AM UTC

Hi Shanth, 
Thanks for your update. 
We have checked the mentioned scenario with latest version and no script error occurs while saving appointment using saveAppointment. We have prepared the same as sample which can be viewed from the below link, kindly try the sample and if the issue persists, try to reproduce the error in a sample and revert it back to us. Or else you can share your code example/runnable sample (if possible) to proceed further.  

Live Chat Icon For mobile
Up arrow icon