+ Start a Discussion
Rich13Rich13 

Batch process error with CampaignMember object extraction

Hi ,

I am trying to create a batch process to extract record IDs from CampaignMember Object from Command line. But it is throwing the folliwng error. Could you please help 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

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,

While running the batch you need to use the process name which you have given in the beanId. By looking at your bean file your using bean Id as csvCampaignMemberExtractProcess.

give the process as csvCampaignMemberExtractProcess and run your batch like below example

eg: Bat file name "conf path" Process Name i.e. Process.bat "C:\Users\xxxxxxxx\Desktop\Test2\conf" csvCampaignMemberExtractProcess