Upload a file
Some of what you know about your estate lives in a spreadsheet, not in a product Huntbase can connect to: a CMDB export, an asset register, an HR people list, a list of approved applications. Upload a file brings a CSV or TSV file into Inventory as a source of its own. Its rows fold together with your connected sources like any other rows, so a laptop that only your CMDB lists shows up with the gap No endpoint agent, and a person your HR system says has left shows next to the accounts that are still active.
Uploads appear in Inventory when your organisation has them enabled. Without it, there is no Upload a file button on Sources.
Open Investigate › Inventory › Sources and select Upload a file, beside Add a connection. The upload opens as a page of its own with four steps: File, What's in it, Columns and Check.
Prepare the file
| What works | |
|---|---|
| Formats | .csv, .tsv or .txt. XLSX and other spreadsheet files are not read: from Excel, use File › Save as › CSV UTF-8 |
| Size | Up to 50 MB, 250,000 rows and 200 columns |
| Encoding | UTF-8 (with or without a byte order mark), Windows-1252, or UTF-16 with a byte order mark |
| Separator | Comma, semicolon, tab or pipe. A .tsv file is read as tab-separated |
| Quotes | Standard CSV quoting: a value in double quotes can hold the separator or a line break, and "" is a quote inside it |
| Header | The first row names the columns. Exports with a title block above the header can skip up to 20 lines |
A good file has one row per thing, one column per value, and at least one column that identifies the thing for certain: a hardware serial, a MAC address, a work email, an AWS ARN, a group's security identifier. Keep id columns as text. If Excel has shortened a serial to something like 1.23E+11, export that column as text and upload again.
Leave in only the columns you need. Columns you do not map are never stored in Inventory, but they stay in the file Huntbase keeps for this source (see The file Huntbase keeps).
1. File
Drop the file on the page, or select choose a file. The page checks the extension, the size and that the file is not empty before sending it.
If you work in more than one organisation, first pick the Organisation the upload belongs to; the file can't be sent until you do. With one organisation, it is chosen for you. If uploads aren't switched on for the organisation you pick, or you can't add sources to it, the page says so and you can pick another.
Once the file is read, the page shows its name and size, a line such as Read as UTF-8 · comma-separated · first row is the header, and the first 20 rows. Each part of that line opens a picker: Encoding (UTF-8, Windows-1252, UTF-16), Separator (Comma, Semicolon, Tab, Pipe), and Header row (First row is the header, and Lines to skip above it). Change one and the preview is read again. If names look wrong in the preview, try another encoding.
A blank header cell is named Column 3 (by its position), and a repeated header gets a number, such as Owner (2).
| Message | What to do |
|---|---|
| The file is empty. | Check the export |
| This file is larger than 50 MB. Split it, or keep only the columns you need. | Remove columns, or split the rows into several files |
| This file has more than 250,000 rows. Split it into several uploads. | Split the rows by site, team or type |
| This doesn't look like a text file. Upload a CSV or TSV (from Excel: File › Save as › CSV UTF-8). | Save it as CSV first |
| We couldn't tell the columns apart. Pick the separator. | The separator picker opens. Pick the right one and the file is read again |
| This file has more than 200 columns. Keep only the columns you need. | Remove columns |
| One line of this file is too long to read, usually because a quote is never closed. Check the file and try again. | Look for a value with an opening quote and no closing one |
A file with a header and no data rows is refused.
2. What's in it
Under What does each row describe?, pick the record type: Device, Identity, Application, and Group or Cloud resource where your organisation has them. Each card names the first keys the type matches on. The type whose keys best fit your column names is marked Suggested.
One upload holds one record type, and every row of the file is that type. To bring in devices and people, upload two files.
Name this source is how the upload is shown on Sources and on each record it feeds. It starts as the file name; give it a name people will recognise, such as "CMDB laptops". Each upload needs a name of its own in your organisation.
The type is fixed once the first import has run. The step then says "To describe something else, upload the file as a new source."
3. Columns
The table has one line per column of the file: the Column with three sample values, what to Use as, How to read it, and its Status. Huntbase suggests a target for the columns it recognises from common exports, marked Suggested. Check every suggestion before you go on.
Use as offers, in groups:
| Group | What it is for |
|---|---|
| Match on | The keys that fold a row with other rows: strong keys first, then weak ones marked "weak: sends matches to To review" |
| Name and label | The name a record shows, and a short label under it |
| Facts | The type's facts, such as owner email, model, department or job title |
| Dates | When the thing was first and last seen |
| Gone from this source when… | A column that says the thing is gone, such as a status of Retired or Disposed |
| Not used | The default for a column nothing matched. It reads Not stored |
At least one column must be used to match on: "Pick at least one column to match on (for example Hardware serial)." If every key you mapped is weak, such as a host name, the page warns: rows cannot fold on their own, and matches go to To review. For identities, rows with none of the strong keys (such as a work email) are skipped, and the page names those keys.
To use one column for two things (a host name as both the name and a match key), select Also use as…. To use two columns for one target, pick it on both; the first non-empty one wins, and the second says "Used when Serial is empty".
How to read it
This column appears where it matters:
| Target | Options |
|---|---|
| A date | Day/month/year, Month/day/year, Year-month-day, or Automatic (ISO 8601, timestamps). A date with no time means midnight UTC |
| A list | Separated by ;, Separated by ,, Separated by | or One per line |
| Yes or no | Values that mean yes: by default yes, y, true, 1, x |
| A yes or no, or a plain text fact | Map values… turns the file's values into the ones Inventory uses, for example Retired → yes for Gone from this source when…. Any other value says what everything else becomes |
| A match key read as text | Add a provider prefix (see below) |
Whole numbers may use thousands separators, such as 1,204 or 1 000.
Add a provider prefix
Connected sources store some ids together with the product they came from, such as a directory group id from Okta or a bucket name from AWS. An id from your file only folds with theirs if it carries the same provider. On a match key read as text, Add a provider prefix lets you pick it: "Connected sources store this id as <provider>:<id>. Pick the provider so rows from this file fold with theirs." Serials, MAC addresses, emails, security identifiers and full cloud resource ids need no prefix.
Each row's id
Each row's id is what lets Huntbase recognise the same row when you upload a new version, so your decisions and split-outs on it stick. By default it is Built from the match columns. If your file has a column that never changes for the same thing, such as an asset tag or an employee id, pick it instead: "Keeps decisions and split-outs when you upload a new version. Pick a column that never changes for the same thing."
Fixed values
Add a fixed value puts the same value on every row, for example Kind = laptop.
4. Check
Select Check the rows. Huntbase reads the first 1,000 rows with your mapping (or all of them, for a smaller file) and shows what would happen:
- A summary, for example "Checked the first 1,000 rows: 994 ready, 6 will be skipped.", with the problems counted by kind.
- Problems: the line, column, value and problem for each, such as "‘31/13/2026’ is not a date in day/month/year." or "No key to match on: fill at least one of Hardware serial, MAC address, Hostname." Download these problems saves them as a CSV.
- What you'll get: the first 20 records the file would make, each marked New record, Joins with a link to the existing record it would fold into, or To review. This is a preview; the decisions you have made on To review still apply when the import runs.
A problem in one value drops only that value. A row is skipped only when it has no key to match on, or the record type never lists it (for example a built-in system account). Duplicate ids are reported, and the later line is used.
Import
Select Import N rows. The import runs in the background: "You can leave this page; it carries on." When it finishes, the page and a message say how many rows are in Inventory and how many were skipped, with Go to Sources, Open in Inventory (the list, filtered to this upload's records) and Download skipped rows.
An import is all or nothing. If it fails, nothing changes: "The import stopped and nothing changed: …", with Try again. If more than half the rows of the file cannot be read, the import is refused: "More than half the rows couldn't be read. Check the columns and try again."
Upload a new version
Each upload is a complete list. To refresh it, open ⋯ on its row on Sources, or in the upload's own header, and select Upload a new version…. "Each upload replaces the last one. Rows missing from the new file are marked gone. A record nothing else reports turns Stale, then Retired after 30 days."
- Columns are matched to the mapping by their header text, ignoring case and spaces, so the order can change. If every mapped column is there, the page goes straight to Check.
- If not, it opens Columns with the missing ones marked: "This file is missing 2 columns the mapping uses: Serial number, Owner. Map them again or pick another file."
- Until the new version is imported, Inventory keeps the rows from the current file, and Sources reads New version not imported.
If a new file would mark more than half of the source's rows gone (and more than 100 rows), nothing is written until you confirm: "This file would remove 9,804 of 12,402 rows from CMDB laptops. Import anyway?" Select Import and remove to go on, or Cancel. A file cut short by mistake is the usual cause.
Change the columns
Change columns… opens Columns with the current mapping and file. When you save, the page checks the rows again and imports the current file with the new mapping. The record type cannot change.
If the row id changes (another id column, or other match columns), the page warns: "Changing the row id makes every row new: decisions and split-outs on these rows won't carry over."
Delete an upload
Select Delete… in the ⋯ menu, then Delete upload. "Its rows leave Inventory now. Records only this upload reported are retired (kept, hidden by default). Records that other sources also report keep those sources' values. Decisions you made on these rows are kept in case you upload the file again. The file is deleted."
How uploaded rows fit with your other sources
- Folding. Uploaded rows fold on the same strong keys as rows from connected sources, and weak matches go to To review. Split out and archive work as for any source.
- Links. A device file with an owner email column links each device to that person's identity record.
- Gaps. An uploaded row is not a lake row, so a record from a file is not Seen in logs only. A device only your file lists gets No endpoint agent and No EDR: the file says it exists, and nothing protects it.
- Whose value wins. By default an upload ranks after your connected applications and before lakes (on identities, also before Endpoint Control). Move it up or down in Whose value wins when sources disagree, for example above everything for owner email if your CMDB is the authority on owners.
- On a record. The upload appears in Sources folded into this record by its name, with an Upload chip. Last seen comes from the mapped date column, or else the time of the upload.
How uploaded records age
A file does not go out of date on its own: by default an uploaded row is fresh for as long as it is in the latest file. A row missing from a new version is gone straight away, and a record that nothing else reports turns Stale, then Retired after 30 days. If a later file lists it again, it comes back as the same record.
You can change this on Sources, under the Upload sources ageing settings: Gone after (1 import by default), Stale, then retired after (30 days), and Stale by age, off by default. Turn Stale by age on to make the records of a file nobody replaces turn Stale after a number of days (180 by default). See When records age.
A failed import freezes the upload's rows, like a failed sync: they do not age until an import succeeds.
Who can upload
Uploading, uploading a new version, changing columns and deleting need the same access as editing a connection. Anyone who can see Sources can see an upload's row.
On sample data, Upload a file is not offered.
The file Huntbase keeps
- The current file is kept while the upload exists, so that Change columns… can read it again.
- The previous file is deleted when a new version is imported.
- A file that is never imported is deleted after 24 hours.
- Deleting the upload deletes its file.
Only the columns you map reach Inventory.
Limits
- One record type per upload, and every row of the file is imported: there is no row filter.
- CSV, TSV and TXT only. XLSX and ZIP files are not read.
- 50 MB, 250,000 rows and 200 columns per file. A single value can be up to 64 KB, and a fact up to 255 characters (longer values are cut, with a warning).
- One import at a time per upload, and at most three imports running at once in your organisation. An organisation can upload up to 50 files in 24 hours.
- Group owners and members cannot be linked from a file.
- Mapping is by hand. Huntbase suggests targets from column names and sample values; it does not map columns for you.