diff --git a/edx/analytics/tasks/export/database_exports.py b/edx/analytics/tasks/export/database_exports.py index 3846ae591..2b9ec1305 100644 --- a/edx/analytics/tasks/export/database_exports.py +++ b/edx/analytics/tasks/export/database_exports.py @@ -76,7 +76,16 @@ def mapper(self, line): key: course_id value: tab separated row data """ - values = csv_util.parse_line(line, dialect='mysqldump') + try: + values = csv_util.parse_line(line, dialect='mysqldump') + except csv.Error as e: + if 'field larger than field limit' in e.message: + log.error('Field larger than field limit in line: %s', line) + return + else: + log.error('Error parsing line: %s', line) + raise + record = StudentModuleRecord(*values) course_id = record.course_id