function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
The_A-RodThe_A-Rod 

Multiple beans for dataloader using the command line


Each <bean> in the process-conf.xml file refers to a single process such as an insert, upsert, export, and so on. Therefore, this file can contain multiple processes.

My question is, what is the syntax for having multiple beans in the same xml file?

The xml below is taken from the user guide, so for arguements sake, lets say I want a 2nd bean, in the same file. Does it simply go on the end (after line 28)? Or does it need to go between certain tags? Sadly the user guide is no help!!

01 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
02 <beans>
03     <bean id="csvInsertArtist"
04           class="com.salesforce.dataloader.process.ProcessRunner"
05           singleton="false">
06         <description>Inserts artist names from CSV file into Artist custom object.</description>
07         <property name="name" value="csvInsertArtist"/>
08         <property name="configOverrideMap">
09             <map>
10                 <entry key="sfdc.debugMessages" value="false"/>
11                 <entry key="sfdc.debugMessagesFile" value="c:\dataloader\csvInsertArtist.log"/>
12                 <entry key="sfdc.endpoint" value="https://www.salesforce.com"/>
13                 <entry key="sfdc.username" value="<i>Your Salesforce ID</i>"/>
14                 <entry key="sfdc.password" value="<i>Your encrypted Salesforce password</>"/>
15                 <entry key="sfdc.timeoutSecs" value="540"/>
16                 <entry key="sfdc.loadBatchSize" value="200"/>
17                 <entry key="sfdc.entity" value="Artist__c"/>
18                 <entry key="process.operation" value="insert"/>
19                 <entry key="process.mappingFile" value="c:\dataloader\artistmap.sdl"/>
20                 <entry key="process.outputError" value="c:\dataloader\errorInsertArtist.csv"/>
21                 <entry key="process.outputSuccess"value="c:\dataloader\successInsertArtist.csv"/>
22                 <entry key="dataAccess.name" value="c:\dataloader\Artists_1_100.csv" />
23                 <entry key="dataAccess.type" value="csvRead" />
24                 <entry key="process.initialLastRunDate" value="2007-06-06T00:00:00.000-0800"/>
25             </map>
26         </property>
27    </bean>
28 </beans>
Best Answer chosen by The_A-Rod
NagaNaga (Salesforce Developers) 
Hi A_Rod,

Please see the sample code below for multiple beans in XML

User-added imagePlease see the below link for more info

http://gaganbansalblog4u.com/2013/08/15/schedule-data-loader-in-salesforce/

Best Regards
Naga Kiran

All Answers

NagaNaga (Salesforce Developers) 
Hi A_Rod,

Please see the sample code below for multiple beans in XML

User-added imagePlease see the below link for more info

http://gaganbansalblog4u.com/2013/08/15/schedule-data-loader-in-salesforce/

Best Regards
Naga Kiran
This was selected as the best answer
The_A-RodThe_A-Rod
Perfect. Thanks Naga.

I tried Google, but obviously not thoroughly enough!