Adapter Tool ⭐️

Verify that the input data matches the expected output, guaranteeing the correct column names and data types.

Updated over a week ago

About the Adapter Tool

The adapter tool is a powerful feature designed to validate data and compatibility between the steps of your analysis. By using the adapter tool, you can verify that the input data matches the schema expected by the next step of your analysis, guaranteeing that downstream steps in your process have the correct column names and data types. In this guide, we will walk you through the process of setting up and configuring the adapter tool to effectively validate your data.


Configuration

  1. To begin, add an Adapter tool to your Canvas.

  2. Tick the box to Pass through Unmapped Fields: This will ensure that any new fields in subsequent datasets are passed through the Adapter tool and downstream in the Analysis.

  3. Bootstrap the Adapter tool: This action sets the schema of the input as the required configurations of the Adapter tool.

  4. Take a look at the Field Mappings section: When unlocked, you'll find field specifications. When locked, these field specifications will be locked.

  5. You can now specify the Field Specifications:

    1. Choose a Field Name to be used in the Analysis.

    2. Select Required if you need the field to exist in the dataset subsequent to the Adapter tool.

    3. Select the Data Type to specify the data type of the field.

    4. Choose the Mapped From field that is assigned to the current specified field in the configuration.

  6. Finally, click Apply.

Don't forget to confirm that unmapped fields are selected as blank (e.g., “---”).


Bootstrapping the Adapter Tool

To begin using the adapter tool, the first step is to bootstrap it. This is done by clicking the bootstrap button, typically located within the tool's interface. When you initiate the bootstrap process, the tool analyzes the schema and data from the input source, converting them into the requirements for the adapter.

During this process, you have several options to consider. For example, if there are unmatched fields between the adapter's expected fields and the CSV file you are using, you can choose whether those fields should be passed through or not. This configuration gives you flexibility in handling field mismatches.

Additionally, you can edit the configuration by clicking the corresponding button. This allows you to specify which fields are required.

👌 For instance, if you decide that the ID and name fields are essential, you can mark them as required in the configuration

1. Navigate to your analysis.

2. Click this icon.

3. Click Adapter to add it to the Canvas.

4. Click "Bootstrap"

5. Click "Apply"

Linking New Data to the Adapter Tool

Once you have set up the adapter tool using the bootstrap process, the next step is to link new data to it. Suppose your analysis involves reading data from a file system or using a template. In that case, this step becomes crucial in ensuring that the adapter tool processes the correct information.

To link new data, you need to remove the existing data source and add a different data set.

👌 For example, let's say you want to add a Contacts data set. In the interface, you can delete the previous leads data and import the new Contacts data.

When you look at the adapter tool after linking the new data, you will notice that some fields have been automatically mapped over. This means that the adapter recognized matching fields between the previous and new data sets.

👌 For example, if the ID field in the adapter corresponds to the ID field in the new data set, it will be automatically mapped.

However, some fields may require manual mapping. You can identify these unmapped fields by reviewing the adapter's interface.

👌 For instance, if there is a Company field in the new data set but no corresponding mapping in the adapter, you will need to manually map it.

To map a field, simply locate it in the new data set and connect it to the appropriate field in the adapter. In cases where a field is missing or not applicable, you can leave it unmapped. Once you have made the necessary mappings, click the apply button to save the changes.

After applying the mappings, the adapter tool will have the output it expects, including only the mapped fields. This step ensures that the adapter processes the data correctly according to your requirements.

Ensuring Successful Data Validation

By mapping the fields correctly, you can avoid errors during the data validation process. For example, if an essential field like email is left unmapped or blank, it will trigger an error. To prevent this, ensure that all required fields are mapped appropriately before proceeding with further steps.

If you encounter any issues or require further assistance, consult the tool's documentation or reach out to our support team for personalized guidance. Happy data validation!

Did this answer your question?