I am not sure whether or not this could fix you error but you should check your data:
1. Your data contains a record with startdate/enddate have null value.
2. Two other records have...