[#50] check for name as well as id in pending_file_for_dataset