Creating data in CSV format

You can create data for loading into your database with the Data Load utility in a CSV formatted file. The easiest way to create this data is to download a sample CSV file to use as a starting point.

Before you begin

Review the CSV format that is described in the following topic:

About this task

In your CSV file, you must specify the business object that you are loading information about and include the object data that you are loading. To specify the business object, you must include a keyword that associates your input file with a mediator that is used to load your data.

Procedure

  1. Download a sample CSV file to use as your starting point. Save the sample CSV file with a new name in a folder on your computer. If you are loading data for a business object type that does not have a sample, create an empty file to include your CSV formatted data.
    You can download a sample CSV file from the File format for Data Load input files topic.
  2. In a text or spreadsheet editor, open the CSV file that you downloaded or created.
  3. Optional: Edit the first row in your file to specify a keyword that identifies the type of business object that you are loading. The keyword is optional for the Data Load utility, but you are recommended to include the keyword when one is applicable. By specifying a keyword, you can load the CSV file with the Data Load utility or provide the file to business users to edit and use with the Management Center Catalog Upload feature.
    When you are specifying a keyword, select one of the following keywords. These keywords are case-sensitive, so ensure that you type the keyword exactly as shown:
    • Feature Pack 5 or laterAttachment
    • Feature Pack 5 or laterAttachmentAsset
    • Feature Pack 8AttachmentAssetLanguage
    • Feature Pack 8AttachmentDescription
    • AttributeDictionaryAttributeAllowedValues
    • AttributeDictionaryAttributeAndAllowedValues
    • Feature Pack 6 or laterAttributeDictionaryAttributeFolderRelationship
    • Catalog
    • CatalogDescription
    • CatalogGroup
    • Feature Pack 5 or laterCatalogGroupAsset
    • CatalogGroupAssociation
    • Feature Pack 5 or laterCatalogGroupAttachment
    • CatalogGroupCalculationCode
    • CatalogGroupDescription
    • CatalogGroupRelationship
    • Feature Pack 5 or laterCatalogGroupSEO
    • CatalogEntry
    • Feature Pack 5 or laterCatalogEntryAsset
    • CatalogEntryAssociation
    • CatalogEntryATPInventory
    • Feature Pack 5 or laterCatalogEntryAttachment
    • CatalogEntryAttributeDictionaryAttributeRelationship
    • CatalogEntryCalculationCode
    • CatalogEntryComponent
    • CatalogEntryDescription
    • CatalogEntryDescriptiveAttributeAndValue
    • Feature Pack 5 or laterCatalogEntryDescriptionOverride
    • Feature Pack 8CatalogEntryDescriptionUpdate
    • CatalogEntryInventory
    • CatalogEntryOfferPrice
    • CatalogEntryParentCatalogGroupRelationship
    • CatalogEntryParentProductRelationship
    • Feature Pack 5 or laterCatalogEntrySEO
    • Feature Pack 8CatalogEntryUpdate
    • CatalogFilter
    • CatalogFilterCategory
    • CatalogFilterCatentry
    • CatalogFilterCondition
    • CatalogFilterConditionGroup
    • ListPriceList
    • Feature Pack 8MarketingActivity
    • Feature Pack 8MarketingCampaign
    • Feature Pack 8MarketingContent
    • Feature Pack 8MarketingContentAttachment
    • Feature Pack 8MarketingContentAttachmentDescription
    • Feature Pack 8MarketingContentDescription
    • Feature Pack 8MarketingContentImageMap
    • Feature Pack 8MarketingElement
    • Feature Pack 8MarketingElementNVP
    • Feature Pack 8MarketingSpot
    • Feature Pack 8MarketingSpotDefaultContent
    • Feature Pack 8MarketingSpotDefaultTitle
    • Feature Pack 8MemberGroup
    • Feature Pack 8MemberGroupCondition
    • Feature Pack 8MemberGroupDescription
    • Offer
    • ProductDefiningAttributeAndAllowedValues
    • SKUDefiningAttributeValue
  4. Optional: In the second row, edit the column headers that are mandatory for identifying the data for a business object. Add or remove any optional column headings to match the data values that you are loading.
    For more information about the columns that you can specify for any supported types of business objects, see the topics under the Data Load utility CSV column and XML element definitions topic. If you are creating a CSV file for a custom business object type, or loading multiple types of business objects, the column headings must match the column mappings in your business object configuration file.
  5. Delete the sample data in the third row and all subsequent rows of data in your CSV file.
  6. Starting with the third row, specify the values for your business objects in the mandatory and optional columns.
    If you are specifying a string that includes spaces or special characters as a column value, enclose the string in the configured tokenValueDelimeter character. The tokenValueDelimiter is used to indicate the beginning and the end of a string. The default tokenValueDelimiter character is the double quotation mark ("). For example, the following string includes commas and white spaces and is enclosed in the tokenValueDelimeter:
    "Men's fashions for business, casual, and formal occasions"
    For more information about the tokenValueDelimeter, see Configuring the CSV data reader.
  7. Save your CSV file.

Results

The CSV file is created in a suitable format for use with the Data Load utility. When you load the file, the keyword and the column headers are interpreted but are not loaded into the database.