Skip to content
  • There are no suggestions because the search field is empty.

NextTables transport configuration reference

The transport configuration format, schema version 1.0: every object kind and property, references, refusals with their messages, two tested examples, the JSON Schema and a workflow for AI assistants.

You will learn

  • How a transport configuration is structured, object by object and property by property.
  • How the objects of a configuration refer to each other, and which values the import checks.
  • Which configurations the import refuses, with the messages you see.
  • How to have an AI assistant write a configuration, and how to check it before anything is created.

This article is for administrators and consultants who read, edit or write configurations by hand or with an AI assistant. It documents schema version 1.0, which Export configuration... writes and Import configuration... reads. What a transport does is explained in Introduction to transport in NextTables.

Prerequisites

  • To check a configuration: the Import configuration permission on an empty test folder, and Manage masterdata or Manage row level security if the configuration holds such objects. See How to manage roles in NextTables.
  • A database that the test folder may use, so the tables can be created.
  • Helpful: an export of a similar folder from your own system, as a model for names and values.

How a configuration is structured

A configuration is one JSON object. Download configuration saves it as a file named after the folder and ending in -configuration.json; Copy configuration puts the same text on the clipboard. Rows are never part of it.

PropertyTypeRequiredMeaning
kindtextyesAlways nexthub.transport.package
schemaVersiontextyesAlways 1.0. Another version is refused
metadataobjectyesWhere the configuration comes from, and its databases
objectsobjectyesFive lists: folders, tables, views, masterDataObjects and rowLevelSecurityObjects. Each list is required and may be empty

Every object carries its own id, and objects refer to each other by id, never by name. A configuration is self-contained: every id it refers to must be defined in it. The order of the properties doesn't matter, and properties the import doesn't know are ignored.

metadata

PropertyTypeRequiredMeaning
appVersiontextyesNextTables version of the source system. If it differs from the version of the target, the import shows a warning and continues
exportedAttextyesTime of the export, for example 2026-12-01T09:00:00.000Z
exportedByobjectyesuserId and email of the person who exported. Not used by the import
tenantIdtextyesIdentifies the source system. NextTables remembers mappings per source system, so keep it the same in every version
dataSourceslistyesThe databases of the tables, see below
rootslistnoWhat was exported: id (UUID) and type (folder, folder_contents or view). A later import uses it to find objects it may offer for deletion

Each entry of dataSources describes a database of the source system. In the import, the card Databases maps each entry to a database of the target, and the tables are created there.

PropertyTypeRequiredMeaning
idwhole numberyesReferred to by dataSourceId of the tables
nametextyesShown in the card Databases
dialecttextwritten by the exporthana (SAP Datasphere), databricks or postgres
dataSourceTypetextwritten by the exportcustomer_db for a database you connected
isReadOnlytrue or falsewritten by the exportWhether the source database is read-only
scopedFolderIdslist of UUIDswritten by the exportFolders of the configuration that are assigned to this database; may be empty

Folders

PropertyTypeRequiredMeaning
idUUIDyesUnique in the configuration
nametextyesFolder name. Must be unique among its sibling folders in the target
parentFolderIdUUID or nullyesId of another folder of the configuration, or null for a folder directly inside the folder you import into

A folder or view with parentFolderId null lands directly in the folder you import into. An export with Include the folder ticked contains the folder itself; without it, the configuration holds only the content, with null as parent.

Tables and columns

PropertyTypeRequiredMeaning
idUUIDyesReferred to by tableId of exactly one view
nametextyesBusiness name of the table
technicalNametextyesTable name in the database. Proposed for the new table; step 2 Map objects asks for another one if it is taken
dataSourceIdwhole numberyesAn id from metadata.dataSources
tableTypetextyesnative for a table stored in NextTables, foreign for a connected table
hasDataHistorytrue or falsewritten by the exportWhether the table keeps the history of data changes. Left out, data history is on
columnslistyesThe columns, see below
Column propertyTypeRequiredMeaning
idtextyesUnique in the table; referred to by columnId of a field
technicalNametextyesColumn name in the database
dataTypetextyestext, number (whole number), floating (decimal), boolean, date or time
isKeytrue or falseyesWhether the column is part of the table key

📝 Note: When the import creates a table, the column names in the database come from the field names, as when you create a view by hand: characters other than letters, digits and underscores become underscores, and for SAP Datasphere the name is in upper case. The field Region name gives the column REGION_NAME. Write each column's technicalName to match, so the configuration reads like an export. A field name that gives a reserved word, such as User, is refused with "Some names are not valid in this database. Change the table or column names and try again."

Every table belongs to exactly one view, and every view to exactly one table. A connected table (foreign) is not created: it must already exist in the database you map it to, with a key.

Views and fields

PropertyTypeRequiredMeaning
idUUIDyesUnique in the configuration
nametextyesView name, 1 to 255 characters. Must be unique within its top-level folder in the target
viewTypetextwrite gridgrid. A hierarchy view is refused
tableIdUUIDyesThe id of the view's table
parentFolderIdUUID or nullyesId of a folder of the configuration, or null for the folder you import into
hasActiveFiltertrue or falsewritten by the exportSwitches the enforced filter on
enforcedFilterobject or nullwritten by the exportSee "Enforced filter of a view"
fieldslistyesThe fields of the view, see below
Field propertyTypeRequiredMeaning
idtextyesUnique in the view
columnIdtextyesThe id of a column of the view's table. The field takes its data type and key flag from that column
nametextyesField name users see; also the source of the column name in the database
indexwhole numberyesPosition in the view, counted from 0 without gaps
isRequiredtrue or falseyesWhether the field must be filled
defaultValueobjectyestype (none or static) and value (text or null)
masterDataobject or nullyesMaster data binding, see below
rowLevelSecurityMappingslistyesRow-level security, see below; empty when unused
formDefinitionobjectyesForm rules, see below
uiTypetext or nullwritten by the exportDisplay type of the field

defaultValue.value is always text: "true" or "false" for a checkbox, "0" for a number, "2026-12-31" for a date and "08:00:00" for a time. Computed and external default values are not supported yet; use none or static.

uiType is one of single-line-input, multi-line-input, number-field, checkbox, date-picker, time-picker, select, chips and stars, or null. With null, NextTables picks the display type from the data type. A field bound to master data gets its display type when the import binds it, select if none is given.

Form rules of a field

formDefinition holds the field's settings from the form editor, with the same property names as the JSON of a form. Their meaning and the expression syntax are explained in How to build a form with the JSON editor. The export writes null for every optional property that is not set; you may leave them out.

PropertyTypeMeaning
clearIfInvisibletext, requireddefault, none, onHidden, onHiddenContainer or onComplete
readOnly, visibletrue or false, requiredWhether the field is read-only and visible in the form
validatorslist, requiredChecks with type (for example regex, text or expression), the setting of that type (regex, expression, minLength, maxLength, allowDigits, caseInsensitive) and the message text. Empty when unused
visibleIf, enableIf, requiredIf, resetValueIf, setValueIftext or nullConditions in the expression syntax of the form editor
setValueExpression, defaultValueExpressiontext or nullExpressions for a set value and a default value in the form
min, max, minValueExpression, maxValueExpression, steptext, number or nullValue limits and step of a number or date field
description, placeholder, requiredErrorText, minErrorText, maxErrorText, stepErrorTexttext object or nullHelp texts and error messages

Texts such as placeholder or a validator's text are objects with a default text and optional translations per language code, for example {"default": "Enter a four-digit year.", "de": "Gib ein vierstelliges Jahr ein."}.

Master data binding of a field

masterData binds a field to a master data object of the configuration, so the field offers that object's values. It is null for a field without a binding.

PropertyTypeRequiredMeaning
masterDataIdwhole numberyesThe id of an entry in masterDataObjects
displaytextyesWhat the field shows: key, text, key_text or text_key
keyPartMappingslistyesOne entry per key field of the master data object: keyFieldId (one of its keyFieldIds) and mappedFieldId (a field of this view)

keyPartMappings holds exactly one entry per key field of the master data object. For a simple key, the bound field supplies the value itself, so mappedFieldId is the bound field's own id. For a compound key, the other entries name the fields of the same view that supply the other parts, for example the controlling area next to a cost center.

Row-level security of a field

rowLevelSecurityMappings connects a field to row-level security objects, so the rules of each object restrict the rows by that field. It is an empty list for a field without row-level security.

PropertyTypeRequiredMeaning
idtextyesUnique in the field
dimensionValuetextyesThe dimension this field stands for, for example Region. Must match a dimension of the row-level security object
rowLevelSecurityObjectIdUUIDyesThe id of an entry in rowLevelSecurityObjects

Enforced filter of a view

enforcedFilter is null, or a group that combines conditions on fields of the same view. It applies only while hasActiveFilter is true.

NodeProperties
Grouptype group, logic and or or, and children: groups and conditions
Conditiontype filter, fieldId (a field of the view), fieldType (text, number, boolean, date or time; number also for decimal fields), operator and value; for text and date also valueType, and for some date values metadata (a number of days)
fieldTypeOperatorsValues
textlike, not_like, equals, not_equals, greater_than, greater_than_or_equals, less_than, less_than_or_equals, is_null, is_not_nullvalueType custom_string with your text, defined_string with USER_EMAIL or USER_LANGUAGE of the signed-in user, or empty_string with null
number, timeequals, not_equals, greater_than, greater_than_or_equals, less_than, less_than_or_equals, is_null, is_not_nullA number, or a time such as 08:00:00
dateas for numbers, plus betweenvalueType custom_date with a date such as 2026-12-31, defined_date with a value such as today, or one of the other date value types the filter editor writes
booleanequals, not_equalstrue or false

💡 Tip: For anything beyond a simple condition, set the filter on a view in a test folder, export it, and copy the enforcedFilter from that configuration.

Master data objects

PropertyTypeRequiredMeaning
idwhole numberyesUnique in the configuration; referred to by masterDataId of a field
nametextyesMust be unique across the whole target system
viewIdUUIDyesThe lookup view, a view of the configuration
keyFieldIdslist of textyesAt least one field of the lookup view, in key order
textFieldIdtextyesThe field of the lookup view that holds the text
isStricttrue or falseyesStrict search: only values from the lookup table are allowed
minCharLengthwhole numberyesMinimum search characters, 0 or more

The lookup view is an ordinary view of the configuration, with its table. Its table arrives empty: fill it before users enter data, or nobody can fill in fields bound to a master data object with strict search. See How to create and use master data objects in NextTables.

Row-level security objects

PropertyTypeRequiredMeaning
idUUIDyesReferred to by rowLevelSecurityObjectId of a field
nametextyesMust be unique across the whole target system
viewIdUUIDyesThe rules view, a view of the configuration
userIdFieldIdtextyesThe field of the rules view with the user's email address
firstValueFieldId, secondValueFieldIdtext or nullyesThe fields with the value, and the upper value of a range
dimensionFieldId or dimensionConstanttext or nullyesThe dimension, for example the constant Region
operatorFieldId or operatorConstanttext or nullyesThe operator, for example the constant EQ
actionFieldId or actionConstanttext or nullyesWhat the rule allows: read, write or all
ruleIdFieldIdtext or nullyesA field that identifies each rule, if your rules table has one

Each setting comes either from a field of the rules view, which can differ per rule, or from a constant for the whole object. Leave the unused one null. The operators and their meaning are listed in How to create and use row-level security. The rules table arrives empty: until you add rules, views that use the object show no rows.

How references work

PropertyPoints toMust be
tables.dataSourceIdmetadata.dataSources.idlisted in dataSources
views.tableIdtables.ida table no other view uses
fields.columnIdcolumns.ida column of the view's own table
folders.parentFolderId, views.parentFolderIdfolders.ida folder of the configuration, or null
masterData.masterDataIdmasterDataObjects.idin the configuration
keyPartMappings.keyFieldIdmasterDataObjects.keyFieldIdseach key field exactly once
keyPartMappings.mappedFieldIdfields.ida field of the same view
rowLevelSecurityMappings.rowLevelSecurityObjectIdrowLevelSecurityObjects.idin the configuration
masterDataObjects.viewId, rowLevelSecurityObjects.viewIdviews.ida view of the configuration
The field ids of master data and row-level security objectsfields.idfields of their lookup or rules view
enforcedFilter conditions, fieldIdfields.ida field of the same view
  • Ids of folders, tables, views and row-level security objects are UUIDs; ids of master data objects are whole numbers. Ids of fields and columns may be any text that is unique; the export writes UUIDs.
  • Keep the ids stable. NextTables remembers, per source system (tenantId) and id, which object in the target folder a package object became. The next import of a configuration with the same ids updates those objects. New ids create new objects.
  • A view can't use a master data object whose lookup view is that same view.

What the import refuses

The import checks a configuration when you select Next in step 1 Add configuration, before anything is created, and stops at the first problem it finds.

CodeMessageCause
000053"The pasted text is not valid JSON. Paste the complete package exactly as it was exported."The text is not JSON, often because it was cut off
000054"The pasted JSON is not a transport package. Paste a package produced by the export."kind is missing or wrong
000055"The package format version is not supported by this system. Export the package again from a compatible system."schemaVersion is not 1.0
000056"The package is not well-formed:" followed by the ruleA required property is missing, a value has the wrong type, an id is not a UUID, a reference points to nothing, a table belongs to two views, or two master data or row-level security objects share a name
000189"Transport packages with hierarchy views can't be imported yet. Remove the hierarchy view from the package and try again."A view of type hierarchy
000224Names the view, its master data object and the bound field, and says such a view "can't be imported yet"A view bound to the master data object whose lookup view it is
000007"Some names are not valid in this database. Change the table or column names and try again."A table name or a column name from a field name is not allowed in the target database. Shown in step 2 Map objects

Names that already exist in the target are not refused at this point. Step 2 Map objects asks for another name, as described in How to transport a folder to another folder in NextTables. A configuration file can be up to 5 MB.

Example: a small configuration

One folder Cost center planning with the view Cost centers: a key field with a format check and a placeholder, a required description and a checkbox that is ticked by default. It was imported into a test folder on 2026-12-01 as printed here.

{
  "kind": "nexthub.transport.package",
  "schemaVersion": "1.0",
  "metadata": {
    "appVersion": "2026.11.0",
    "exportedAt": "2026-12-01T09:00:00.000Z",
    "exportedBy": {"userId": 1, "email": "admin@example.com"},
    "tenantId": "example-dev",
    "dataSources": [
      {
        "id": 1,
        "name": "Development",
        "dialect": "hana",
        "dataSourceType": "customer_db",
        "isReadOnly": false,
        "scopedFolderIds": []
      }
    ],
    "roots": [{"type": "folder", "id": "d9436266-a9ea-4cb2-b8f1-7c0b94fa6e45"}]
  },
  "objects": {
    "folders": [
      {
        "id": "d9436266-a9ea-4cb2-b8f1-7c0b94fa6e45",
        "name": "Cost center planning",
        "parentFolderId": null
      }
    ],
    "tables": [
      {
        "id": "8a3a9e8a-db4e-47ae-92af-195f1179e412",
        "name": "Cost centers",
        "technicalName": "COST_CENTERS",
        "dataSourceId": 1,
        "tableType": "native",
        "hasDataHistory": true,
        "columns": [
          {
            "id": "f5b1c270-4dc0-4613-a40d-274e991ecd89",
            "technicalName": "COST_CENTER",
            "dataType": "text",
            "isKey": true
          },
          {
            "id": "043cb47a-67a5-4c10-a724-533520e3f3e1",
            "technicalName": "DESCRIPTION",
            "dataType": "text",
            "isKey": false
          },
          {
            "id": "abc4f680-19d0-4f3b-8095-90bd2ba45a35",
            "technicalName": "ACTIVE",
            "dataType": "boolean",
            "isKey": false
          }
        ]
      }
    ],
    "views": [
      {
        "id": "69f24154-79b4-477e-a3e8-8b99b22b06f7",
        "name": "Cost centers",
        "viewType": "grid",
        "tableId": "8a3a9e8a-db4e-47ae-92af-195f1179e412",
        "parentFolderId": "d9436266-a9ea-4cb2-b8f1-7c0b94fa6e45",
        "hasActiveFilter": false,
        "enforcedFilter": null,
        "fields": [
          {
            "id": "4f961b8e-28cd-4dc6-b14f-fff5b4271b00",
            "columnId": "f5b1c270-4dc0-4613-a40d-274e991ecd89",
            "name": "Cost center",
            "index": 0,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": [
                {
                  "type": "regex",
                  "regex": "^CC-\\d{4}$",
                  "text": {"default": "Use CC- followed by four digits, for example CC-1024."}
                }
              ],
              "placeholder": {"default": "CC-1024"}
            },
            "uiType": "single-line-input"
          },
          {
            "id": "bf833fbf-dbbf-4acd-88f2-3186bf3c4111",
            "columnId": "043cb47a-67a5-4c10-a724-533520e3f3e1",
            "name": "Description",
            "index": 1,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "single-line-input"
          },
          {
            "id": "5a9525b2-091b-4d56-a68d-dacb004cefae",
            "columnId": "abc4f680-19d0-4f3b-8095-90bd2ba45a35",
            "name": "Active",
            "index": 2,
            "isRequired": false,
            "defaultValue": {"type": "static", "value": "true"},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "checkbox"
          }
        ]
      }
    ],
    "masterDataObjects": [],
    "rowLevelSecurityObjects": []
  }
}

Example: a larger configuration

The folder Travel planning with the view Travel budget and a subfolder Master data. The field Region is bound to the master data object Sales regions and restricted by the row-level security object Region access, whose rules view assigns regions to users by email. Year has a format check with an English and a German message, and Budget a default of 0 and a minimum. It was imported into a test folder on 2026-12-01 as printed here.

{
  "kind": "nexthub.transport.package",
  "schemaVersion": "1.0",
  "metadata": {
    "appVersion": "2026.11.0",
    "exportedAt": "2026-12-01T09:00:00.000Z",
    "exportedBy": {"userId": 1, "email": "admin@example.com"},
    "tenantId": "example-dev",
    "dataSources": [
      {
        "id": 1,
        "name": "Development",
        "dialect": "hana",
        "dataSourceType": "customer_db",
        "isReadOnly": false,
        "scopedFolderIds": []
      }
    ],
    "roots": [{"type": "folder", "id": "bbd96fb8-11b7-487b-be37-78c12983a2d2"}]
  },
  "objects": {
    "folders": [
      {
        "id": "bbd96fb8-11b7-487b-be37-78c12983a2d2",
        "name": "Travel planning",
        "parentFolderId": null
      },
      {
        "id": "c306e149-2820-40b4-be0d-a63e4f1dfec6",
        "name": "Master data",
        "parentFolderId": "bbd96fb8-11b7-487b-be37-78c12983a2d2"
      }
    ],
    "tables": [
      {
        "id": "a5146f7e-9b92-4484-aabe-6237a603c506",
        "name": "Sales regions",
        "technicalName": "SALES_REGIONS",
        "dataSourceId": 1,
        "tableType": "native",
        "hasDataHistory": true,
        "columns": [
          {
            "id": "f0e896e3-fbc7-4a4d-8527-834422d4666e",
            "technicalName": "REGION",
            "dataType": "text",
            "isKey": true
          },
          {
            "id": "42bbeda1-9aa9-453b-9974-ee09afb73f34",
            "technicalName": "REGION_NAME",
            "dataType": "text",
            "isKey": false
          }
        ]
      },
      {
        "id": "7e51b893-446c-4aea-9568-0de2750a9a4b",
        "name": "Region access",
        "technicalName": "REGION_ACCESS",
        "dataSourceId": 1,
        "tableType": "native",
        "hasDataHistory": true,
        "columns": [
          {
            "id": "ff3f0518-8cda-4a28-b384-48f3b8b2b034",
            "technicalName": "USER_EMAIL",
            "dataType": "text",
            "isKey": true
          },
          {
            "id": "c9a0931d-fc14-4f66-8448-f38ccc56a94f",
            "technicalName": "REGION",
            "dataType": "text",
            "isKey": true
          }
        ]
      },
      {
        "id": "380726dd-0aec-4503-b37e-090304aebbbc",
        "name": "Travel budget",
        "technicalName": "TRAVEL_BUDGET",
        "dataSourceId": 1,
        "tableType": "native",
        "hasDataHistory": true,
        "columns": [
          {
            "id": "97ecc9da-82d5-4c60-b906-d672ec959a9d",
            "technicalName": "REGION",
            "dataType": "text",
            "isKey": true
          },
          {
            "id": "9ee2cd75-578c-4490-8ed8-180d137eaae3",
            "technicalName": "YEAR",
            "dataType": "text",
            "isKey": true
          },
          {
            "id": "cf6af425-22c3-4d1f-9555-079a72c8ce89",
            "technicalName": "BUDGET",
            "dataType": "number",
            "isKey": false
          }
        ]
      }
    ],
    "views": [
      {
        "id": "61b3181c-f226-4fa0-9dbd-42ce73c13219",
        "name": "Sales regions",
        "viewType": "grid",
        "tableId": "a5146f7e-9b92-4484-aabe-6237a603c506",
        "parentFolderId": "c306e149-2820-40b4-be0d-a63e4f1dfec6",
        "hasActiveFilter": false,
        "enforcedFilter": null,
        "fields": [
          {
            "id": "17123000-7939-4ded-9294-322a8a8d4b7e",
            "columnId": "f0e896e3-fbc7-4a4d-8527-834422d4666e",
            "name": "Region",
            "index": 0,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "single-line-input"
          },
          {
            "id": "33f2efa9-8231-455d-a016-629acbfabe17",
            "columnId": "42bbeda1-9aa9-453b-9974-ee09afb73f34",
            "name": "Region name",
            "index": 1,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "single-line-input"
          }
        ]
      },
      {
        "id": "04ae5258-b113-4f69-98d6-55e713ff9b2b",
        "name": "Region access",
        "viewType": "grid",
        "tableId": "7e51b893-446c-4aea-9568-0de2750a9a4b",
        "parentFolderId": "c306e149-2820-40b4-be0d-a63e4f1dfec6",
        "hasActiveFilter": false,
        "enforcedFilter": null,
        "fields": [
          {
            "id": "4f3ad0a6-7716-49ed-aebc-46ff728a44fb",
            "columnId": "ff3f0518-8cda-4a28-b384-48f3b8b2b034",
            "name": "User email",
            "index": 0,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "single-line-input"
          },
          {
            "id": "82224d49-feee-4e57-af9f-b63e04cc8719",
            "columnId": "c9a0931d-fc14-4f66-8448-f38ccc56a94f",
            "name": "Region",
            "index": 1,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "single-line-input"
          }
        ]
      },
      {
        "id": "cdbed7fd-6cab-4cb3-8b08-c6547f487dda",
        "name": "Travel budget",
        "viewType": "grid",
        "tableId": "380726dd-0aec-4503-b37e-090304aebbbc",
        "parentFolderId": "bbd96fb8-11b7-487b-be37-78c12983a2d2",
        "hasActiveFilter": false,
        "enforcedFilter": null,
        "fields": [
          {
            "id": "c45f5305-7826-403b-b0b7-06c85c2dc15b",
            "columnId": "97ecc9da-82d5-4c60-b906-d672ec959a9d",
            "name": "Region",
            "index": 0,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": {
              "masterDataId": 1,
              "display": "text_key",
              "keyPartMappings": [
                {
                  "keyFieldId": "17123000-7939-4ded-9294-322a8a8d4b7e",
                  "mappedFieldId": "c45f5305-7826-403b-b0b7-06c85c2dc15b"
                }
              ]
            },
            "rowLevelSecurityMappings": [
              {
                "id": "768320b6-c00d-4d12-9761-69e36f65ccc4",
                "dimensionValue": "Region",
                "rowLevelSecurityObjectId": "925495c3-2878-49bf-9f84-089b0b579e39"
              }
            ],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": []
            },
            "uiType": "select"
          },
          {
            "id": "f03eb85f-6762-48f7-98a3-17b7e51d1404",
            "columnId": "9ee2cd75-578c-4490-8ed8-180d137eaae3",
            "name": "Year",
            "index": 1,
            "isRequired": true,
            "defaultValue": {"type": "none", "value": null},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": [
                {
                  "type": "regex",
                  "regex": "^\\d{4}$",
                  "text": {
                    "default": "Enter a four-digit year.",
                    "de": "Gib ein vierstelliges Jahr ein."
                  }
                }
              ],
              "placeholder": {"default": "2027"}
            },
            "uiType": "single-line-input"
          },
          {
            "id": "fa9a0611-17c4-4167-b86f-c0b21901d82f",
            "columnId": "cf6af425-22c3-4d1f-9555-079a72c8ce89",
            "name": "Budget",
            "index": 2,
            "isRequired": false,
            "defaultValue": {"type": "static", "value": "0"},
            "masterData": null,
            "rowLevelSecurityMappings": [],
            "formDefinition": {
              "clearIfInvisible": "default",
              "readOnly": false,
              "visible": true,
              "validators": [],
              "min": "0",
              "minErrorText": {"default": "The budget can't be negative."}
            },
            "uiType": "number-field"
          }
        ]
      }
    ],
    "masterDataObjects": [
      {
        "id": 1,
        "name": "Sales regions",
        "viewId": "61b3181c-f226-4fa0-9dbd-42ce73c13219",
        "keyFieldIds": ["17123000-7939-4ded-9294-322a8a8d4b7e"],
        "textFieldId": "33f2efa9-8231-455d-a016-629acbfabe17",
        "isStrict": true,
        "minCharLength": 0
      }
    ],
    "rowLevelSecurityObjects": [
      {
        "id": "925495c3-2878-49bf-9f84-089b0b579e39",
        "name": "Region access",
        "viewId": "04ae5258-b113-4f69-98d6-55e713ff9b2b",
        "userIdFieldId": "4f3ad0a6-7716-49ed-aebc-46ff728a44fb",
        "firstValueFieldId": "82224d49-feee-4e57-af9f-b63e04cc8719",
        "secondValueFieldId": null,
        "dimensionFieldId": null,
        "dimensionConstant": "Region",
        "operatorFieldId": null,
        "operatorConstant": "EQ",
        "actionFieldId": null,
        "actionConstant": "all",
        "ruleIdFieldId": null
      }
    ]
  }
}

The schema

The JSON Schema below describes schema version 1.0. It is stricter than the import: it asks for every property the export writes, so a configuration that passes it looks like an exported one. Both examples above pass it.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NextTables transport configuration, schema version 1.0",
  "type": "object",
  "required": ["kind", "schemaVersion", "metadata", "objects"],
  "properties": {
    "kind": {"const": "nexthub.transport.package"},
    "schemaVersion": {"const": "1.0"},
    "metadata": {
      "type": "object",
      "required": ["appVersion", "exportedAt", "exportedBy", "tenantId", "dataSources"],
      "properties": {
        "appVersion": {"type": "string"},
        "exportedAt": {"type": "string", "format": "date-time"},
        "exportedBy": {
          "type": "object",
          "properties": {"userId": {"type": "integer"}, "email": {"type": "string"}}
        },
        "tenantId": {
          "type": "string",
          "description": "identifies the source system; keep it the same in every version of a configuration"
        },
        "dataSources": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["id", "name"],
            "properties": {
              "id": {"type": "integer"},
              "name": {"type": "string"},
              "dialect": {"enum": ["hana", "databricks", "postgres"]},
              "dataSourceType": {"enum": ["customer_db", "nexthub_customer_default_db"]},
              "isReadOnly": {"type": "boolean"},
              "scopedFolderIds": {"type": "array", "items": {"type": "string", "format": "uuid"}}
            }
          }
        },
        "roots": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["id", "type"],
            "properties": {
              "id": {"type": "string", "format": "uuid"},
              "type": {"enum": ["folder", "folder_contents", "view"]}
            }
          }
        }
      }
    },
    "objects": {
      "type": "object",
      "required": ["folders", "tables", "views", "masterDataObjects", "rowLevelSecurityObjects"],
      "properties": {
        "folders": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["id", "name", "parentFolderId"],
            "properties": {
              "id": {"type": "string", "format": "uuid"},
              "name": {"type": "string"},
              "parentFolderId": {"oneOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]}
            }
          }
        },
        "tables": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "technicalName",
              "dataSourceId",
              "tableType",
              "hasDataHistory",
              "columns"
            ],
            "properties": {
              "id": {"type": "string", "format": "uuid"},
              "name": {"type": "string"},
              "technicalName": {"type": "string"},
              "dataSourceId": {"type": "integer"},
              "tableType": {"enum": ["native", "foreign"]},
              "hasDataHistory": {"type": "boolean"},
              "columns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": ["id", "technicalName", "dataType", "isKey"],
                  "properties": {
                    "id": {"type": "string"},
                    "technicalName": {"type": "string"},
                    "dataType": {"enum": ["text", "number", "floating", "boolean", "date", "time"]},
                    "isKey": {"type": "boolean"}
                  }
                }
              }
            }
          }
        },
        "views": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "viewType",
              "tableId",
              "parentFolderId",
              "hasActiveFilter",
              "enforcedFilter",
              "fields"
            ],
            "properties": {
              "id": {"type": "string", "format": "uuid"},
              "name": {"type": "string", "minLength": 1, "maxLength": 255},
              "viewType": {"const": "grid"},
              "tableId": {"type": "string", "format": "uuid"},
              "parentFolderId": {"oneOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]},
              "hasActiveFilter": {"type": "boolean"},
              "enforcedFilter": {"oneOf": [{"type": "null"}, {"$ref": "#/$defs/filterGroup"}]},
              "fields": {"type": "array", "items": {"$ref": "#/$defs/field"}}
            }
          }
        },
        "masterDataObjects": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "viewId",
              "keyFieldIds",
              "textFieldId",
              "isStrict",
              "minCharLength"
            ],
            "properties": {
              "id": {"type": "integer"},
              "name": {"type": "string"},
              "viewId": {"type": "string", "format": "uuid"},
              "keyFieldIds": {
                "type": "array",
                "minItems": 1,
                "uniqueItems": true,
                "items": {"type": "string"}
              },
              "textFieldId": {"type": "string"},
              "isStrict": {"type": "boolean"},
              "minCharLength": {"type": "integer", "minimum": 0}
            }
          }
        },
        "rowLevelSecurityObjects": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "viewId",
              "userIdFieldId",
              "firstValueFieldId",
              "secondValueFieldId",
              "dimensionFieldId",
              "dimensionConstant",
              "operatorFieldId",
              "operatorConstant",
              "actionFieldId",
              "actionConstant",
              "ruleIdFieldId"
            ],
            "properties": {
              "id": {"type": "string", "format": "uuid"},
              "name": {"type": "string"},
              "viewId": {"type": "string", "format": "uuid"},
              "userIdFieldId": {"type": "string"},
              "firstValueFieldId": {"type": ["string", "null"]},
              "secondValueFieldId": {"type": ["string", "null"]},
              "dimensionFieldId": {"type": ["string", "null"]},
              "dimensionConstant": {"type": ["string", "null"]},
              "operatorFieldId": {"type": ["string", "null"]},
              "operatorConstant": {"type": ["string", "null"]},
              "actionFieldId": {"type": ["string", "null"]},
              "actionConstant": {"type": ["string", "null"]},
              "ruleIdFieldId": {"type": ["string", "null"]}
            }
          }
        }
      }
    }
  },
  "$defs": {
    "field": {
      "type": "object",
      "required": [
        "id",
        "columnId",
        "name",
        "index",
        "isRequired",
        "defaultValue",
        "masterData",
        "rowLevelSecurityMappings",
        "formDefinition",
        "uiType"
      ],
      "properties": {
        "id": {"type": "string", "description": "unique id, a UUID like the export writes"},
        "columnId": {"type": "string", "description": "id of a column of the view's table"},
        "name": {
          "type": "string",
          "description": "field name; also the source of the column's technical name when the table is created"
        },
        "index": {
          "type": "integer",
          "minimum": 0,
          "description": "0-based, contiguous position in the view"
        },
        "isRequired": {"type": "boolean"},
        "defaultValue": {
          "type": "object",
          "required": ["type", "value"],
          "properties": {
            "type": {"enum": ["none", "static"]},
            "value": {"type": ["string", "null"]}
          }
        },
        "masterData": {
          "oneOf": [
            {"type": "null"},
            {
              "type": "object",
              "required": ["masterDataId", "display", "keyPartMappings"],
              "properties": {
                "masterDataId": {
                  "type": "integer",
                  "description": "id of an entry in objects.masterDataObjects"
                },
                "display": {"enum": ["key", "text", "key_text", "text_key"]},
                "keyPartMappings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": ["keyFieldId", "mappedFieldId"],
                    "properties": {
                      "keyFieldId": {
                        "type": "string",
                        "description": "one of the master data object's keyFieldIds"
                      },
                      "mappedFieldId": {
                        "type": "string",
                        "description": "a field of this view, often this field itself"
                      }
                    }
                  }
                }
              }
            }
          ]
        },
        "rowLevelSecurityMappings": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["id", "dimensionValue", "rowLevelSecurityObjectId"],
            "properties": {
              "id": {"type": "string"},
              "dimensionValue": {"type": "string", "minLength": 1},
              "rowLevelSecurityObjectId": {"type": "string", "format": "uuid"}
            }
          }
        },
        "formDefinition": {"$ref": "#/$defs/formDefinition"},
        "uiType": {
          "enum": [
            "single-line-input",
            "multi-line-input",
            "number-field",
            "checkbox",
            "date-picker",
            "time-picker",
            "select",
            "chips",
            "stars",
            null
          ]
        }
      }
    },
    "formDefinition": {
      "type": "object",
      "required": ["clearIfInvisible", "readOnly", "visible", "validators"],
      "properties": {
        "clearIfInvisible": {
          "enum": ["default", "none", "onComplete", "onHidden", "onHiddenContainer"]
        },
        "readOnly": {"type": "boolean"},
        "visible": {"type": "boolean"},
        "validators": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["type"],
            "properties": {
              "type": {
                "type": "string",
                "description": "Validator type as in the form editor, for example regex, text or expression"
              },
              "regex": {"type": "string"},
              "expression": {"type": "string"},
              "minLength": {"type": "integer"},
              "maxLength": {"type": "integer"},
              "allowDigits": {"type": "boolean"},
              "caseInsensitive": {"type": "boolean"},
              "text": {
                "type": ["object", "null"],
                "required": ["default"],
                "properties": {"default": {"type": "string"}},
                "additionalProperties": {"type": "string"},
                "description": "Localized text: default plus optional language codes such as de; null when not set"
              }
            }
          }
        },
        "description": {
          "type": ["object", "null"],
          "required": ["default"],
          "properties": {"default": {"type": "string"}},
          "additionalProperties": {"type": "string"},
          "description": "Localized text: default plus optional language codes such as de; null when not set"
        },
        "placeholder": {
          "type": ["object", "null"],
          "required": ["default"],
          "properties": {"default": {"type": "string"}},
          "additionalProperties": {"type": "string"},
          "description": "Localized text: default plus optional language codes such as de; null when not set"
        },
        "requiredErrorText": {
          "type": ["object", "null"],
          "required": ["default"],
          "properties": {"default": {"type": "string"}},
          "additionalProperties": {"type": "string"},
          "description": "Localized text: default plus optional language codes such as de; null when not set"
        },
        "minErrorText": {
          "type": ["object", "null"],
          "required": ["default"],
          "properties": {"default": {"type": "string"}},
          "additionalProperties": {"type": "string"},
          "description": "Localized text: default plus optional language codes such as de; null when not set"
        },
        "maxErrorText": {
          "type": ["object", "null"],
          "required": ["default"],
          "properties": {"default": {"type": "string"}},
          "additionalProperties": {"type": "string"},
          "description": "Localized text: default plus optional language codes such as de; null when not set"
        },
        "stepErrorText": {
          "type": ["object", "null"],
          "required": ["default"],
          "properties": {"default": {"type": "string"}},
          "additionalProperties": {"type": "string"},
          "description": "Localized text: default plus optional language codes such as de; null when not set"
        },
        "visibleIf": {"type": ["string", "null"]},
        "enableIf": {"type": ["string", "null"]},
        "requiredIf": {"type": ["string", "null"]},
        "resetValueIf": {"type": ["string", "null"]},
        "setValueIf": {"type": ["string", "null"]},
        "setValueExpression": {"type": ["string", "null"]},
        "defaultValueExpression": {"type": ["string", "null"]},
        "min": {"type": ["string", "null"]},
        "max": {"type": ["string", "null"]},
        "minValueExpression": {"type": ["string", "null"]},
        "maxValueExpression": {"type": ["string", "null"]},
        "step": {"type": ["number", "null"]}
      }
    },
    "filterGroup": {
      "type": "object",
      "required": ["type", "logic", "children"],
      "properties": {
        "type": {"const": "group"},
        "logic": {"enum": ["and", "or"]},
        "children": {
          "type": "array",
          "items": {"oneOf": [{"$ref": "#/$defs/filterGroup"}, {"$ref": "#/$defs/filterLeaf"}]}
        }
      }
    },
    "filterLeaf": {
      "type": "object",
      "required": ["type", "fieldId", "fieldType", "operator", "value"],
      "properties": {
        "type": {"const": "filter"},
        "fieldId": {"type": "string", "description": "id of a field of the same view"},
        "fieldType": {"enum": ["text", "number", "boolean", "date", "time"]},
        "operator": {
          "enum": [
            "equals",
            "not_equals",
            "like",
            "not_like",
            "greater_than",
            "greater_than_or_equals",
            "less_than",
            "less_than_or_equals",
            "between",
            "is_null",
            "is_not_null"
          ]
        },
        "value": {"type": ["string", "number", "boolean", "null"]},
        "valueType": {
          "enum": [
            "custom_string",
            "defined_string",
            "empty_string",
            "custom_date",
            "defined_date",
            "defined_date_with_metadata",
            "defined_date_range",
            "defined_date_range_with_metadata",
            "empty_date"
          ]
        },
        "metadata": {"type": "number"}
      }
    }
  }
}

Writing a configuration with an AI assistant

An AI assistant can write a configuration from a description of your tables. Give it three things:

  • This article, or at least the schema and the larger example.
  • An export of a similar folder from your own system, so it copies your naming and your database entry.
  • Your model: folders, views with their fields, data types and keys, required fields, which fields use which master data object, and which rows each user may see.

Ask for one complete JSON object that follows the schema, with new UUIDs, field names that give valid column names, and every reference defined in the same configuration. To change a configuration you imported before, ask the assistant to keep all existing ids and the tenantId.

Then check the result in NextTables before anything is created:

  1. Create an empty test folder. Open its menu, select Transport, then Import configuration..., and paste the result under Or paste the configuration.
  2. Select Next. A refused configuration shows one of the messages above; give the message to the assistant and paste the corrected version.
  3. In step 2 Map objects, map the database and resolve any name that already exists.
  4. Step 3 Review and import lists every object the import would create. If it is not what you asked for, select Exit: nothing has changed.
  5. Import into the test folder, open the views and try the forms. When everything is right, export that test folder or transport it, so production receives a configuration that NextTables wrote itself.

Step 1 Add configuration of the dialog Import configuration into KB Transport Test, with the drop zone for a configuration file and the field Or paste the configuration

Step 2 Map objects of an import with the database Development from the configuration still to be mapped, the new folder Cost center planning and the notice that one mapping needs input

The result of importing the larger example with 10 objects created and 2 that need attention, because the master data table and the rules table are still empty

Troubleshooting / FAQs

1. The import says "The package is not well-formed".

The rest of the message names the object and the rule it breaks, for example a view that refers to a table the configuration doesn't contain, or a table that belongs to two views. Fix that reference and paste the configuration again.

2. The import says "Some names are not valid in this database".

A table or column name is not allowed in the target database. Column names come from the field names, so rename the field, for example User to User email, or change the table's technical name in step 2 Map objects.

3. My second import created new objects instead of updating the first ones.

The ids or the tenantId changed between the two versions. NextTables recognizes an object by the source system and its id. Keep both the same in every version of a configuration.

4. Can a configuration contain a hierarchy view?

Not yet. Only grid views can be imported; a configuration with a view of type hierarchy is refused.

5. Can a configuration carry rows?

No. Every table arrives empty. Load the rows afterwards by upload, or let your data platform fill the tables.

6. Why does an exported file contain an email address?

metadata.exportedBy records who exported the configuration, with the user ID and email address. The import doesn't use either, so you may replace them, for example with admin@example.com, before you pass the file on.

Still need help?

Customers open a support ticket and follow every reply in the Support Portal. Subscribe to product updates and the release notes reach you by email.

Evaluating NextTables? Talk to the team that builds it.