should flash error message when try to export no records.