+ Start a Discussion
Rich13Rich13 

Batch process error for CampaignMember object

Hi ,

I am trying to create a batch process to extract record IDs from CampaignMember Object from Command line. But it throwing the folliwng errors. Could you please me on this.

2014-01-27 06:21:39,237 INFO  [main] controller.Controller initLog (Controller.java:388) - The log has been initialized
2014-01-27 06:21:39,244 INFO  [main] process.ProcessConfig getBeanFactory (ProcessConfig.java:103) - Loading process configuration from config file: C:\users\
stanikanti\desktop\test2\process-conf.xml
2014-01-27 06:21:39,360 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinitions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from fi
le [C:\users\stanikanti\desktop\test2\process-conf.xml]
2014-01-27 06:21:39,398 ERROR [main] process.ProcessConfig getProcessInstance (ProcessConfig.java:96) - Error loading process: campaignMemberExtract configura
tion from config file: C:\users\stanikanti\desktop\test2\process-conf.xml
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'campaignMemberExtract' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:93)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:287)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:273)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:246)
2014-01-27 06:21:39,401 FATAL [main] process.ProcessRunner topLevelError (ProcessRunner.java:238) - Failed to create process
com.salesforce.dataloader.exception.ProcessInitializationException: Error loading process: campaignMemberExtract configuration from config file: C:\users\stan
ikanti\desktop\test2\process-conf.xml
        at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:97)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:287)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:273)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:246)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'campaignMemberExtract' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:93)
        ... 3 more
SwaroopaSwaroopa
Process Name campaignMemberExtract which your giving while running the batch is not available in process-conf.xml. cross check the process-conf.xml file
Rich13Rich13
Hi ,

Below is the code I am using. Please help me on this error? (Coommand I am using is > Process.bat "path for process-conf.xml" campaignMemberExctract)

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="csvCampaignMemberExtractProcess"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">


<property name="name" value="csvCampaignMemberExtractProcess"/>
<property name="configOverrideMap">

<map>
<entry key="sfdc.debugMessages" value="true"/>
<entry key="sfdc.debugMessagesFile"
value="C:\Users\xxxxxxx\Desktop\Test2\campaignMemberExtractSoapTrace.log"/>

<entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
<entry key="sfdc.username" value="xxxx@xxxxxxx.com"/>

<entry key="sfdc.password" value="xxxxxxxxxxxxxxxxxxxxxxxxx"/>
<entry key="process.encryptionKeyFile"
value="C:\Users\xxxxxx\Desktop\Test2\Mykey.txt"/>

<entry key="sfdc.timeoutSecs" value="600"/>
<entry key="sfdc.loadBatchSize" value="200"/>



<entry key="sfdc.entity" value="campaignMember"/>


<entry key="sfdc.extractionRequestSize" value="500"/>

    <entry key="sfdc.extractionSOQL" value="Select Id FROM CampaignMember"/>

<entry key="process.operation" value="extract"/>

<entry key="process.mappingFile"
value="C:\Users\xxxxxxxxxxxxxxxx\Desktop\Test2\campaignMemberExtractMap.sdl"/>



<entry key="dataAccess.type" value="csvWrite"/>
<entry key="dataAccess.name" value="C:\Users\xxxxxxxx\Desktop\Test2\Extract.csv"/>

<entry key="process.initialLastRunDate"
value="2005-12-01T00:00:00.000-0800"/>
</map>
</property>
</bean>
</beans>
SwaroopaSwaroopa
Hi 

Use below format

Process.bat "path for process-conf.xml" csvCampaignMemberExtractProcess

Instead of campaignMemberExctract use csvCampaignMemberExtractProcess