Configuration Experiment #D2
Goal
The goal of this experiment is to help you understand how configuration changes impact transactions. For this challenge, you will use a production workspace and enter some configuration. When asked to write down something, please copy the value to a document (along with the step #), as you will be using those values later on.
Difficulty
Easy.
Preparation
Create a CSV file with the following:
- Date,Owner,Revenue,Customer
- 2021-01-01,Daniel Martinez,100,A
- 2021-01-01,Daniel Martinez,100,B
- 2021-02-01,Daniel Martinez,1000,C
- 2021-02-01,Daniel Martinez,1000,D
As you can see, each record does NOT have a Unique ID. Each customer name is different, but some dates and amounts are the same.
Steps
- Go to Account > My Workspaces
- Create a production workspace
- Go to Transactions > Add Transactions
- Import your CSV file
- Note that you are being warned that there is no Unique ID
- Select the Date as the Unique ID field
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why is there only 2 transactions (we uploaded 4)?
- Select "Delete Transactions" (use the dropdown menu)
- Delete all transactions
- Go to Transactions > Add Transactions
- Import your CSV file again
- Note that you are being warned that there is no Unique ID
- Select both the Customer and Date as the Unique ID fields
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why are there 4 transactions now (instead of 2 previously)?
- Go to Transactions > Add Transactions
- Import your CSV file again
- Note that you are being warned that there is no Unique ID
- Continue to select both the Customer and Date as the Unique ID fields
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why are there still only 4 transactions (no duplicates) after re-importing the same CSV file?
- Go to Transactions > Add Transactions
- Edit your CSV file
- Change the first row's Revenue to from 100 to 999
- Import your CSV file again
- Note that you are being warned that there is no Unique ID
- Continue to use both the Customer and Date as the Unique ID fields
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why are there still only 4 transactions (i.e. no duplicates created)?
- Was the right transaction updated (with a Revenue of 999)?
- Go to Transactions > Add Transactions
- Edit your CSV file
- Change the first row's Customer from "A" to "XXX"
- Import your CSV file again
- Note that you are being warned that there is no Unique ID
- Continue to use both the Customer and Date as the Unique ID fields
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why are there 5 rows now?
- Select "Delete Transactions" (use the dropdown menu)
- Delete all transactions
- Go to Transactions > Add Transactions
- Import your CSV file again
- Note that you are being warned that there is no Unique ID
- Uncheck all fields for the Unique ID (empty selection)
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why are there 4 rows?
- Go to Transactions > Add Transactions
- Edit your CSV file
- Change the first row's Customer from "XXX" to "YYY"
- Import your CSV file again
- Note that you are being warned that there is no Unique ID
- Continue to uncheck all fields for the Unique ID (empty selection)
- Wait 10 seconds for the import to finish
- Go to Transactions > All Transactions
- Write down how many transactions are present
- Why are there 5 rows now?
Key Learnings
- If there is no Unique ID in the data, we can either
- Choose a set of fields
- Do NOT choose any fields
- If we do choose a set of fields
- We will generate Unique IDs using a combination of selected fields
- This combination identifies records for the purpose of a/ updating them and b/ preventing duplicates
- The chosen combination should be stable and truly unique, otherwise duplicates will be created when corrections are made to the data, and data is re-uploaded
- If we do NOT choose any fields
- We will generate Unique IDs using all fields (basically a checksum of the entire row)
- Therefore, uploading the exact same data many times will not lead to duplicates
- However, changing ANY field and re-uploading will lead to duplicates
- Most CRM systems have a unique ID for each record so this mostly applies to CSV imports
Related Articles
Configuration Experiment #D1
Goal The goal of this experiment is to help you understand how configuration changes impact transactions. For this challenge, you will use a production workspace and enter some configuration. When asked to write down something, please copy the value ...
Configuration Experiment #V6
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a production workspace and enter some configuration. When asked to write down something, please copy the ...
Configuration Experiment #D3
Goal The goal of this experiment is to help you understand how configuration changes impact transactions. For this challenge, you will use a production workspace and enter some configuration. When asked to write down something, please copy the value ...
Configuration Experiment #V5
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V3
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...