6.5 Data Connector

Connect, or Data Connector, is a new import framework introduced in OriginPro 2019b. This new framework offers speed, simplicity and data integrity advantages over Origin's older file import methods. For differences between Connectors and older import methods, see:

Data Integrity

Data Connectors offer a higher degree of data protection than older import methods:

  • Data are not editable in books that contain Data Connectors, by default. This protects against accidental modification and deletion.
  • Data imported by CSV Connector can be sorted, by default (select column, the Worksheet: Sort Worksheet), but is otherwise not editable.
  • Data imported via Connector types other than CSV, is not sortable by default (not editable, not sortable). However, you can change both editing and sorting behaviors of Connector-imported data by manipulating the value of LabTalk system variable @IPDC, before you import data via Connector.

Note that "protection" does not prevent you from adding columns to the worksheet for the purpose of transforming the imported data (e.g. via Set Values). Protection merely prevents you from altering the original data.

Adding a Connector to the Sheet

Adding a Connector to a worksheet or matrix adds a Connector object to the top-left corner of the sheet. This object stores information used to maintain the connection to the data source.


To add a Connector to the active worksheet or matrix, do one of the following:

  • Click Data: Connect to File, Connect to Web or Connect to Database.
  • Click the Connectors tab in the Apps Gallery and choose a Connector.
  • Drag and drop a Connector-supported file onto an Origin worksheet or matrix.


Different connection states show different icons:

Icon Connection State
Dadta connector icon connect.png the sheet is used as the destination of a data connector.
Dadta connector icon empty.png - the sheet is not yet used by a data connector.
Dadta connector icon update.png there is updates in the data source.
Dadta connector icon broken.png the data source is from a file and the file does not exist.

When you mouse over a Connector icon, a tooltip displays the basic Connector information. Right-click inside the tooltip and Copy the information to the Clipboard.

Data connector tooltip.png

Dialogs and Menus

For Connector-specific dialog settings, please see the following topics:


Once a Connector is added, click the sheet's Connector icon to manage the connection.

Connector menu:

Data connector contextmenu.png
Data Source Open dialog to select or change data source

For data source from a disk file, the Data Source File Path dialog is opened.

Dadta connector file path.png

You can choose to browse and then save the data source path as

  • an absolute path
  • a relative path to the project saved folder. The current project must be saved before.
  • a relative path to the common data path you have set by Common Data Path context menu.
Import Import the source data into the active data-connected sheet.
Import All Books Import source data into all data-connected sheets in the project file.
Auto Import Auto import can be triggered in one of the following cases:
  • when open the project
  • when data source has changes
Disconnect Sheet Remove the connection between the worksheet/matrix and the data source and also the edit protection. Note that the connector icon remains allowing you to reconnect and import data later.
Remove Data Connector Permanently remove Data Connectors from all sheets in the active book. Note that this also clears the book's Exclude Imported When Saving check box, allowing you to save the book's imported data with the project file.
Remove Connectors from All Books Permanently remove Data Connectors from all books in the project file. Note that this also clears the Exclude Imported When Saving check box for all books in the project, allowing you to save imported data with the project file.
Exclude Imported When Saving Check it to clear the imported data but keep the connection when saving the workbook or project, which helps to decrease the project size, and allows to simply re-import the data when needed. If a graph is plotted from the imported data, there is also a download button appearing on the graph after the imported data has been cleared.

For an example, open sample project Statistics-Multivariate Analysis - Discriminant Analysis (Pro) by Help: Learning Center and set Samples in = Statistics-Multivariate Analysis in Analysis Samples tab. Try menu "Data: Re-Import Directly" to reimport the data. And then try to check and uncheck Exclude Imported When Saving and see the difference of the project size.

Common Data Path Set a common data path which can be used to quickly access source files by Data Source menu. This path shares between all books in the project and will be saved with the project.

It is typical to set the parent folder as Common Data Path. The advantage is even greater if you set the Common Data Path to a shared folder accessed by your group members and then share the project with them.


Other sub-menus under Data menu

Clone Import Available for data imported by Data: Import from File menu. After you import a data file by Import from File menu, ‘’’Clone Import’’’ will use the active workbook (including import settings) as template to import new file into a duplicate of current workbook. If the current workbook contains analysis, recalculation in the duplicate is triggered automatically regardless of the analysis tool's Recalculate mode.

For an example, open sample project Batch Processing - Clone Import by Help: Learning Center and set Samples in = Batch Processing in Analysis Samples tab. Activate workbook and try menu "Data: Clone Import" and choose another data. See how the active workbook is cloned with the new data.

Excluding or Saving Imported Data

  • By default, data from imported files of less than 500kB in size, are saved with the project; larger files are not.
  • Modify default data exclusion behaviors using these two LabTalk system variables:
  • @FSE: Controls threshold file size in kilobytes, for excluding data when saving the project.
  • @DNS: Controls whether data are excluded, regardless of threshold file size.


To manually override default data excluding behaviors for a given window

Regardless of import file size or the state of @FSE and @DNS, you can save data with the project in these ways:

  • Click on the Connector icon and clear the check mark beside Exclude Imported When Saving.
  • Right-click on the window title bar, open Properties and clear the check box beside Exclude imported data when saving project.

Other Manipulation

Currently Data Connector can import one file/table at a time. If you want to import multiple table on the same webpage, or multiple files in the same path, you can use ‘’’Add Worksheet’’’ menu to quickly import them to the same workbook.

To import multiple files/tables into one book:

  1. Import a file/table by Data Connector.
  2. Right clicking on the worksheet tab and choosing Add.
A new worksheet with data connector is added. The data source is prefilled with the data source in the book but doesn't connect. You can change to import a new table.

Note that each workbook can have different data sources, but only one particular connector type (such as CSV, JSON or OPJU). That is, each worksheet in it can have its own data source that is supported by that connector type.


To import data types not in the default menu

  1. Select Data: Connect From File/Web: Add New.
  2. This will open App Center with category set to Data Connector. Browse and find the file type you want to connect, and download it. Once downloaded, it will be added to the Data menu automatically for you to use. You can also find the App in Data Connector tab of App Gallery.