error if schema doesn't indicate string, double or dateTime type