6.8 Import/export
You can import or export lists of FAQ articles (knowledge articles in Ops I) and categories as CSV files.
You can save lists of FAQ articles and categories at a given point in time to files, or create and edit multiple FAQ articles or categories at once.
In an environment where you perform import/export, use a template according to your purpose. You can either use a preprepared template or create a new one. The ITSM application provides the following three templates.
Export: The values of the mapped FAQ articles are recorded in the CSV file.
Import: The content of FAQ articles for which the "FaqNumber" listed in the CSV file matches the "FaqNumber" in the import destination environment is updated. If the "FaqNumber" listed in the CSV file does not exist in the import destination environment, it will be imported as is, with the "FaqNumber" listed in the CSV file.
Export: The values of the mapped FAQ articles are recorded in the CSV file.
Import: A new "FaqNumber" is assigned, and the FAQ article is added.
Export: The values of the mapped categories are recorded in the CSV file.
Import: If the category name does not exist in the import destination environment, it is imported.
For details on the values set in ① to ③, see the table in this section.
This section describes the following items.
(1) Creating a template
A template is a set of rules that defines the types of objects in OTOBO and the mapping of their fields to information in input and output files, as well as the format of the files. If you use prepared templates ① to ③, you do not need to create a new template. If necessary, you can edit templates ① to ③ for use.
Create a template by using the following procedure.
Select [Admin] from the main menu, and then click [Administration] - [Import/Export]. On the [Import/Export Management] screen, click the [Add template] button. Follow the transition display and fill in the following fields.
(Table) Edit common information
| Field | Required | Description |
|---|---|---|
| Name | Yes | Template name Enter any name. ① Overwrite FAQ articles (Built-in template) ② Add FAQ articles (Built-in template) ③ Add categories (Built-in template) |
| Object | Yes | Select "FAQ" or "Category". ① FAQ ② FAQ ③ Category |
| Format | Yes | Select "CSV". ① to ③: CSV |
| Valid | Yes | Select "valid". ① to ③: valid |
| Comment | No | Enter any comments. ① to ③: Blank |
(Table) Edit object information
| Field | Required | Description |
|---|---|---|
| Empty fields indicate that the current values are kept | Yes | When you update existing FAQ articles or categories, the impact on fields that are not selected as keys (items subject to import/export) is as follows:
|
| Do not update existing FAQ*1 | Yes | If you select the checkbox, each FAQ article whose "FaqNumber" is matched is not updated. An error occurs if the identifier is not set, such as when the "FaqNumber" is left blank in the CSV file. ①②: Not selected |
| Do not update existing Category*2 | Yes | If you select the checkbox, each category that has the same "Name" is not updated. ③: Selected |
| Import/Export attachments (as the last entries per line)*1 | Yes | Select the checkbox if you want to import/export the attachments. ①②: Selected |
(Table) Edit format information
| Field | Required | Description |
|---|---|---|
| Column Separator | Yes | Specify "Comma (,)". ① to ③: Comma (,) |
| Charset | Yes | Select "UTF-8". ① to ③: UTF-8 |
| Include Column Headers | Yes | Select "Yes". ① to ③: Yes |
Click [Add Mapping Element] and add the corresponding fields to the columns in the CSV file. For details, see "Edit mapping information".
You can set the following keys for FAQ articles and categories. For details on the setting values in prepared templates ① to ③, see the description column.
(Table) List of keys for FAQ articles
| Key | Required | Description |
|---|---|---|
| FaqNumber | No | Unique number assigned to the FAQ article This is recognized as an identifier. ① Mapped ② Not mapped |
| Title | Yes | Title of the FAQ article ① Mapped ② Mapped <Description in the CSV file> You can enter a maximum of 200 characters in total, regardless of whether they are single-byte or double-byte characters. |
| Keywords | No | Keyword of the FAQ article ① Mapped ② Mapped <Description in the CSV file> You can enter a maximum of 200 characters in total, regardless of whether they are single-byte or double-byte characters. |
| Validity | Yes | Validity setting of the FAQ article ① Mapped ② Mapped <Description in the CSV file> Enter the corresponding number.
|
| Language | Yes | Language of the FAQ article ① Mapped ② Mapped <Description in the CSV file> Enter the corresponding number.
|
| CreatedOn | No | Time when the FAQ article was created (in UTC format) ① Not mapped ② Not mapped <Description in the CSV file> Enter in the format "YYYY/MM/DD hh:mm:ss". |
| UpdatedOn | No | Time when the FAQ article was updated (in UTC format) ① Not mapped ② Not mapped <Description in the CSV file> Enter in the format "YYYY/MM/DD hh:mm:ss". |
| Symptom | No | FAQ article event ① Mapped ② Mapped <Description in the CSV file> There is no limit to the number of characters that can be entered. |
| Problem | No | FAQ article problem ① Mapped ② Mapped <Description in the CSV file> There is no limit to the number of characters that can be entered. |
| Solution | No | Solution of the FAQ article ① Mapped ② Mapped <Description in the CSV file> There is no limit to the number of characters that can be entered. |
| Comment | No | Comment on the FAQ article ① Mapped ② Mapped <Description in the CSV file> There is no limit to the number of characters that can be entered. |
| Category* | Yes | FAQ article category ① Mapped ② Mapped |
| ViewedNumber | No | Number of times the FAQ article was viewed ① Not mapped ② Not mapped |
| State | Yes | FAQ article state ① Mapped ② Mapped <Description in the CSV file> Enter the corresponding number.
|
(Table) List of keys for categories
| Key | Required | Description |
|---|---|---|
| Name | Yes | Category name This is recognized as an identifier. ③ Mapped <Description in the CSV file> Categories at each hierarchical level are displayed with the categories separated by "::". For each separated category name, you can enter a maximum of 50 characters in total, regardless of whether they are single-byte or double-byte characters. |
| Label(ja) | No | Category display name (Japanese) ③ Mapped <Description in the CSV file> You can enter a maximum of 50 characters in total, regardless of whether they are single-byte or double-byte characters. |
| Label(en) | No | Category display name (English) ③ Mapped <Description in the CSV file> You can enter a maximum of 50 characters in total, regardless of whether they are single-byte or double-byte characters. |
| Validity | Yes | Validity setting of the category ③ Mapped <Description in the CSV file> Enter the corresponding number.
|
| Comment | Yes | Comment on the category ③ Mapped <Description in the CSV file> You can enter a maximum of 80 characters in total, regardless of whether they are single-byte or double-byte characters. |
| CustomerID*1 | No | Category customer ③ Mapped |
| UserGroup*2 | No | Category user group ③ Mapped |
| CreatedOn | No | Time when the category was created (in UTC format) ③ Not mapped <Description in the CSV file> Enter in the "YYYY/MM/DD hh:mm:ss" format. |
| UpdatedOn | No | Time when the category was updated (in UTC format) ③ Not mapped <Description in the CSV file> Enter in the "YYYY/MM/DD hh:mm:ss" format. |
The following shows an example of the CSV file if you import/export it by using a template that meets the following conditions:
- Object: FAQ
- Format: CSV
- Import/Export attachments (as the last entries per line): Selected
- Column Separator: Comma (,)
- KEY: FaqNumber, Title, Keywords, Validity, Language, CreatedOn, UpdatedOn, Symptom, Problem, Solution, Comment, State
- FAQ1 (with no attachments)
- FAQ2 (with two attachments)
- FAQ3 (with one attachment)
"10001","FAQ1","Test FAQ","1","3","2025/7/18 12:00","2025/7/18 12:00","This FAQ is test data.","This FAQ is test data.","This FAQ is test data.","This FAQ is test data.","2"
"10002","FAQ2","Test FAQ","1","3","2025/7/18 12:00","2025/7/18 12:00","This FAQ is test data.","This FAQ is test data.","This FAQ is test data.","This FAQ is test data.","2","Filename###dGVzdDEudHh0###ContentType###YXBwbGljYXRpb24vb2N0ZXQtc3RyZWFt###Content###dGVzdDFmaWxlDQrjgZPjgozjga/jg4bjgrnjg4jjgafjgZk=###Inline###0###","Filename###dGVzdC50eHQ=###ContentType###YXBwbGljYXRpb24vb2N0ZXQtc3RyZWFt###Content###dGVzdGZpbGUNCuOBk+OCjOOBr+ODhuOCueODiOOBp+OBmQ==###Inline###0###"
"10003","FAQ3","","1","3","2025/7/18 12:00","2025/7/18 12:00","This FAQ is test data.","This FAQ is test data.","This FAQ is test data.","This FAQ is test data.","2","Filename###dGVzdDEudHh0###ContentType###YXBwbGljYXRpb24vb2N0ZXQtc3RyZWFt###Content###dGVzdDFmaWxlDQrjgZPjgozjga/jg4bjgrnjg4jjgafjgZk=###Inline###0###"
In addition, the images attached to the [Symptom], [Problem], [Solution], [Comment] of the FAQ article are exported as follows by using HTML tags.
Note
- Field names when FAQ articles or categories are created/edited are primarily in Japanese, but the possible values displayed for the key on the mapping information configuration screen are in English. The values in the header line of the output CSV file will also be in English.
- FAQ articles and categories that contain values outside the specification range will result in an error and will not be imported.
- Ensure that the order in which the keys are selected in the import destination environment matches the order of columns in the CSV file.
- If you create your own CSV file for import, such as by importing from environments other than Ops I, follow the preceding specifications. In addition, if there are unnecessary columns (such as columns containing items not set as keys in the Ops I template), delete those columns entirely.
If you want to limit the export objects, select the [Restrict export per search:] checkbox and set the search conditions in the remaining fields.
All search conditions are AND conditions. If there are no matching objects for the conditions, only the header information will be exported.
In prepared templates ① to ③, no search conditions are set.
You can set the following search conditions for FAQ articles and categories.
(Table) List of search conditions for FAQ articles
| Field | Description |
|---|---|
| Restrict export per search | If you select this checkbox, search conditions are applied. |
| Keywords | FAQ articles that have the [Keywords] that exactly matches the entered value are specified. |
| Language | FAQ articles that have the [Language] that matches the selected value are specified. |
| Category | FAQ articles that have the category that matches the selected value are specified. FAQ articles that belong to the parent category of the selected category are not included. |
| State | FAQ articles that have the [State] that matches the selected value are specified. |
| Validity | FAQ articles that have the [Validity] that matches the selected value are specified. |
| FAQ Create Time (after) | FAQ articles created after the entered time are specified. |
| FAQ Create Time (before) | FAQ articles created before the entered time are specified. |
| FAQ Last Change Time (after) | FAQ articles updated after the entered time are specified. |
| FAQ Last Change Time (before) | FAQ articles updated before the entered time are specified. |
(Table) List of search conditions for categories
| Field | Description |
|---|---|
| Restrict export per search | If you select this checkbox, search conditions are applied. |
| Subcategory of | Categories that have the [Subcategory of] that matches the selected value are specified. |
| Validity | Categories that have the [Validity] that matches the selected value are specified. |
| Customer | Categories that have the [Customer] that matches the selected value are specified. |
| User group | Categories that have the [User group] that matches the selected value are specified. |
| Category Create Time (after) | Categories created after the entered time are specified. |
| Category Create Time (before) | Categories created before the entered time are specified. |
| Category Last Change Time (after) | Categories updated after the entered time are specified. |
| Category Last Change Time (before) | Categories updated before the entered time are specified. |
(2) Export FAQ articles and categories
Select [Admin] from the main menu, and then click [Administration] - [Import/Export] to go to the [Import/Export Management] screen, where a list of templates will be displayed.
Click [Export] in the [START EXPORT] column of the template to be exported to download a CSV file based on the template settings.
CSV file size limits and handling
- File size:
The size of a CSV file that can be imported is up to 500 MB. If you want to import the exported CSV file as is, adjust the file size to be within 500 MB. For FAQ articles that include attachments, the limit is 700 entries. The approximate number of categories or FAQ articles is within 700 for each. - Timeout:
If the CSV file size is large, import or export processing might take 30 minutes or longer and time out. - Handling timeouts:
- Export: Set the search conditions, and split the file to export it.
- Import: Even if a timeout occurs, internal processing might continue. Wait a moment, and then check the FAQ articles and categories. If any items are missing, import them by using provided templates ① and ③.
- If you export data, a UTF-8 encoded file (CSV format) with no BOM is downloaded. If you open this file in a text editor, it will be displayed normally. However, if you open the file in Excel, character corruption will occur, so encode the file to UTF-8 with BOM and save it again.
- If you use the search information settings to filter categories, only those categories will be subject to export. Parent categories and subcategories will not be exported.
- Ensure that appropriate values are written in the corresponding columns of the CSV file.
- If there are fields that are required due to creating a new class or editing a class, the CSV file must contain the appropriate values, including the mapping elements for those fields.
- Importing CSV files does not allow the deletion of FAQ articles and categories.
- The voting information for imported FAQs will be reset.
- You can import CSV files up to 500 MB at a time. The approximate number of FAQ articles or categories in a CSV file is within 700. A timeout occurs if the import takes 30 minutes or longer. For details on the procedure in such cases, see "CSV file size limits and handling".
- If images are attached to the [Symptom], [Problem], [Solution], [Comment] of the FAQ article, also select the "Import/Export attachments (as the last entries per line)" checkbox. If the checkbox is not selected, the attached images will not be imported. Instead of the attached images, corrupted image icons will be displayed.
- Note the following when updating entries:
- CreatedOn will not be imported regardless of whether it is mapped.
- If the "Empty fields indicate that the current values are kept" checkbox is not selected and UpdatedOn is not mapped, the import time will be used for UpdatedOn.
- Note the following when creating new entries:
- Selection of the "Empty fields indicate that the current values are kept" checkbox will have no effect.
- If you map CreatedOn and UpdatedOn, the time described in the CSV file is used for CreatedOn and UpdatedOn respectively.
- If you do not map CreatedOn and UpdatedOn, the import time is used for CreatedOn and UpdatedOn respectively.
Note
(3) Import FAQ articles and categories
Select [Admin] from the main menu, and then click [Administration] - [Import/Export] to go to the [Import/Export Management] screen, where a list of templates will be displayed.
Click [Import] in the [START IMPORT] column of the template to be imported and select the CSV files to be imported to retrieve and import the FAQ articles and category information from the CSV files based on the template settings.
Categories are structured hierarchically, so in the CSV file, list the higher-level categories in rows above the lower-level categories. In addition, FAQ articles that have no categories will result in an error and will not be imported. For this reason, import categories before importing FAQ articles.
If one or more imports are successful, the import summary for FAQ articles and categories will display the number of successful imports and the number of failed imports. If the import itself fails, the cause of the error will be displayed.
You can check the details of partial import failures and import failures themselves by selecting [Admin] from the main menu, and then selecting [Administration] - [System Log]. However, the number of entries that can be displayed is around 200, so check the log immediately after the import. Also, if data is missing from the imported file due to incorrect character encoding in a CSV file, this fact will be displayed in the log. Therefore, we recommend that you check the log even if the import was successful.
If there are any failed FAQ articles or categories, identify the objects and causes, make corrections, and import them again.
To create new FAQ articles or categories in a CSV file, write the following items.
Note
(4) Use cases
The following are examples of prepared template use. ① to ③ indicate the following templates:
① Overwrite FAQ articles (Built-in template)
② Add FAQ articles (Built-in template)
③ Add categories (Built-in template)
For details, see “Create a template”.
To register FAQ articles prepared in advance in the sandbox environment to the production environment where no FAQ articles are registered, perform the following procedure.
To register FAQ articles for new customers prepared in advance in the sandbox environment to the production environment where no FAQ articles for new customers are registered, perform the following procedure. Note that, if you individually registered FAQ articles in the production environment, the "FaqNumber" values might overlap between the sandbox environment and the production environment. For this reason, make sure that the "FaqNumber" values do not conflict.
If you want to update in the sandbox environment FAQ articles that were imported from the sandbox to the production environment, and apply the updates to the production environment, perform the following procedure. In this case, the same FAQ articles are already registered in the production environment, so specify the same "FaqNumber" values to update them.
If you individually created FAQ articles in the production environment and the "FaqNumber" values do not match between the sandbox environment and the production environment, manually change the "FaqNumber" value to match those of the production environment, and then import them.
To register FAQ articles individually created in the production environment to the sandbox environment, perform the following procedure.
If you want to update in the production environment FAQ articles that were imported from the production environment to the sandbox environment, and apply the updates to the sandbox environment, perform the following procedure. In this case, the same FAQ articles are already registered in the sandbox environment, so specify the same "FaqNumber" values to update them.
Note that, if you individually created FAQ articles in the sandbox environment and the "FaqNumber" values do not match between the sandbox environment and the production environment, manually change the "FaqNumber" value to match those of the sandbox environment, and then import them.
To register FAQ articles prepared in an environment other than Ops I to Ops I where no FAQ articles are registered, such as when migrating FAQ articles from a customer's existing environment to Ops I, perform the following procedure.
At this time, encode the file paths of the attachments in Base64.
To register categories prepared in advance in the sandbox environment to the production environment where no categories are registered, perform the following procedure.
To register categories individually created in the production environment to the sandbox environment, perform the following procedure.