• Mohit_Bansal
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies

Hi

 

I am using Salesforce Professional Edition, in which it doesn't allow to write Apex Classes and Triggers.

 

My requirement is to Automate LeadConvert Process, Below is the flow of requirement.

 

1. User enter some information on Web-to-Lead form, and on Submit, it will create Lead in salesforce.

2. As a new Lead is created in salesforce, it should get automatically converted in to Account, Contact and opportunity.

 

As in Salesforce professional edition, it doesn't allow to write an Trigger or Apex code, so cannot automate it by writing apex code or trigger on lead.

 

So can anyone help me out in this, as i need to automate this lead conversion process, whenever any user submits a record through web-to-Lead?

 

 

Thanks

 

Regards

Mohit Bansal

Hello All

 

Please help me in this issue. When i am tring to load data in salesforce.com through Command line (DataLoader), its showing me this below error, which is related to class. I am using the DataLoader version 20.0:: ...........

 

 

C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin>process ..\conf Insert RecordsinAccount 2010-10-01 12:42:24,887 INFO [main] controller.Controller initLog (Controller.j ava:375) - The log has been initialized 2010-10-01 12:42:24,887 INFO [main] process.ProcessConfig getBeanFactory (Proce ssConfig.java:78) - Loading process configuration from config file: C:\Program F iles\salesforce.com\Apex Data Loader 20.0\bin\..\conf\process-conf.xml 2010-10-01 12:42:24,966 INFO [main] xml.XmlBeanDefinitionReader loadBeanDefinit ions (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from file [C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin\..\conf\process-conf .xml] 2010-10-01 12:42:25,012 INFO [main] core.CollectionFactory (Collection Factory.java:66) - JDK 1.4+ collections available 2010-10-01 12:42:25,028 INFO [main] core.CollectionFactory (Collection Factory.java:71) - Commons Collections 3.x available 2010-10-01 12:42:25,106 INFO [InsertAccount] controller.Controller initConfig ( Controller.java:336) - The controller config has been initialized 2010-10-01 12:42:25,122 INFO [InsertAccount] process.ProcessRunner run (Process Runner.java:91) - Initializing process engine 2010-10-01 12:42:25,122 INFO [InsertAccount] process.ProcessRunner run (Process Runner.java:94) - Loading parameters 2010-10-01 12:42:26,481 INFO [InsertAccount] config.LastRun load (LastRun.java: 101) - Last run info will be saved in file: C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin\..\conf\InsertAccount_lastRun.properties 2010-10-01 12:42:26,497 FATAL [main] process.ProcessRunner topLevelError (Proces sRunner.java:212) - Unable to run process InsertAccount java.lang.RuntimeException: java.lang.IllegalArgumentException: No enum const cl ass com.salesforce.dataloader.action.OperationInfo. at com.salesforce.dataloader.process.ProcessRunner.ru​n(ProcessRunner.jav a:137) at com.salesforce.dataloader.process.ProcessRunner.ru​n(ProcessRunner.jav a:75) at com.salesforce.dataloader.process.ProcessRunner.ma​in(ProcessRunner.ja va:227) Caused by: java.lang.IllegalArgumentException: No enum const class com.salesforc e.dataloader.action.OperationInfo. at java.lang.Enum.valueOf(Enum.java:192) at com.salesforce.dataloader.config.Config.getEnum(Co​nfig.java:439) at com.salesforce.dataloader.config.Config.getOperati​onInfo(Config.java: 975) at com.salesforce.dataloader.process.ProcessRunner.ru​n(ProcessRunner.jav a:98) ... 2 more C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin> ...........................

 

 

The below is my process-conf.xml:::

 

Insert Records in Account Object from CSV file through Command Line

 

 "

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dt​d">
<beans default-lazy-init="false" default-autowire="no" default-dependency-check="none">
   
  <bean
      class="com.salesforce.dataloader.process.ProcessRu​nner"
      singleton="false"  lazy-init="default" autowire="default" dependency-check="default">
    <description> Insert Records in Account Object from CSV file through Command Line </description>
 
  <property value="InsertAccount" />
  <property>
    <map>
      
        <entry key="sfdc.connectionTimeoutSecs" value="60"/>
        <entry key="sfdc.username" value="mohit.bansal@hcl.in.test1" />
        <entry key="sfdc.password" value="9fbaf20cfb2a22e8ad8a3b39836bc71c" />
        <entry key="process.encryptionKeyFile" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\KeyFile.txt"  />
        <entry key="process.outputSuccess" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\SuccessFile.csv" />
        <entry key="sfdc.loadBatchSize" value="100" />
        <entry key="dataAccessName" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\dumpydata1.csv" />
        <entry key="process.useEuropeanDates" value="true" />
        <entry key="dataAccess.readBatchSize" value="100" />
        <entry key="sfdc.maxRetries" value="3" />
        <entry key="process.outputError" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\ErrorFile.csv" />
        <entry key="sfdc.endpoint" value="https://test.salesforce.com"/>
        <entry key="dataAccess.Type" value="csvRead" />
        <entry key="process.Operation" value="insert" />
        <entry key="sfdc.extractionRequestSize" value="200" />
        <entry key="truncateFields" value="true" />
        <entry key="sfdc.entity" value="Account" />
        <entry key="sfdc.enableRetries" value="true" />
        <entry key="sfdc.timeoutsecs" value="1000" />
        <entry key="process.enableLastRunOutput" value="true" />
        <entry key="process.mappingfile" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\AccountMapping.sdl" />
   </map>
  
  </property>

 </bean> 

</beans>"

 

Please let me know, why i am getting this error. .

Hello All

 

Please help me in this issue. When i am tring to load data in salesforce.com through Command line (DataLoader), its showing me this below error, which is related to class. I am using the DataLoader version 20.0::

 

...........

C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin>process ..\conf Insert
RecordsinAccount
2010-10-01 12:42:24,887 INFO  [main] controller.Controller initLog (Controller.j
ava:375) - The log has been initialized
2010-10-01 12:42:24,887 INFO  [main] process.ProcessConfig getBeanFactory (Proce
ssConfig.java:78) - Loading process configuration from config file: C:\Program F
iles\salesforce.com\Apex Data Loader 20.0\bin\..\conf\process-conf.xml
2010-10-01 12:42:24,966 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinit
ions (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from file
 [C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin\..\conf\process-conf
.xml]
2010-10-01 12:42:25,012 INFO  [main] core.CollectionFactory <clinit> (Collection
Factory.java:66) - JDK 1.4+ collections available
2010-10-01 12:42:25,028 INFO  [main] core.CollectionFactory <clinit> (Collection
Factory.java:71) - Commons Collections 3.x available
2010-10-01 12:42:25,106 INFO  [InsertAccount] controller.Controller initConfig (
Controller.java:336) - The controller config has been initialized
2010-10-01 12:42:25,122 INFO  [InsertAccount] process.ProcessRunner run (Process
Runner.java:91) - Initializing process engine
2010-10-01 12:42:25,122 INFO  [InsertAccount] process.ProcessRunner run (Process
Runner.java:94) - Loading parameters
2010-10-01 12:42:26,481 INFO  [InsertAccount] config.LastRun load (LastRun.java:
101) - Last run info will be saved in file: C:\Program Files\salesforce.com\Apex
 Data Loader 20.0\bin\..\conf\InsertAccount_lastRun.properties
2010-10-01 12:42:26,497 FATAL [main] process.ProcessRunner topLevelError (Proces
sRunner.java:212) - Unable to run process InsertAccount
java.lang.RuntimeException: java.lang.IllegalArgumentException: No enum const cl
ass com.salesforce.dataloader.action.OperationInfo.
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:137)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:75)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:227)
Caused by: java.lang.IllegalArgumentException: No enum const class com.salesforc
e.dataloader.action.OperationInfo.
        at java.lang.Enum.valueOf(Enum.java:192)
        at com.salesforce.dataloader.config.Config.getEnum(Config.java:439)
        at com.salesforce.dataloader.config.Config.getOperationInfo(Config.java:
975)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:98)
        ... 2 more
C:\Program Files\salesforce.com\Apex Data Loader 20.0\bin>

 

...........................

 

The below is my process-conf.xml:::

 

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-lazy-init="false" default-autowire="no" default-dependency-check="none">
   
  <bean
      class="com.salesforce.dataloader.process.ProcessRunner"
      singleton="false"  lazy-init="default" autowire="default" dependency-check="default">
    <description> Insert Records in Account Object from CSV file through Command Line </description>
 
  <property value="InsertAccount" />
  <property>
    <map>
      
        <entry key="sfdc.connectionTimeoutSecs" value="60"/>
        <entry key="sfdc.username" value="mohit.bansal@hcl.in.test1" />
        <entry key="sfdc.password" value="9fbaf20cfb2a22e8ad8a3b39836bc71c" />
        <entry key="process.encryptionKeyFile" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\KeyFile.txt"  />
        <entry key="process.outputSuccess" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\SuccessFile.csv" />
        <entry key="sfdc.loadBatchSize" value="100" />
        <entry key="dataAccessName" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\dumpydata1.csv" />
        <entry key="process.useEuropeanDates" value="true" />
        <entry key="dataAccess.readBatchSize" value="100" />
        <entry key="sfdc.maxRetries" value="3" />
        <entry key="process.outputError" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\ErrorFile.csv" />
        <entry key="sfdc.endpoint" value="https://test.salesforce.com"/>
        <entry key="dataAccess.Type" value="csvRead" />
        <entry key="process.Operation" value="insert" />
        <entry key="sfdc.extractionRequestSize" value="200" />
        <entry key="truncateFields" value="true" />
        <entry key="sfdc.entity" value="Account" />
        <entry key="sfdc.enableRetries" value="true" />
        <entry key="sfdc.timeoutsecs" value="1000" />
        <entry key="process.enableLastRunOutput" value="true" />
        <entry key="process.mappingfile" value="C:\Program Files\salesforce.com\Apex Data Loader 20.0\conf\AccountMapping.sdl" />
   </map>
  
  </property>

 </bean> 

</beans>

 

Please let me know, why i am getting this error.