Migrate multiple TML files

You can migrate collections of Liveboards, answers, worksheets, views, and tables packaged together as a zip file. You can do this with Scriptability, ThoughtSpot’s solution for migrating data models (worksheets, tables, and views) and content (Liveboards and answers) between different environments, such as development and production. You can optionally edit these ThoughtSpot objects during the migration process.

Export related TML files

You can export your own custom zip file of related ThoughtSpot Modeling Language (TML) files from the Utilities page. Additionally, when you export more than one object of the same type at a time, or when you export an object and its dependents, ThoughtSpot exports it as a zip file.

To export your own custom TML file collections, follow these steps.

  1. Navigate to the Utilities page: Data > Utilities.

  2. In the Import/Export TML tile, select Export TML.

  3. In the Export interface, select the Liveboards, answers, views, tables, and worksheets that you would like to include in your zip file of related TML files. For example, for a Marketing zip file, you might choose a Marketing worksheet, a Campaigns worksheet, a Pipeline Liveboard, and a few answers your Chief Marketing Officer created.

  4. Click Export n objects.

  5. The Choose what to Export modal appears. Choose whether to export only the selected objects, or the selected objects and their associated objects (their underlying data sources: worksheets, tables, and views).

  6. Click Export.

  7. Open the downloaded TML zip file. The zip file contains a document called the Manifest file, which defines the objects you exported, their underlying data sources, and any export errors. If an individual export fails, you can find an error message in the Manifest file. The zip file still exports, even if an individual object’s export fails.

See Scriptability for more information on exporting and importing objects.

You can import your own custom zip file of related TML files from the Utilities page.

  1. Navigate to the Utilities page: Data > Utilities.

  2. In the Import/Export TML tile, select Import TML.

  3. In the Import interface, click Select .zip or .tml files to upload.

  4. In your file system, find and select the .zip file.

  5. Unselect any files in the .zip file you do not want to upload.

  6. If you constructed the file correctly, the Import interface displays a Ready for import message for each TML file, and shows you which objects are validated.

  7. When all your files are ready for import, you can now determine how to import the objects. The GUID parameter in an object’s TML file allows ThoughtSpot to recognize pre-existing GUIDs, and determine if you are updating an existing object, or creating a new one. If you are updating an existing object, the system asks if you would like to create a new object, or update the existing one.

  8. If there are errors in any of the objects you are importing, the Status column for the object is one of two states:

    • Ready for import and View Warnings, with a yellow exclamation mark: The object contains errors, but you can still import it. Either some visualizations or filters in the Liveboard have errors, or the destination tables for some joins in the table do not exist. If you import the object without fixing the errors, ThoughtSpot removes the Liveboard visualizations or filters or the table joins that contain errors. To view the errors, select View Warnings.

    • Cannot import and View Errors, with a red exclamation mark: The object contains errors, and you cannot import it. You must fix the errors. To view the errors and a suggested resolution, select View Errors.

  9. Resolve any errors by selecting the Edit button for the object with errors. This opens the TML editor. Within the editor, resolve the errors using the method suggested under View Errors in the Import workflow.

  10. After you resolve the errors, click Validate, and then Save. Exit the TML editor.

  11. Select the objects you want to import. ThoughtSpot automatically selects objects with no errors, but does not select objects with errors, even after you resolve them. You must select those objects yourself.

  12. Click Import n selected.

  13. The Import Status screen displays the status of the objects you imported. You can open the object(s) that you imported, or click Exit to return to the main object page.


You cannot import manually compressed .zip files. You can only import .zip files that you exported from ThoughtSpot: a custom set of TML files, an object and its associated data sources, or multiple objects of the same type that you exported from the object list page.