Update a Customer Attributes Dataset

This content is only for clients with the one-click DATASETS option in the top navigation bar. If you click DATASETS and see Product Data and Customer Data listed as menu options, then this content doesn't apply to your account. Instead, see Update or Replace a Customer Dataset.

You may find it necessary to update a Customer Attributes dataset, perhaps with more customers with actionable data or with new information about the customers already captured in the dataset.

The type of update you need to perform determines the method(s) available for accomplishing the task.

Updating or Adding Rows

Perhaps you need to update the values that appear in the recently_viewed_products attribute in a dataset for customer IDs (cust_id) 111 and 115. Therefore, you need to update the rows for those two customer IDs, which you can accomplish through a partial update.

Two rows from a Customer Attributes dataset spreadsheet that includes the cust_id attribute and recently_viewed_products attribute

Maybe instead of updating attribute values, you need to add data for customers with the IDs 116, 117, and 118. Each customer ID represents a new row, which you can upload to the dataset through a partial update.

Three rows from a customer data spreadsheet that contain information for customer IDs 116, 117, and 118

If you need to add or replace rows of customer information within a dataset, you can perform a partial update through the Data API, via SFTP, or using the Upload Data wizard in the platform.

For more information about using the Data API for an update, refer to Update a Customer Attributes Dataset via the Data API. See Update a Customer Attributes Dataset via SFTP for more information about using an account's specific SFTP setup to send an update.

When using the Upload Data wizard to add or update rows in a product catalog dataset, you can either drag and drop a file directly into the wizard, or you can input a URL to a dataset file that you store on Amazon S3. Regardless of which of these two upload options you select, the file that you use must be in the CSV or TSV format.

Updating Attributes

Perhaps the dataset update you need to perform entails adding information about whether or not each customer made a purchase in the last month. That information is captured in the purchased_in_last_month attribute, which currently the dataset doesn't include.

Callout of the purchased_in_last_month column in a customer data spreadsheet

Whether you need to add one or multiple attributes to a Customer Attributes dataset, you have two options to accomplish this task:

  • Send a full file update using the Data API
  • Use the Add Attribute modal accessible from the dataset's details page

You cannot use the Data Update wizard to add attributes to a Customer Attributes dataset. You can only use the wizard to remove attributes. See Removing Attributes in this documentation for more information.

Removing Attributes

If you need to remove attributes from a Customer Attributes dataset, then you can upload a full file update using the Upload Data wizard within the platform.

You cannot remove the attribute set as the Unique ID. If you want a dataset that doesn't include the attribute selected as the Unique ID, then you must create a new dataset.

Even though removing attributes from a dataset rebuilds the dataset schema, you must ensure the full update still matches the order of attributes in the existing schema. Furthermore, you cannot revise the data type for any existing attributes

You cannot edit existing attribute names, their corresponding data type, nor can you change the Unique ID or Identifier Name. If you need to change any of these aspects, then create a new dataset.

When using the Upload Data wizard to remove attributes, you can either drag and drop a file directly into the wizard, or you can input a URL to a dataset file that you store on Amazon S3. Regardless of which of these two upload options you select, the file that you use must be in the CSV or TSV format.

Failed Updates

If the platform encounters an error with the update, you see UPDATE FAILED in multiple places within the platform:

  • In the LAST UPDATED column for the dataset's entry on the Customer Attributes view of the Datasets list page

    Callout of the 'UPDATE FAILED' message for a Customer Attributes dataset on the Customer Attributes list page

  • In place of the last update's timeframe on the dataset's details page

    Callout of the 'UPDATE FAILED' message on a Customer Attributes dataset's details page

  • In the UPLOAD DATE column in the Update History table on the Update History tab

    Callout of the 'UPDATE FAILED' message in the Update History table of the Update History tab of a Customer Attributes dataset's details page

Click that message to view the File Upload Error modal containing the reason(s) for the failure.

Example of the File Upload Error modal for Customer Attributes dataset update failure

Refer to Customer Dataset Upload Requirements to ensure the update file conforms to the criteria for this type of dataset.

Table of Contents