{% extends 'generic/_base.html' %} {% load helpers %} {% load form_helpers %} {% block title %}CER Import / Sync{% endblock %} {% block content %}
Upload a CER ERL export
{% csrf_token %} {% render_field form.csv_file %} {% render_field form.dry_run %}
How syncing works
  • In {% if cer_admin_url %}CER Admin {% else %}CER Admin{% endif %}, open the ERL list (National E911 or Conventional) and click Export. Upload the CSV unchanged.
  • ERLs are matched by name, so re-importing a newer export updates them in place. National E911 ERLs import as Migrated, Conventional ones as In CER. The Default ERL is skipped.
  • New ERLs are matched to a Site by name prefix (ADMN 0-2 becomes ADMN), then by street address. ERLs with no match are imported without a site.
  • Start with Dry run to preview the changes. Nothing is saved until you untick it.
{% if next_elin %}Next available ELIN: {{ next_elin.number }}{% endif %}
{% if result %}
{% if dry_run %}Dry run - nothing saved{% else %}Saved{% endif %}
CER ERL export: {{ result.rows }} rows
Created{{ result.created|length }}
Updated{{ result.updated|length }}
Unchanged{{ result.unchanged }}
No matching site{{ result.no_site|length }}{% if result.no_site and not dry_run %} — assign sites{% endif %}
ERLs missing from this export{{ result.missing_from_export|length }}
Errors{{ result.errors|length }}
{% if result.errors %}
Errors
{% endif %} {% if result.missing_from_export %}
ERLs of this type not in this export (deleted or migrated in CER?)

{{ result.missing_from_export|join:", " }}

{% endif %} {% if result.no_site %}
No matching site

{{ result.no_site|join:", " }}

{% endif %} {% if result.created %}
Created

{{ result.created|join:", " }}

{% endif %} {% if result.updated %}
Updated

{{ result.updated|join:", " }}

{% endif %}
{% endif %} {% endblock %}