Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Overview
If you have loaded data into an ERD and need to change the data type of any of the attributes, first roll back the data in the table. To reimport the data or import different data, use an analysis model; see Analysis Models for Batch Processing Data.
Rolling Back Data in an ERD
The following instructions explain how to roll back all the data in a table, so that you can change an attribute's data type.
Warning |
---|
If you want to clear some but not all data, see Rollback Recordsets for what to do. |
- Open the properties of the table you want to clear.
For example, in the ERD, click on the table. - In the table properties toolbar, click
to open the menu.Insert excerpt _more_options _more_options nopanel true - Select
. PhixFlow opens a window listing all the recordsets.Insert excerpt _recordsets_show _recordsets_show nopanel true - Right-click on the first run that you want to roll back and select
Recordset.Insert excerpt _rollback _rollback nopanel true - PhixFlow opens the Rollback window.
- Select Rollback all data.
- Untick Keep Old Streamsets
- If you are sure you want to clear all data, click Confirm.
Reimport or Add More Data
To import data to PhixFlow, create an analysis model. Add a file collector to import data into a table.
- In your application Home page, click Analysis.
- Click
. PhixFlow guides you through the process of creating and naming an analysis model.Insert excerpt _add _add nopanel true - In the model toolbar, click
to list the tables in your application.Insert excerpt _table_calculatetables _table_calculatetables nopanel true - Drag a table onto the canvas.
- Mouse-over the table to display the popup toolbar. Click
.Insert excerpt _table_show_inputs _table_show_inputs nopanel true - PhixFlow add a
to the model.Insert excerpt _file_collector _file_collector nopanel true - Mouse-over the file collector to display the popup toolbar. Click
.Insert excerpt _file _file nopanel true - PhixFlow opens file browser window. Navigate to your file and click Open then
.Insert excerpt _upload_file _upload_file nopanel true - Mouse-over the table again and select
.Insert excerpt _run_analysis _run_analysis nopanel true - PhixFlow runs the analysis model to load the file into the table. Check that the data has loaded correctly; see Viewing Data in a Table.