Upload Data: Push a File to a Dataset

Upload Data: Push a File to a Dataset

Upload Data is a generally available dataset type in Data Cloud that lets any customer bring their own file data directly into NinjaCat — no provider connector required. You create a dataset, upload a sample file, map your columns once, and push updated files whenever your data changes.

📘

Multiple file formats supported

Upload Data accepts CSV, TSV and other delimited text, Excel (.xlsx), JSON, NDJSON / JSON Lines, and Parquet files, plus gzip-compressed (.gz) versions. You can push a different format than the one you set the dataset up with, as long as the columns match your mapping.


Supported File Formats

FormatFile extensionsNotes
CSV / delimited text.csv, .txtComma, tab, pipe or another single-character delimiter.
TSV.tsvTab-delimited.
Excel.xlsxReads one sheet per upload (the first sheet unless you choose another). Legacy .xls files aren't supported — save them as .xlsx first.
JSON.jsonAn array of objects, one object per row. If the rows are nested inside the file, set a Record Path to point to them.
NDJSON / JSON Lines.ndjson, .jsonlOne JSON object per line.
Parquet.parquetColumn names and types are read from the file.
Gzip-compressed.gz (e.g. data.csv.gz)Compressed versions of the formats above. NinjaCat decompresses the file automatically.

Create an Upload Data Dataset

Step 1 — Start a New Upload

  1. Navigate to Data Cloud → Datasets → Add data
  2. Click Upload a file.

Step 2 — Name Your Dataset

  1. Enter a unique, descriptive Dataset Name.
  2. Click Next.

Step 3 — Upload your Setup File

  1. Upload a representative file in any supported format. This file is used to detect your columns and populate the mapping interface.
  2. NinjaCat reads the file on the server and detects its format and columns automatically.
SettingDescription
Header RowThe row number that contains your column headers (e.g., 1 for the first row).
Data Start RowThe row number where your data records begin (e.g., 2 if headers are on row 1).
DelimiterThe character separating fields in your file (e.g., comma ,, tab, pipe |).

Step 4 — Map Your Columns

  1. Review the columns detected from your file
  2. Map each column you want to retain to its NinjaCat dimension or metric. NinjaCat's AI-powered auto-matching will suggest mappings — review and adjust as needed.
  3. Columns you do not map will be excluded from ingestion (see File Layout Behaviour below).

Step 5 — Review and Save

  1. Open the Review tab to check your layout settings and column mappings before saving.
  2. Click Save. The setup CSV is ingested automatically.
📘

About the Review tab

The Review tab appears only when you first create the dataset or when you edit its configuration. It does not appear when you push updated files later.

Your dataset is now ready. You can find it in Data Cloud → Datasets


Push an Updated File

After your dataset exists, you can push new data at any time without reconfiguring the dataset.

  1. Navigate to Data Cloud → Dataset and open the dataset.
  2. Click Upload Data….
  3. Select and upload your updated file.
  4. NinjaCat detects the file's format and shows only the layout options for that format (sheet, header row, data start row, delimiter, record path). If the format matches the one you set up with, these are prefilled from your saved layout. Adjust them only if this file is laid out differently.
  5. Only your mapped columns are staged; any extra columns present in the new file are dropped.
🚧

Every mapped column must be present

Column names can't be renamed between pushes. Every file you push — whatever its format — must include every column you mapped when you set up the dataset, with the same name (the header row for CSV, TSV and Excel; the field/key names for JSON, NDJSON and Parquet). If any mapped column is missing, the upload shows an error listing the missing column(s). Fix the file and push it again.


File Layout Behavior

Understanding how NinjaCat processes each CSV push helps you prepare your files correctly.

BehaviorDetails
Format is chosen per pushEach push is read according to its own format. The format you set the dataset up with doesn't limit later pushes.
Layout is saved and reusedThe layout you configured at setup (header row, data start row, delimiter, sheet, record path) is reused for later pushes of the same format. You can override it on any individual push.
Mapped columns are requiredEvery column you mapped must appear in each pushed file, with the same name. Missing mapped columns cause an error.
Only mapped columns are stagedColumns present in your file that were not mapped during dataset setup are dropped. Only the columns you mapped are written to the dataset.
New columns need mappingIf your source file gains new columns over time, they will not appear in the dataset until you edit the dataset configuration and map them.

Tips & Troubleshooting

I got an error saying columns are missing. Your file doesn't include one or more columns you mapped at setup. Column names can't be changed between pushes — make sure every mapped column appears in the file with the same name, then push again.

My new file has additional columns that aren't showing up. Extra columns are dropped unless they are mapped. Edit the dataset configuration to add and map the new columns, then re-push.

The ingested data looks shifted or garbled. For CSV, TSV or Excel, check that the header row, data start row and delimiter (or sheet) used for the push match the file. You can override them on the push or edit the dataset configuration to change the saved defaults.

I got an error about the sheet. The sheet you selected doesn't exist in the workbook. The error lists the sheets that are available — pick one of those and push again.

My JSON file shows no columns or no rows. Make sure the file is an array of objects. If the rows are nested inside another object, set the Record Path to point to them. For one object per line, save the file as .ndjson or .jsonl.

My Excel file was rejected. Check that it's an .xlsx file (not .xls), isn't password-protected, and opens correctly in Excel.

Some of my values are now blank instead of failing the upload. Empty values are stored as blank (null) for every format, including CSV. Previously an empty value in a mapped column could cause the upload to fail.

My file was rejected at upload. Check that the file does not exceed the 50 MiB size cap (and, for .gz files, the decompressed size limit), and that it is one of the supported formats.


Related Articles


Did this page help you?