On this Page

Overview

Data Preview helps you confirm that mapping and transformations are working as expected. At design time, when you save or validate a Pipeline, SnapLogic attempts to pass a sampling of the real data through all of the Snaps. You can preview the sample data output from any Snap that executed successfully and navigate through all Data Previews in the Pipeline. You can also preview the sample data from failed Snaps that output error documents.

SnapLogic encrypts the sample data before storing it to use in Data Preview. By default, the sample data includes the first 50 records from the input source, up to 15 MB in total size. If the number of documents to preview exceeds 15 MB, validation causes an error. Org admins can change the Org-wide setting for the number of preview documents in Admin Manager or disable pipeline validation. If not disabled, users can change the number of preview documents at the Project level in their User Settings, up to the value set by the Org admin in Admin Manager.

The Data Preview opens in a table. You can display it in JSON format or raw, unformatted. You can also use DataViz to render specific fields of preview data in the following visualizations:

Limitations with Numbers in Data Preview

In preview data, number fields do not always display the expected values:

Previewing Data

After saving or validating a Pipeline, preview the data that a Snap will pass down the Pipeline using the data preview icon (blue star) in the connector on the right side of the Snap:

Data preview

Open the Data Preview in one of the following ways:

To disconnect a Snap instead of displaying the data preview, position the cursor over the connection from the adjoining Snap.

By default, the data preview displays as a table. The Data Preview for some Snaps, such as file readers, displays the metadata instead of data values. The following example shows preview data values after passing through an Excel Parser Snap:

Data Preview Example

Use the controls on the Data Preview pane to:

Navigating through Snap Data Previews

Use the outer arrows at the bottom left of the data preview to navigate to the results for the next or the previous Snap:

Navigate Snap Data Previews

Viewing data in error documents

If a Snap fails to execute, you can preview data from the previous Snap error documents:

Setting the Number of Records to Preview

You can change the number of records to be shown in the Data Preview, up to a total size of 15 MB. Depending on the size of individual records, increasing the number can provide better visualization.

To change the number of records: 

  1. In the IIP, click the dropdown next to your username to open the menu:

  2. Select User Settings to open the Settings dialog:

  3. In the Settings dialog, click the Preview Document Count drop-down menu, and choose from the available values.

  4. Click Save.

Using DataViz

Save or validate a Pipeline, and open Data Preview for a Snap. Click DataViz and drag the cursor to the left or click the triangle at the top of the DataViz bar to display chart options:

The following sections describe how to use DataViz to configure charts:

Pie Chart

Pie charts reveal patterns by totaling the unique values in a field. Select a field that does not contain too many values. For example, selecting a Grade key, where there are only 16 possible values, makes a meaningful pie chart. However, selecting a Date key over three years of transactions would result in too many dates for the pie chart visualization to render the chart correctly.

If the field you choose to visualize contains too many unique values, the pie chart might fail to render.

To display preview data in a pie chart:

  1. Open Data Preview for a Snap.

  2. Click the triangle at the top of the DataViz bar.

  3. For Chart Type, select Pie Chart.

  4. Click Key to Visualize and choose the key for the values to represent in a pie chart.

Line Charts

A line chart reveals data trends. DataViz can render preview data in a line chart:

Line Chart for Numeric Fields

To display data in a line chart for a given state:

  1. Open Data Preview for a Snap.

  2. Click the triangle at the top of the DataViz bar.

  3. For Chart Type, select Line Chart.

  4. Click Key to Visualize.

  5. For each line, select a numeric field key.

Line Chart Over Time

To display data in a line chart with the date as the x-axis:

  1. Open Data Preview for a Snap.

  2. Click the triangle at the top of the DataViz bar.

  3. For Chart Type, select Line Chart - Date as X axis.

  4. For X-axis (date), select a temporal field (year, date, or time).

  5. Click Key to Visualize.

  6. Select the key for the y-axis values.

Bar Charts

DataViz provides two types of bar charts:

Bar Chart to Compare Values

To display preview data in a bar chart by numeric values:

  1. Open Data Preview for a Snap.

  2. Click the triangle at the top of the DataViz bar.

  3. For Chart Type, select Bar Chart - Count.

  4. Click Key to Visualize.

  5. Select the key field for the y-axis.

Bar Chart to Aggregate Data

With an aggregated bar chart, the y-axis displays the numeric value and the x-axis groups the bars by category. To display your data in a bar chart by group and by count:

  1. Open Data Preview for a Snap.

  2. Click the triangle at the top of the DataViz bar.

  3. For Chart Type, select Bar Chart - Group and Count.

  4. For Category, select the target type.

  5. For Group by, select the field to aggregate.

  6. Roll your cursor over the bars to display a range of the values per each category for the indexical relationship between the group key value and the number of entries for that value.

Scatter Chart

To display two fields of data in a scatter chart and aggregate by a third category:

  1. Open Data Preview for a Snap.

  2. Select Scatter Chart as the Chart Type.

  3. Select a data category from the X-Axis and Y-axis drop-down menus.

  4. Optionally, select a data category from the Group By menu.

  5. Roll over or click a data point to view values. The header shows the value for the Group by field, and the X- and Y- axis values appear below, separated by a comma. 

Data Preview Reference

Data Preview displays by default in a standard table with infinite scrolling capabilities.

Table Preview

Use the controls highlighted in the screenshot below as follows:

JSON Preview

If you change to JSON as the preview type, additional controls are available. Use the controls as follows:

Data Preview Options Example

The following video demonstrates Data Preview configuration options:

Troubleshooting Data Preview

If you have issues with data preview, check the following:


Related Topics