+ Start a Discussion
jaanvivekjaanvivek 

Having issue while inserting record using data loader through command line.

Hi Everyone,

 

I am facing below mentioned error while running data loader through command line.

 

258 [main] ERROR com.salesforce.dataloader.process.ProcessConfig  - Error loading process: insertQuestion configuration from config file: C:\Program Files\sales
force.com\Apex Data Loader 23.0\QuestionInsert\process-conf.xmlorg.springframework.beans.factory.BeanDefinitionStoreException: Line 25 in XML document from file [C:\Program Files\salesforce.com\Apex Data Loader 23.0\Questio
nInsert\process-conf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The content of element type "bean" must match "(description?,(construct
or-arg|property|lookup-method|replaced-method)*)".org.xml.sax.SAXParseException: The content of element type "bean" must match "(d
escription?,(constructor-arg|property|lookup-method|replaced-method)*)".

 


below in process-conf file code

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="insertQuestion">
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>Accounts Extraction practise on 8 june 2012</description>
<property name="name" value="insertQuestion"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.debugMessages" value="false"/>
<entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
<entry key="sfdc.username" value="vivek.pandey@sfdc.com"/>
<entry key="sfdc.password" value="ae6c33e4ccb8f2d8f5cd55ad1b3f9d0fd493b81bd454b6aa571601f85d8b1c0bae730de9d5a3f7b8"/>
<entry key="process.encryptionKeyFile" value="C:\Program Files\salesforce.com\Apex Data Loader 23.0\QuestionInsert\key.txt"/>
<entry key="sfdc.timeoutSecs" value="600"/>
<entry key="sfdc.loadBatchSize" value="200"/>
<entry key="sfdc.entity" value="Question__c"/>
<entry key="process.operation" value="insert"/>
<entry key="process.mappingFile" value="C:\Program Files\salesforce.com\Apex Data Loader 23.0\QuestionInsert\questionInsertMap.sdl" /> 
<entry key="dataAccess.name" value="C:\Program Files\salesforce.com\Apex Data Loader 23.0\QuestionInsert\Question.csv"/>
<entry key="dataAccess.type" value="csvRead"/>
</map>
</property>
</bean>
</beans>

  I have made available all necessary files also like-

 

1- question.bat

2- questionInsertMap.sdl

3-key.txt

4-Question.csv

 

 

Could anyone help to solve it.

 

 

Thanks,

JaanVivek

Best Answer chosen by Admin (Salesforce Developers) 
jaanvivekjaanvivek

It has been resolved. I found the problem.

 

The below tag was creating problem

<bean id="insertQuestion">
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">

 Correct tag-

 

<bean id="insertQuestion"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">

 

I hope every one got it.

 

 

Thanks & happy Learning,

JaanVivek