> For the complete documentation index, see [llms.txt](https://docs.rhinofcp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rhinofcp.com/datasets/importing-viewing-a-datasets-configuration-and-exporting-datasets.md).

# Importing, Viewing a Dataset's Configuration, and Exporting Datasets

## Importing Datasets

Rhino FCP allows you to easily and securely import datasets that you can use in your project. This article explains how you can import datasets from the following:

* *Tabular Data files* that are in the Rhino Client File System (such as a CSV or Parquet file) or a supported database.
* *File Data* that is in the the Rhino Client File System such as a client mount directory (or subdirectory) rhino\_data directory (or subdirectory). These files are typically non-tabular files, such as code, images, or generic data in files or a folder.
* *DICOM Data* stored on a DICOM Server or DICOM files that are in the Rhino Client File System.

{% hint style="info" %}
If you'd like to import datasets using Rhino SDK, see [Creating a New Dataset or Dataset Version.](/rhino-sdk/importing-a-new-dataset-or-dataset-version-using-rhino-sdk-and-sql.md)
{% endhint %}

### Prerequisites

Before you import your dataset, you’ll need to do the following:

* If you are planning to import your dataset directly from a database, make sure that the database is supported (see [Import Tabular Data from an SQL Server](#h_01K8NZH645W3S593NNTK7V1DX9) for more details.) If not, you can export the file from your database and import it as a flat file. You’ll also need database access credentials like the database username and password for your account, as well as your database name, port, and URL.
* If you are planning to import from one or more files (tabular, DICOM, or other files), you’ll want to upload them to the Rhino Client File System.
* If you are planning to import from a DICOM Server, you’ll need the host, port, and prefix, as well as your username and password.

You will also need to determine whether you have sensitive data in your dataset. By default, sensitive data is selected; to learn more about how sensitive data is handled in Rhino FCP see [Sensitive Datasets.](/datasets/sensitive-datasets.md)

### Open the Dataset Page

To open the dataset page, do the following.

{% stepper %}
{% step %}

#### Select Datasets

Select **Datasets** from the left-side menu.

![](/files/fe786adc8880361af70ee15479eaad8bc1d3ba7a)
{% endstep %}

{% step %}

#### Open the Datasets page

The **Datasets** page appears. The **Overview** link should already be selected.

![](/files/8b9c5f96bbb4bad7874926e996e081231543aa5b)
{% endstep %}
{% endstepper %}

The name of each dataset, along with the version, data schema, date created, number of rows (or failed import status), and creator appear for each version of the dataset. A three-dot menu appears to the right side of each version of each dataset entry.

|                |                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Item           | Description                                                                                                                                                                                        | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Name           | Name of the Dataset. Dataset versions are auto-numbered sequentially in the order of creation. If you see gaps in version numbers, numbers that do not appear were deleted by a user.              | <p>- Dataset versions are auto-numbered sequentially in the order of creation. If you see gaps in version numbers, numbers that do not appear were deleted by a user.<br>- A pink background and an icon (eye with a lock) indicates that the dataset contains sensitive data. A blue background indicates that the dataset does not contain sensitive data.<br>- The publish icon appears if the dataset has been published. For more information, see <a href="/spaces/ydySyCBmy6F7NnGn4bPa/pages/f8fb2ceaae44d4cd684ccb1a03621e56047e9408">Publishing Datasets.</a></p> |
| Version        | Version of the dataset, starting with 0. Also indicates whether the dataset has been marked as having sensitive data. An exclamation mark appears if an error occurred with importing the dataset. | Troubleshooting information can appear here.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Data Schema    | Indicates the name of the data schema. If you’ve auto-generated, the name of the schema includes the version number.                                                                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Date Created   | Indicates the date the dataset was generated in Rhino FCP..                                                                                                                                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Number of Rows | Indicates the number of rows in the dataset. If there was an issue with import, a message appears instead.                                                                                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Creator        | Indicates the name of the creator.                                                                                                                                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Three-Dot Menu | Provides additional actions that can be performed on the dataset record.                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

### Open the Import New Dataset Page

To open the Import New Dataset page, do the following.

{% stepper %}
{% step %}

#### Open the Import New Dataset screen

In **Datasets** page, select **Import New Dataset** to open the Import New Dataset screen.

![](/files/621032040b7804727d89136c35b9822f6e9a5d38)
{% endstep %}

{% step %}

#### Enter dataset details

Enter your name and a description of your dataset.
{% endstep %}

{% step %}

#### Select a workgroup

Select your workgroup.
{% endstep %}

{% step %}

#### Choose schema generation

Indicate whether you want to auto-generate the schema from the data or select one from the list (if there is one available).
{% endstep %}

{% step %}

#### Choose the dataset location

Indicate the location of the dataset that you want to import.
{% endstep %}

{% step %}

#### Use the table below for the next step

|                                                                                                                                                                |                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| To do this ...                                                                                                                                                 | Go to the following subsection ....                   |
| Select tabular data from a SQL Server, like data from a SQL table. To use this option, you'll need the database type, name, URL, port, and access credentials. | Import Tabular Data from an SQL Server                |
| Import data from the Rhino Client File System. To use this option, you'll need to know the path to the file.                                                   | Import Tabular Data from the Rhino Client File System |
| Import non-tabular file data such as images or other types of data. To use this option, you'll need to know the path to the file.                              | Import File Data (Non-Tabular)                        |
| Import DICOM Data. To use this option, you'll need to know the credentials to the DICOM system.                                                                | Import DICOM Data                                     |
| {% endstep %}                                                                                                                                                  |                                                       |
| {% endstepper %}                                                                                                                                               |                                                       |

### Import Tabular Data from an SQL Server

You can import tabular data from a SQL Server. Supported databases are: IRIS, MariaDB, MSSQL (Microsoft SQL), MySQL, Oracle, PostgreSQL, and SQLite.

{% stepper %}
{% step %}

#### Open the Import New Dataset page

Open the Import New Dataset page.
{% endstep %}

{% step %}

#### Enter dataset details

Enter your name and a description of your dataset.
{% endstep %}

{% step %}

#### Select a workgroup

Select your workgroup.
{% endstep %}

{% step %}

#### Choose schema generation

Indicate whether you want to auto-generate the schema from the data or select one from the list (if there is one available).
{% endstep %}

{% step %}

#### Choose the location type

In the Import New Dataset section, in the Location section, slide the **Tabular Data** to the right, then select **SQL Server**.

![](/files/61f447da587a6fc50800fd9b7f44c3a620423088)
{% endstep %}

{% step %}

#### Enter database details

Enter the following details so that Rhino FCP can connect to your database.

* Database Type - Select the type from the drop down list.
* Database Name - Enter the database name.
* Database Port - Enter the port.
* Database URL - Enter the database URL.
* Username - Username to gain access to your database.
* Password - Password to gain access to your database.
* Timeout Seconds - The number of seconds for the timeout. The default number is typically adequate, but you can adjust this as needed.
  {% endstep %}

{% step %}

#### Enter a SQL query

Enter a SQL query to pull data from the database. You will want to create a simple query that will enable you to test your credentials, such as `SELECT * FROM [enter_table_name_here] LIMIT 10;` Note that other types of queries, such as determining the name of the database that you are connecting are not supported.
{% endstep %}

{% step %}

#### Import the dataset

Select the **Import New Dataset** button. The Import New Dataset page closes, and the dataset appears in the Datasets page.
{% endstep %}

{% step %}

#### Use the three-dot menu

If you click on the three-dot menu, there are several options that are available.
{% endstep %}
{% endstepper %}

### Import Tabular Data from the Rhino Client File System

To import tabular data from a CSV or Parquet file, complete the following steps.

{% stepper %}
{% step %}

#### Choose the file location type

In the Import New Dataset section, in the Location section, slide the **Tabular Data** to the right, then select **File**.

![](/files/3f96df08f127270e2023974b0e976c4c09112ecf)
{% endstep %}

{% step %}

#### Enter the file path

Enter the path to your file. The path should be in the Rhino Client File system. For more information, see: [Mounting Storage to Your Rhino Client,](/getting-started/quick-start-guide/mounting-storage-to-your-rhino-client.md) [Importing to and Exporting Datasets from Your Network Storage](/getting-started/quick-start-guide/importing-and-exporting-datasets-to-and-from-your-network-storage.md), and [Example 2: Defining a Dataset with File Data.](/datasets/example-2-defining-a-dataset-with-file-data.md)
{% endstep %}

{% step %}

#### Import the dataset

Select the **Import New Dataset** button. The Import New Dataset page closes, and the record of the dataset appears in the Datasets page.
{% endstep %}
{% endstepper %}

### Import File Data (Non-Tabular)

To import file data from non-CSV files, complete the following steps.

{% stepper %}
{% step %}

#### Choose the Rhino Client File System location

In the Import New Dataset section, in the Location section, do the following:

* Slide the **Tabular Data** to the right and select **Rhino Client File System**. The File Data and DICOM Data sliders become active.
* Slide the **Tabular Data** slide to the left.
  {% endstep %}

{% step %}

#### Open File Data

Next, slide the **File Data** slider to the right. The File Data section opens.

![](/files/8ff5898f9a3a475b97ee995b3b4d1412c0c91465)
{% endstep %}

{% step %}

#### Enter the file path

Enter the path to your file. The path should be in the Rhino Client File system. For more information, see: [Mounting Storage to Your Rhino Client,](/getting-started/quick-start-guide/mounting-storage-to-your-rhino-client.md) [Importing to and Exporting Datasets from Your Network Storage](/getting-started/quick-start-guide/importing-and-exporting-datasets-to-and-from-your-network-storage.md), and [Example 2: Defining a Dataset with File Data.](/datasets/example-2-defining-a-dataset-with-file-data.md)
{% endstep %}

{% step %}

#### Import the dataset

Select the **Import New Dataset** button. The Import New Dataset page closes, and the record of the dataset appears in the Datasets page.
{% endstep %}
{% endstepper %}

### Import DICOM Data

To import DICOM Data, complete the following steps.

{% stepper %}
{% step %}

#### Choose DICOM Data

In the Import New Dataset section, in the Location section, slide the **DICOM Data** slider to the right. You can choose to provide the path to the DICOM Files or connect to the DICOM Server.
{% endstep %}

{% step %}

#### Enter a DICOM file path or choose the server option

By default the Files option appears. If you want to import DICOM files by specifying the file path, enter the path in the DICOM PATH text box. You’ll need to have already downloaded the files to a path that is part of the Rhino Client File system. For more information, see: [Mounting Storage to Your Rhino Client,](/getting-started/quick-start-guide/mounting-storage-to-your-rhino-client.md) [Importing to and Exporting Datasets from Your Network Storage](/getting-started/quick-start-guide/importing-and-exporting-datasets-to-and-from-your-network-storage.md), and [Example 2: Defining a Dataset with File Data.](/datasets/example-2-defining-a-dataset-with-file-data.md) ![](/files/76683a254144e0605ef6c7b33aeb077eb6c506f0)
{% endstep %}

{% step %}

#### Select DICOM Server

If you would prefer to enter the DICOM Data from the DICOM Server, select the DICOM Server button. ![](/files/7da83f2321fab0a27b34f245f238d58ce3946ecf)
{% endstep %}

{% step %}

#### Enter DICOM server details

Enter the Host, DICOM Web Port, DICOM Web Prefix, as well as the Username and Password for access.
{% endstep %}

{% step %}

#### Import the dataset

Select the **Import New Dataset** button. The Import New Dataset page closes, and the record of the dataset appears in the Datasets page.
{% endstep %}
{% endstepper %}

### Troubleshooting Dataset Imports

To troubleshoot data imports, complete the following steps.

{% stepper %}
{% step %}

#### View the error message

Hover the pointer over the exclamation point to view the error message. The error message provides information that can help you troubleshoot.

![](/files/ff805deba15e53ad4cbb94bba371a80cef21bfd7)
{% endstep %}

{% step %}

#### View the dataset configuration

Select the three-dot menu, then select **Show dataset configuration** to view the setup information.

![](/files/af440db558e4f30eece009204bdbad77354fa8e7)
{% endstep %}

{% step %}

#### Check your configuration

* Is your username correct?
* Are your connection details correct?
* Are your file paths correct?
* If you are connecting using a SQL query, make sure that table names and fields are spelled correctly. If needed, try a different query.
  {% endstep %}

{% step %}

#### Test the connection directly

If a SQL query seems to be correct, try connecting to the database directly using the same credentials that you used in Rhino FCP. Also, try running the query against the database to ensure that the credentials and queries are correct.
{% endstep %}

{% step %}

#### Try the import again

If needed, try creating a new version of the import and running it again.
{% endstep %}

{% step %}

#### Contact support

Contact us if you have any other issues.
{% endstep %}
{% endstepper %}

### Importing Datasets at a Collaborating Site

Given the right permissions, it is possible for users to import Datasets at other sites (and not just their own site). This is useful in case collaborators prefer to only prepare the data and not perform the Dataset import operation on the Rhino FCP.

To perform a remote Dataset import, a user’s role must have the “Import and export Datasets” permission for that site. For example, if you are the Workgroup Admin of the site that created the project (hence you are the Project Lead Admin, or PLA), then the collaborating site must enable the “Import and export Datasets” permission for the PLA persona.

To trigger the Dataset import at the collaborating site via the UI, follow the same process for importing a Dataset to your own site via the UI, and in the Select Workgroup dropdown, select the Workgroup of the collaborator. Make sure to input the data file locations on the collaborator’s Rhino Client.

To trigger the Dataset import at the collaborating site via the SDK, follow the same process for importing a Dataset to your own site via the SDK, and in the “workgroup\_uid” field pass in the UID of the collaborator’s workgroup.

## Viewing a Dataset's Configuration

To get an object's configuration, make sure you are on the page containing the original object you would like to view the configuration of. In the box where your original object is, there should be a row for each version. Navigate to the version you would like to view the configuration for and select the three-dot menu button, shown below:

![](/files/197d5efd0bd4b88b203a1e114777929728669948)

The menu button is on the right-hand side of the row, click it to view a new menu. The new menu should have an option to show that object's configuration, click on that to see the object's configuration.

## Exporting Datasets

Exporting a dataset makes it accessible in your `/rhino_data` directory in your Rhino Client. You can then access the dataset via SFTP or client-mounted storage. Then, you can use the data outside of the Rhino platform. You can only export datasets that belong to your workgroup if you have the Manage This Site's Datasets Permission. For more information, see [Persona and Permissions Policies Reference](/projects/persona-and-permissions-policies-reference.md)

### Exporting a Dataset

To export a dataset, do the following.

{% stepper %}
{% step %}

#### In the Dataset page, on the overview page, select the three-dot menu for the dataset that you want to export.

<img src="/files/c6178f567d7714d0541f93de4b9a37d7c7daff2a" alt="" width="50%">
{% endstep %}

{% step %}

#### Select Export Dataset. The Export Dataset window opens.

<div align="left"><img src="/files/575e943a1236f33b27450d4904c31119e036e641" alt="" width="60%"></div>
{% endstep %}

{% step %}

#### Type where you want to export the dataset, then select the Export button.

```auto
/rhino_data/export_folder
```

{% endstep %}
{% endstepper %}

### Structure of your exported dataset

Your exported dataset will be structured similarly to how datasets are structured for code run inputs and outputs. In particular, your dataset will have a directory structure that resembles:

```auto
.
|___ dataset.csv
|___ metadata.json
|___ dicom_data/
|______ ...
|___ file_data/
|______ ...
```

Inside this directory, you will find some (or all) of the following elements:

* **dataset.csv** - a comma-separated value file with the tabular data from your dataset
* **metadata.json** - a json containing information about the dataset (e.g., which workgroup it belonged to, when it was created)
* **dicom\_data/**- a directory containing any DICOM files associated with your dataset
* **file\_data/**- a directory containing any generic files associated with your dataset (e.g., jpegs)

### Metadata Structure

The **metadata.json** file contains the following key-value pairs:

```auto
dataset_uid: str
dataset_name: str
dataset_version: int
data_schema_uid: str
data_schema_name: str
workgroup_uid: str
workgroup_name: str
creation_time: str
num_rows: int
num_fields: int
fields: List[str]
```

See an example below:

```auto
{
  "dataset_uid": "a186342e-7a0d-46cd-819d-b751f361108d",
  "dataset_name": "Clinic Dataset",
  "dataset_version": 0,
  "data_schema_uid": "51ee196b-f978-4ca9-9583-6c0309bc3a4a",
  "data_schema_name": "Diabetes Schema",
  "workgroup_uid": "5a2eee3b-dbf2-492d-93fa-1175ae2ad7a9",
  "workgroup_name": "Clinic",
  "creation_time": "2022-09-28 11:51:57.070000+00:00",
  "num_rows": 275,
  "num_fields": 10,
  "fields": [
    "Pregnancies",
    "Age",
    "Height",
    "Weight",
    "Glucose",
    "BloodPressure",
    "SkinThickness",
    "Insulin",
    "DiabetesPedigreeFunction",
    "Outcome"
  ]
}
```

### Access to your exported dataset

Once exported, the exported dataset can be accessed using the instructions below.

#### SFTP

Log into the client via SFTP and run the following command.

```auto
sftp> get export_folder
```

Need more help? See [Adding Data to your Rhino Federated Computing Platform (FCP) Client using SFTP](/getting-started/quick-start-guide/adding-data-to-your-rhino-federated-computing-platform-fcp-client-using-sftp.md)

#### AWS S3, GCP Cloud Storage, SMB

Find your files (see above) in your cloud or external storage.

Need more help? See [Importing and Exporting Datasets to and from Your Network Storage](/getting-started/quick-start-guide/importing-and-exporting-datasets-to-and-from-your-network-storage.md)
