---
title: "5. Import Data - Assay Files v3.2.1.0"
canonical: "https://servicedesk.maxgeo.com/space/DS/2111537153/5.+Import+Data+-+Assay+Files+v3.2.1.0"
format: markdown
---
|  |  |  |  |
| --- | --- | --- | --- |
| Application: | DataShed5 | Build Number: | v3.2.1.0 |

---

> Macro (iframe)

## Transcript

```
Welcome to this DataShed5 training video. In this session, we’ll guide you through the complete process of importing assay files—from layout creation to validation and merging—using both the interface and best practices.

Overview
Assays are imported via the Import Data menu. Before importing, you must configure your assay layout. Once the layout is ready, you can load your assay file and resolve any errors that arise during the process.

Assay Import Workflow
When DataShed initiates the import:
Data Validation begins. Assays are loaded into a buffer table and checked against lab methods, elements, units, and libraries.
Sample ID Matching compares incoming IDs with existing sample tables.
Result Calculation converts text fields and populates system results.
Automatic Record Merging combines validated records and ranks them.
Unsuccessful Records appear in the Assay Manager under “Unmerged Assay Results.” Once resolved, click Process Batch to retry merging.

Prepare Your Assay File
Before you begin,
Obtain an assay file or use the provided template.
Identify the lab that supplied the file.

Create an Assay Import Layout
Go to Import Data.
Click Import Layout Configuration (top right).
Select Layout Type of Assay File
Click Add New Layout.
Name it, Demo CSV.
Select the Laboratory.
Select Process Scheme: Default.
Ensure Normalised is checked.
Click Save.

Define Import File Type
Click the Import File Type icon.
Click the + Add button.
Enter
File Type is Demo_CSV_YourInitials
Basic Type is “CSV”
The Description is Demo_CSV_YourInitials
Click off the new record.
Click Save.
Select your layout using the Drop Down list.

Configure Buffer Modifications
Click the Buffer Modifications icon.
Set Destination Table to “tbl Assay”.
Click Save.
Close the window.

Use Assay File Format Editor
Click the Assay File Format Editor icon.
Select your file. The import file will be loaded into the preview panel for field identification and definition.
Map data items by clicking the correct line and column: 
Choose Data Item - Select Assay Result
 Choose Data Source - Read from File
Click on Line 13 Column 2 in the file viewing window
Choose Data Item - Batch_No
Notice the Green Tool Tip appears " Batch_No has been saved successfully"
Choose Data Source - Read From File
Click on Line 1 Column 2 in the file viewing window
Choose Data Item - Dispatch_No

Click on Line 8 Column 2 in the file viewing window
Choose Data Item - Lab_Job_Date
Notice the Green Tool Tip appears " Dispatch_No has been saved successfully "
Choose Data Source - Read From File
Click on Line 5 Column 2 in the file viewing window
Select Date Format – day day month month year year year year
Choose Data Item - Lab_Job_Notes
Notice the Green Tool Tip appears " Lab_Job_Date has been saved successfully"
Choose Data Source - Read From File
Click on Line 7 Column 2 in the file viewing window
Choose Data Item - Lab_Recieved_Date
Choose Data Source - Read From File
Click on Line 4 Column 2 in the file viewing window
Select Date Format – day day month month year year year year. This should have been remembered from the previous date selection.
Choose Data Item - Lab_Element
Choose Data Source - Read From File
Click on Line 10 Column 2 in the file viewing window
Choose Data Item - Lower Limit
Choose Data Source - Read From File
Click on Line 12 Column 2 in the file viewing window
Choose Data Item - Original Method
Choose Data Source - Read From File
Click on Line 9 Column 2 in the file viewing window
Choose Data Item - Sample Count
Choose Data Source - Read From File
Click on Line 3 Column 2 in the file viewing window
Choose Data Item - SampleID
Choose Data Source - Read From File
Click on Line 13 Column 1 in the file viewing window
Choose Data Item - UnitCode
Choose Data Source - Read From File
Click on Line 11 Column 2 in the file viewing window
Choose Data Item – Source File
Choose Data Source – File Name

Choose SampleID again to save the Source File settings


Add Substitutions
Click the Substitution button.
Click Plus to add.
Set is Demo_CSV_YourInitials
Symbol is “Greater than Asterix”
Assay Status is O R
Click off the new record
Click Save and Close.

Validate Layout
Click Validate.
Review the results.
Click Copy to Clipboard and paste into Notepad.
Click Close.

Check Configuration
Click Check Config.
Review green (valid) and red (error) results.
Click Check Config.

Import the Assay File
Go to Import Data.
Select Layout Type: Assay File.
Choose your layout and click Load File.
Select your assay file and click Load.
Review the description and error boxes.
Open Assay Manager.

Merge Assays to Target DataSet
In Assay Manager, expand the Unmerged Assays tab.
Select the correct DataSet from the dropdown.
Find your batch and click Process Batch.

Manual Layout Management
Go to Import Layout Configuration.
Search for your layout Demo_CSV.
Try deleting it: 
If used for import, an error message appears.
If unused, the layout is deleted successfully.

You’ve now completed the full assay import workflow in DataShed5. For further support, refer to the user guide or contact your system administrator.

```