{% extends "withnav_template.html" %} {% from "components/banner.html" import banner_wrapper %} {% from "components/radios.html" import radio_select %} {% from "components/table.html" import list_table, field, text_field, index_field, hidden_field_heading %} {% from "components/file-upload.html" import file_upload %} {% from "components/back-link/macro.njk" import govukBackLink %} {% from "components/message-count-label.html" import message_count_label %} {% block service_page_title %} Error {% endblock %} {% block maincolumn_content %} {{ govukBackLink({ "href": back_link }) }}
Notify can process up to {{ "{:,}".format(recipients.max_rows) }} rows at once. Your file has {{ "{:,}".format(recipients|length) }} rows.
{% elif not count_of_recipients %}It needs at least one row of data, and {{ recipients.missing_column_headers | sort() | formatted_list( prefix='a column called', prefix_plural='columns called' ) }}.
{% else %}It needs at least one row of data.
{% endif %} {% elif not recipients.has_recipient_columns %}Your file needs at least 3 address columns, for example ‘address line 1’, ‘address line 2’ and ‘address line 3’.
{% else %}Your file needs a column called ‘{{ first_recipient_column }}’.
{% endif %}Right now it has {{ recipients.column_headers | formatted_list( prefix='one column, called ', prefix_plural='columns called ' ) }}.
{% elif recipients.duplicate_recipient_column_headers %}We found more than one column called {{ ( recipients.duplicate_recipient_column_headers ) | formatted_list( conjunction='or', prefix='', prefix_plural='' ) }}.
Delete or rename one of these columns and try again.
{% elif recipients.missing_column_headers %}Your file is missing {{ recipients.missing_column_headers | formatted_list( conjunction='and', prefix='a column called ', prefix_plural='columns called ' ) }}.
{% elif sent_previously %} {% include "partials/check/sent-previously.html" %} {% elif not recipients.allowed_to_send_to %} {% with count_of_recipients=count_of_recipients, template_type_label=recipients.recipient_column_headers[0] %} {% include "partials/check/not-allowed-to-send-to.html" %} {% endwith %} {% elif trying_to_send_letters_in_trial_mode %}Only showing the first {{ count_of_displayed_recipients }} rows
{% elif count_of_displayed_recipients < count_of_recipients %}{% if row_errors and not recipients.missing_column_headers %} Only showing the first {{ count_of_displayed_recipients }} rows with errors {% else %} Only showing the first {{ count_of_displayed_recipients }} rows {% endif %}
{% elif row_errors and not recipients.missing_column_headers %}Only showing rows with errors
{% endif %}