:status: new

======
Import
======

Use this method to import multiple Endpoints at once from a CSV file into the local NACVIEW database.

1.	Open *Objects* and go to the *Endpoints*.
2.	Select the ``Import`` button. The *Import Endpoints*  wizard opens.

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-1.png
    :width: 50 %

3.	Select the ``Download example file`` button.

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-2.png
    :width: 50 %

4.	Fill in the downloaded file with your own data.

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-3.png
    :width: 50 %

.. note::

   The CSV file must use commas (``,``) as column separators. Fields that
   contain multiple values, such as *object groups* or *administration
   groups*, must be enclosed in double quotes (e.g. ``"group_1,group_2"``).

5.	Select the ``Create import`` button. 

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-4.png
    :width: 50 %

6.	Use the ``Select files…`` button to upload the CSV file to be validated, then select the ``Validate`` button.

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-5.png
    :width: 50 %

7.	The system checks the uploaded file. If the file contains fatal errors, the file cannot be imported and the validation problems are listed (severity, code, field, value, and row index). Fix the reported rows in the CSV file, then select ``Reset`` to start again. 

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-6.png
    :width: 50 %  

.. warning:: 

   If the CSV file references an object that does not exist in NACVIEW (such
   as an *object group* or *administration group*), the validation
   returns a **WARNING** with the code **Reference not found**. This is not a
   fatal error and the import can continue. For each reported reference,
   choose a **Decision**: ``Create via import`` to create the missing
   object, or ``Select existing`` to map it to an existing one. To apply the
   same choice to all references at once, select ``Set to create all via import``.

8.  Select the ``Save decision`` button to confirm all decisions and continue. 

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-7.png
    :width: 15 %  

9.	Once all decisions have been addressed, select the ``Proceed`` button.

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-8.png
    :width: 50 %  

10.	Select the ``Apply`` button to import the validated Endpoints. 

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-9.png
    :width: 50 %  

11.	The *Result* step confirms that all data has been imported. You can safely close the window.

.. thumbnail:: /_images/tutorials/NACVIEW-objects/endpoints/import-endpoint/endpoint-import-add-10.png
    :width: 50 %  