Skip to content

Table Function: Importing Records

Overview

This is an example of importing data from a simple employee list managed in Excel so that it can be managed in Pleasanter.

Operation Procedure

The general procedure is as follows.

  1. Open the employee list Excel data, select "Save As", and save it with one of the following file formats

    • "CSV (Comma Separated Values) (.csv)"
    • "CSV UTF-8 (Comma Separated Values) (.csv)"
  2. Create a recorded table for "Employee list"

  3. Set the columns in the Editor
  4. Import "Employee list.csv"
  5. Set the display columns of the list screen in the Grid

Notes

  • The title of the CSV data to be imported (the first line of the CSV data) must match the column name in Pleasanter.
    (Please match the column names displayed in the Editor, not in Manage Table - Grid)

  • For time-limited tables, the "Completed" column is required.
    (For recorded tables, there are no required columns)

  • When importing date data in year-month-day format, please use 4 digits for the year (yyyy-mm-dd).
    If the year is 2 digits, it cannot be imported correctly due to specifications.

Import Procedure

We will explain the following Excel data configuration as an example.

Example of the Excel data used as the import source

  1. Select the "Manage" - Manage Table - Editor tab.
  2. Due to the specifications of Pleasanter, "ID" and "Version" cannot be disabled, so leave these two columns, disable the others, and enable each column as follows.

    Pleasanter "Editor" setting screen
    Editor setting screen with the required columns enabled

  3. Change the settings of the enabled columns as follows. Select an enabled column and click the "Advanced Settings" button to set each column.

    Column name Data type Pleasanter column Setting column
    Employee ID String DescriptionA Style: Normal
    Name String Title
    Birthplace String DescriptionB Style: Normal
    Gender String CategoryA Options list: Male (Line break) Female
    Birth date Date DateA
    Age Numerical value NumA
  4. Set the contents of the option list of "Gender" (CategoryA) as follows.

    Option list of category A set to "Male" and "Female"

    Editor screen after setting the column names
    Editor screen after the column names have been set

  5. To import the data into Pleasanter, make the column names of the original data (CSV) match the column names in Pleasanter.

    How the column names in the CSV map to the column names in Pleasanter

    Warning

    Please set the column names on the Pleasanter side in the Editor, not in the Grid.

    Editor screen where the column names are set

    Please be careful not to confuse the column type and the column name in Pleasanter.

  6. Once the columns are set, click "Update" to return to the list screen, and click the "Import" button.

  7. When the dialog box appears, select the CSV file to import.
  8. Select the character code of the CSV file and click the "Import" button.

    Notes

    Check whether the CSV data to be imported is saved in Shift-JIS or in UTF-8, and select the format it is saved in from the "Character Code" field of the Pleasanter import dialog box shown below.

    Import dialog for choosing the CSV file and the character code

  9. When the import is completed, the records are displayed on the list screen as shown below.

    List screen showing the imported records

  10. Next, set the list screen so that it displays the same content as when the data was managed in Excel.

  11. Select the "Manage" - Manage Table - Grid tab. The default settings are as follows.

    Default settings on the "Grid" tab of Manage Table

    Set it to display all the columns imported this time, as follows. For this data example, enable the following columns. (All others are disabled.)

    • Employee ID
    • Name
    • Birthplace
    • Gender
    • Date of birth
    • Age
  12. After enabling the columns, click the "Update" button, and then click "Back" to display the list screen.

    "Grid" tab with all of the imported columns enabled

  13. The list is now displayed in the same way as the original Excel data.

    List screen showing every imported column

You have now transferred the Excel data to Pleasanter.

Things to check if the import does not go well

Data cannot be imported, or only part of it has been imported

  • Check that the column names set in the "Editor", not in "Manage Table" - "Grid", match the titles of the CSV data.

    Comparing the column names set in the Editor with the title row of the CSV

  • Check that the character code is selected correctly when importing.

    "Character Code" field of the import dialog

    If alphanumeric characters can be imported but Japanese cannot, the character code may be incorrect. If it does not work, try the other one.

  • For time-limited tables, a value is required for the "Completed" column.

    When importing data into a time-limited table, be sure to enter a value in the "Completed" column. 1

  • At Pleasanter.net, the number of records that can be imported in one import process is 10,000 rows.

    If you want to import more than 10,000 rows of data, please import them in groups of 10,000 rows.

  • Some columns are not imported even if values are set in the CSV file.

    See the table below for details.

    Column name When adding a record When updating a record
    ID Automatic numbering by Pleasanter Not updated
    Version Automatic numbering by Pleasanter Automatic numbering by Pleasanter
    Creator User who performed the import operation 2 Not updated
    Created date and time Date and time of the import operation 2 Not updated
    Updater User who performed the import operation 2 User who performed the import operation
    Update date and time Date and time of the import operation 2 Date and time of the import operation
    Comment Value in the CSV file 3 In the case of JSON format, updated by replacement
    In the case of string format, not updated

Supported Versions

Supported Versions Contents
1.4.18.0 and later Added the ability to update comments when updating records in CSV import

  1. There is no "Completed" column for recorded tables. ↩

  2. In migration mode, the values set in the CSV file can be imported. See "Importing Records in Migration Mode" for details. ↩↩↩↩

  3. The values can be imported with the JSON format data layout. See JSON Data Layout: Comment for details. ↩