check error when parsing csv row