ステップ 4: 設定ファイルを作成する
| 使用可能なエディション: Enterprise Edition、Performance Edition、Unlimited Edition、Developer Edition、および Database.com Edition |
process-conf.xml ファイルには、データローダがデータを処理するために必要な情報が含まれています。process-conf.xml ファイルの各 <bean> は、挿入、更新/挿入、エクスポートなどの単一の処理を参照するため、このファイルには、複数の処理が含まれることがあります。このステップでは、Salesforce に取引先を挿入するためのファイルを編集します。
- \samples\conf ディレクトリから process-conf.xml ファイルをコピーします。元のファイルには更新/挿入やエクスポートなどの他の種類のデータローダが含まれているため、必ずそのファイルをコピーしてください。
- テキストエディタでファイルを開き、次の XML の内容に置き換えます。
1swfobject.registerObject("clippy.codeblock-0", "9"); 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> 18<beans> 19 <bean id="accountInsert" 20 class="com.salesforce.dataloader.process.ProcessRunner" 21 singleton="false"> 22 <description>accountInsert job gets the account record from the CSV file 23 and inserts it into Salesforce.</description> 24 <property name="name" value="accountInsert"/> 25 <property name="configOverrideMap"> 26 <map> 27 <entry key="sfdc.debugMessages" value="true"/> 28 <entry key="sfdc.debugMessagesFile" 29 value="C:\DLTest\Log\accountInsertSoapTrace.log"/> 30 <entry key="sfdc.endpoint" value="https://servername.salesforce.com"/> 31 <entry key="sfdc.username" value="admin@Org.org"/> 32 <!--Password below has been encrypted using key file, 33 therefore, it will not work without the key setting: 34 process.encryptionKeyFile. 35 The password is not a valid encrypted value, 36 please generate the real value using the encrypt.bat utility --> 37 <entry key="sfdc.password" value="e8a68b73992a7a54"/> 38 <entry key="process.encryptionKeyFile" 39 value="C:\DLTest\Command Line\Config\key.txt"/> 40 <entry key="sfdc.timeoutSecs" value="600"/> 41 <entry key="sfdc.loadBatchSize" value="200"/> 42 <entry key="sfdc.entity" value="Account"/> 43 <entry key="process.operation" value="insert"/> 44 <entry key="process.mappingFile" 45 value="C:\DLTest\Command Line\Config\accountInsertMap.sdl"/> 46 <entry key="dataAccess.name" 47 value="C:\DLTest\In\insertAccounts.csv"/> 48 <entry key="process.outputSuccess" 49 value="c:\DLTest\Log\accountInsert_success.csv"/> 50 <entry key="process.outputError" 51 value="c:\DLTest\Log\accountInsert_error.csv"/> 52 <entry key="dataAccess.type" value="csvRead"/> 53 <entry key="process.initialLastRunDate" 54 value="2005-12-01T00:00:00.000-0800"/> 55 </map> 56 </property> 57 </bean> 58</beans> -
process-conf.xml ファイル内の次のパラメータを編集します。プロセス設定パラメータについての詳細は、「データローダプロセスの設定パラメータ」を参照してください。
- sfdc.endpoint: 組織の Salesforce インスタンスの URL (https://na1.salesforce.com など) を入力します。
- sfdc.username: データローダ がログインに使用するユーザ名を入力します。
- sfdc.password: ステップ 2 で作成した、暗号化パスワードの値を入力します。
- process.mappingFile: 対応付けファイルのパスとファイル名を入力します。
- dataAccess.Name: インポートする取引先を含むデータファイルのパスとファイル名します。
- sfdc.debugMessages: 現在、トラブルシューティングの目的で、true に設定されています。インポートの実行を開始した後は、これを false に設定します。
- sfdc.debugMessagesFile: コマンドラインのログファイルのパスとファイル名を入力します。
- process.outputSuccess: 成功ログファイルのパスとファイル名を入力します。
- process.outputError: エラーログファイルのパスとファイル名を入力します。