Ndl records: added checks for invalid date ranges with start date later than end date.