diff --git a/ckanext/datastore/db.py b/ckanext/datastore/db.py index af10b60cb6d..b6e38ef2578 100644 --- a/ckanext/datastore/db.py +++ b/ckanext/datastore/db.py @@ -644,7 +644,7 @@ def upsert_data(context, data_dict): if non_existing_filed_names: raise ValidationError({ 'fields': [u'fields "{0}" do not exist'.format( - ', '.join(missing_fields))] + ', '.join(non_existing_filed_names))] }) unique_values = [record[key] for key in unique_keys]