Create and configure a Flat File data source
Use a Flat File data source to bring data from a file such as a CSV or TXT into Data Manager.
This task requires Data Manager admin permissions.
You’ll first add a data source, then configure it before running the fetch using the Adapters client.
Add a Flat File data source
To add a data source from a flat file (CSV or TXT):
From the app switcher, select Assets.
Select Data Manager in the sidebar.
Select Object classes.
Select the Show data sources button beside the desired object class
Select + Add.
Under General, select Flat Files.
Click Next.
Complete all required (
*) fields before clicking Configure your data source.
Configure a Flat File data source
In the Flat File Configuration screen, configure details about the data source:
Data Manager fields
You need to specify the following information from Data Manager:
Data source name – the name of the data source used to run, transform, map, cleanse, and import the data.
Enabled – leave this toggle enabled. Disabled jobs cannot be run.
Visible – enable this if the data source is to be visible in the Object classes view.
Short display name – a unique name as a data source label.
Data source type – what type of data the tool is providing. For example, Assets, CMDB, user location. The data source type must be available for selection and can’t be created inline.
File path – full path (including file name and extension) where the flat file is located. For example:
macOS:
/data-manager-files/CMDBComputers.csvWindows:
C:\data-manager-files\CMDBComputers.csv
Wildcard – enable if multiple flat files with the same column structure should be combined (for example,
data-file-*.csvconsumesdata-file-1.csv,data-file-2.csv, and so on).When using a wildcard, the File path excludes filename and extension (it is just the directory path).
Skip line – enter an integer if the header row is not on the first line. Default is
0.Delimiter – the character separating values in the file. Default is comma
,.Qualifier – a unicode character that wraps a string value so it is treated as a single value (for example,
"Microsoft Windows, XP, SP2"). The most common qualifier is the double quote".End with delimiter – enable only if each line in your flat file ends with a delimiter character.
Column Mappings
The Column Mappings section defines how each column in the file is interpreted:
Source column name – the column name in the file.
Source column type – data type for this column (string, date, integer, decimal, etc.).
Date format – appears when the source column type is a date. Select the date format that matches the data; leave empty for non‑date columns.
Destination column name – the column name to use inside Data Manager.
Any secure values (for example, passwords, secrets) entered while creating a job are stored encrypted and displayed as ********************. You can delete and re‑enter them when editing a data source.
You cannot map CSV/TXT data to a NULL column for a Flat File. The data type for such a column is set to string by default. If you need another type, use a Transform function (for example, Set Column type) to convert the data.
Generate column mappings automatically
Use the Auto-generate button to automatically create column mappings:
Copy the header row from your file (including delimiters).
Paste it into the Auto‑generate field.
Select + Auto-generate.
Create column mappings manually
To define mappings manually:
In Column Mappings, select + Add mapping for each column.
Fill out Source column name, Source column type, Date format (if required), and Destination column name.
To clear all mappings
If you need to adjust the mappings, or you want to start again. This is possible with the Clear all mappings button.
From the app switcher, select Assets.
Select Data Manager in the sidebar.
Select Object classes.
Select the Show data sources button beside the desired object class.
Select the ellipses (…) beside the data source to edit.
Select Edit data source.
Scroll to the bottom and select Clear all mappings.
You can now re-create your mapping automatically or manually.
Select Save.
Was this helpful?