import_data_table_csv
Bulk-load a DataTable from a CSV string to author or restore many rows at once. It replaces existing rows, so check problem_count and problems for per-cell failures.
Instructions
Bulk-load a DataTable from a CSV string -- the fast path for authoring or restoring many rows at once. DESTRUCTIVE: it REPLACES the table's rows, so any row not in the CSV is gone; export first (export_data_table_as_csv) if you meant to merge. Always read the problems array and problem_count: the native importer reports per-cell failures there while still succeeding overall, and enum values whose display name contains spaces are cut at the first space and silently land on the index-0 enumerator. For a handful of rows prefer set_data_table_rows_from_json, which reports per-row results.
Returns: { table_path, row_struct, rows_imported, row_count, problem_count, saved, problems, row_names }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_string | Yes | CSV content (header row + one row per data row) | |
| table_path | Yes | Full asset path of the DataTable |