Stop to create metadata record if all the data records in the uploaded file are duplicated, and show error to users.