{% extends "deliver_grant_funding/grant_base.html" %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from "govuk_frontend_jinja/components/error-summary/macro.html" import govukErrorSummary %} {% from 'govuk_frontend_jinja/components/details/macro.html' import govukDetails %} {% set type_constants = collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% set page_title = "Replace " + data_source.name + " data set " %} {% block beforeContent %} {% set back_link = url_for("deliver_grant_funding.list_collection_data_sets", grant_id=grant.id, collection_type=collection.type, collection_id=collection.id) %} {{ govukBackLink({ "text": "Back", "href": back_link }) }} {% endblock beforeContent %} {% block errorSummary %}
Use the latest data set template (CSV) for the latest uploaded data and grant recipients.
Upload a file to replace the existing data set.
{% set change_columns_html %}If replacing the file will remove an existing column in the data set, first make sure the column is not being referenced in a form. For example, in guidance, questions, conditions and validations.
To change existing column names, data types or formatting, you need to delete the data set instead and upload the file as a new data set.
{% endset %} {{ govukDetails({ "summaryText": "If you are removing or changing columns", "text": change_columns_html, }) }}