この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

ステップ 4: 設定ファイルを作成する

使用可能なエディション: Salesforce Classic および Lightning Experience
使用可能なエディション: Enterprise Edition、Performance Edition、Unlimited Edition、Developer Edition、および Database.com Edition

データローダのコマンドラインインターフェースは、Windows でのみサポートされています。

メモ

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

    異なる XML エディタを使って process-conf.xml ファイルを編集する場合は注意してください。一部のエディタは、ファイルの始めと終わりに XML タグを追加するため、インポートに失敗します。

    警告