はじめに
You can create a CSV DataSet Job in Workbench 4. When you select CSV as your Data Source type, you can specify the file path of the CSV data source and configure options such as delimiters, missing field handling, etc.注記: CSVファイルは必ず以下のとおりになっている 必要があります 。
- テキストファイルであること
- データが単一の文字で区切られている。区切り文字は 高度な設定で指定します 。
パート2(全4パート)
パート3(全4パート)
パート4(全4パート)
Connecting to CSV Data
Workbench 4 でCSV DataSetジョブを作成するには、- Click Add New in the DataSet Jobs grouping in the Buttons toolbar at the top of the Workbench window. This opens the Workbench DataSet Job Creation Wizard.
- (条件付) 要求されたら、Domoサーバーを選択します。 (This screen only appears if you have more than one server set up in Workbench.)
- In the DataSet Job Name field, enter a name for the DataSet Job. これは、Workbench で表示されるジョブ名です。Domo にアップロードされた DataSet 名ではありません。
- In the DataSet Name field, enter the name of the DataSet. これは、DomoにアップロードされたDataSet名です。
-
Select the desired update method in the Update Method menu:
- Select Replace DataSet if you want the DataSet to be replaced entirely upon updating.
- Select Append to DataSet if you want new data to be added to the existing data set upon updating.
-
In the Transport Method menu, select Local File Provider, External Process File Provider, or FTP/SFTP File Provider.
これらトランスポート方法の詳細は、以下のとおりです。
- Click Next.
- In the Data Source menu, select CSV.
- In the DataSet Type field, select the type of DataSet in the dropdown or enter a custom name. ここで選択または入力するDataSetのタイプは、ジョブ実行後のDomoのコネクタータイプに反映されます。
-
(Optional) Enter a description in the DataSet Description field.
Note: You can change any of the settings you made in the above steps in the Source panel for the DataSet Job after you complete all of the steps in the Wizard except the transport method.
- Click Next. A new CSV DataSet Job is added to the list of jobs for the currently authenticated server in the Accounts pane.
- Under the CSV DataSet Job that was just added to the jobs list, select Source. A panel opens with options for configuring your file transport and setting options for your CSV data source.
-
(条件付き)以下のいずれかを行ってください。
-
If you selected Local File Provider as your Transport Method…
- [ファイルパス] フィールドで省略記号(…)をクリックします。
- 自分のマシンまたはネットワークからCSVファイルを選択します。
-
If you selected External Process File Provider as your Transport Method…
- [プログラムの実行可能ファイル] フィールドで省略記号(…)をクリックします。
- 自分のマシンまたはネットワークから実行可能ファイルを選択します。
- (オプション)引数がある場合は [引数] フィールドに入力します。
- [出力ファイルパス] フィールドで省略記号(…)をクリックします。
- 自分のマシンまたはネットワークの出力ファイルパスを選択します。 出力パスのファイルタイプは、CSVである 必要があります 。
-
If you selected FTP/ SFTP File Provider as your Transport Method…
- [サーバー] フィールドにサーバー名を入力します。
- [ポート] フィールドにポート番号を入力します。
- [ユーザー名] および [パスワード] にサーバーの認証情報を入力します。
- プロトコルを選択します([FTP] 、 [SFTP] 、または [FTPS] )。
- (オプション)SSL証明書がある場合は([SFTP] と [FTPS] のみ)、必要に応じて設定します。 詳細については、「 SFTPファイルプロバイダー 」を参照してください。
- [リモートファイル] フィールドに、インポートするフィールドのファイル名を入力します。
-
If you selected Local File Provider as your Transport Method…
- Click Apply Changes.
- [フィールド区切り文字] メニューで、CSVファイルで使われている区切り文字を該当するラジオボタンで選択します。カスタマイズされた区切り文字を設定するには、 [その他] ラジオボタンをクリックし、フィールドに区切り文字を入力します。
- [フィールドをカプセル化する:] フィールドで、カプセル化するのに使用する文字を指定します。
- (オプション)[エスケープシーケンス文字] フィールドで、エスケープに使用する文字を指定します。
- (オプション)[コメント文字] フィールドで、コメントに使用する文字を選択します。
-
[欠落フィールドの処理] セクションで、CSVファイルで欠落フィールドに遭遇した場合の対処方法を、ラジオボタンから選択します。
- セル範囲の最初の行に列ヘッダーがある場合は、ボックスにチェックを入れたままにします。それ以外は、ボックスをクリアします。列ヘッダーは、その列のデータを参照するために使用されるので、Domoでカードを作成する際、これは重要になります。 詳細については、「 DataSet列をチャートに適用する 」を参照してください。
- If you want Workbench to skip empty lines in your CSV file when sending the data to Domo, check the box for Sanitize data before processing; otherwise leave it unchecked.
- (Optional) In the Ignore starting rows field, specify the number of rows to skip at the beginning of the data so you can start importing a specific row. This does not include the header row containing the column names.
- (オプション)[末尾行を無視する] フィールドで、データの最後でスキップする行数を指定します。
- [テキストエンコード] メニューで、CSVファイルで使用される文字エンコーディングを指定します。