CSV file requirements
Keep these considerations in mind when you prepare a CSV file to be imported into the application.
Quick checklist
Ensure your CSV file meets all formatting requirements to be imported successfully. More information about each requirement is covered below.
Done | Requirement |
---|---|
The CSV file is less than 50 MB. | |
Include required columns:
|
|
If you plan to pipe first and last names
into emails and these values do not already exist in the system for the email
recipients, the CSV file has columns called
FirstName and
LastName .
|
|
None of the column headers use reserved system variables or keywords unless:
|
|
The CSV file uses the same CSV delimiter specified in your personal user settings. | |
Each row is on a separate line. | |
There are no duplicate emails. | |
|
|
Text values are formatted correctly, and the Text profile variables already exist in the application. | |
Multiple Choice variables are formatted correctly. | |
Date values are formatted correctly, and the Date profile variables already exist in the application. | |
No Calculated Dates are included. Importing Calculated Dates is not supported. | |
Number values are formatted correctly, and the Number profile variables already exist in the application. | |
Identity values are unique, and the Identity profile variables already exist in the application. | |
For non-Latin character sets, you've used a program other than Excel to create the CSV file so it imports correctly. |
Maximum file size
The CSV file size cannot exceed 50 MB. As long as the file does not exceed the maximum file size, there is no limit on the number of rows.
Required columns
- Generally, the CSV file
must include a column called
MemberId
orEmail
. - If you are performing a
system upload to change members' email addresses, the CSV file must include
both
MemberId
andEmail
. - If you are performing a
system upload to switch members' communities, the CSV file must include a
column called
Community
.
To import the CSV file successfully, each row must have values for required columns. The values cannot be empty.
Column | Description |
---|---|
MemberId
|
Upon importing the CSV file, the system checks whether there
is a
|
Email
|
If your CSV file does not have a
Note: Unless you are
performing a system upload, email addresses are not
updated when you import a CSV file, so that members' current email addresses
are not overwritten accidentally. To find out if an email address in your CSV
file does not match a member's current email address, download the Errors and
Alerts file that was generated from your import. You can then update your
external system's records.
|
Community
|
If you only have one Community or you are not performing the
aforementioned tasks,
|
The following table describes what happens to members and profile variables when you import a CSV file.
If the CSV file contains | Then |
---|---|
A new email address | A prospective member is added with a status of nonmember. |
An existing email address | The application updates the member and profile variables associated with that email address to match what is in the CSV file. |
An old email address | The application keeps track of all email addresses, old and new, that have been associated with members and nonmembers at any point in time. When the application detects an old email address in a CSV file, it updates the member and profile variables associated with that email address to match what is in the CSV file. The current email address stored in the application does not change to match what is in the CSV file, unless you are performing a system upload. Instead, an Errors and Alerts file is generated notifying you of the outdated email address. |
A new profile variable | The profile variable is added to the
application, and can then be used:
If a profile variable has been renamed but the CSV file uses the old profile variable name, the application will create a new profile variable under the old name upon import, instead of merging the values into the renamed profile variable. |
An existing profile variable | The application updates or adds variable
values.
This process is case-insensitive. For example, if the file
contains
|
FirstName and LastName
If
FirstName
and
LastName
values were added to the system previously,
you do not need to include these columns. However, if these values do not exist
for members or recipients of ad hoc activity invitations, you can add them
using these column names:
FirstName
LastName
PanelistName
to import members' first and last names.
System variables
The columns in your CSV file cannot use the same names as system variables, unless you are performing a system upload. If you attempt to import a CSV file that contains columns with the same names as system variables, the import will fail. For more information, see System variables and Perform a system upload.
Rows and columns
You must use commas as delimiters between values and separate lines for each row.
Required or recommended CSV columns can be in any column of the CSV
file. As long as the columns are named correctly (MemberId
,
Email
,
FirstName
,
LastName
), the system will detect them and import them
correctly.
Single Choice variables
A member can have a single value for each profile variable.
By default, profile variables are imported as Single Choice variables unless they are formatted as Text, Multiple Choice, Date, or Number variables as described in the sections below.
Keep these considerations in mind when you are formatting single choice variable data:
- Use a distinct column header for each new Single Choice variable you import.
- To update values for an existing profile variable the column header must exactly match the profile variable name.
- If a value previously existed for a member, you cannot import a blank value to overwrite it.
-
Ensure that you do not to inadvertently create a Multiple Choice variable or convert an existing Single Choice variable to a Multiple Choice variable. This can happen if you use the
attributeName_attributeValue
column naming convention required for Multiple Choice variables for Single Choice variables.For example, specifying
device_iPhone
,device_android
, anddevice_blackberry
creates a Multiple Choice variable nameddevice
with three choices (iPhone
,android
,blackberry
) if the import values match the requirements for Multiple Choice questions. For more information, see Multiple Choice variables.
Example |
---|
You are importing information about each member's favorite color and prepare the following CSV file. When you import the CSV file, one Single Choice profile variable
named
|
Text variables
A member can have an open-ended text value for a profile variable.
Multiple Choice variables
A member can have multiple values for one profile variable.
Keep these considerations in mind when you are formatting multi-choice variable data:
- For every multi-choice
value, create a column header called
attributeName_attributeValue
. - There must be at least two
corresponding
attributeName_attributeValue
column headers for the data to be imported as multi-choice. - If you have
attributeName
orattributeName_
as a column header, it will read as an error when you try to import the file. - To denote which
multi-choice values are selected or cleared, use these sets of binary values in
the rows.
Selected Not Selected Usage Notes 1
0
true
false
Values must be lowercase. yes
no
Values must be lowercase. - Use blank spaces to indicate no data exists for a member.
Example |
---|
You are importing information about members' favorite colors and prepare the following CSV file. When you import the CSV file, the profile variable
|
Date variables
Date and time values follow the
ISO
8601 format
(YYYY-MM-DDThh:mm:ssZ
).
Example |
---|
Note:
|
Number variables
Numeric values with and without decimals are supported. Do not use commas or symbols (such as dollar signs).
- Before importing numeric values, you must create a Number profile variable with the same name.
- Microsoft Excel truncates numbers over 15 digits, so digits over the limit will display as zeros. However, this display limit will not affect the system recalling the information and opening the CSV file using a text editor will confirm the actual figure.
Identity variables
Identity profile variables let you assign a unique identity value to members.
Use Identity profile variables if:
- You already have unique IDs in an external system, and you want to map member records between systems.
- You want members to add unique identifying information (for example, a social media handle or a phone number).
- You want to use something
other than
Email
orMemberId
to identify members.
Examples of possible Identity values include:
- Twitter handle
- Loyalty card number
- Customer ID
- Phone number
There are no character limitations.
Non-Latin character sets
Windows | Mac |
---|---|
|
|