尝试使用 Apex Data Loader 将数据从 Salesforce 传输到 Oracle 时不断收到以下错误:
26937 [databaseAccountExtract] FATAL com.salesforce.dataloader.dao.database.Data
baseContext - Error getting value for SQL parameter: nkey__c. Please make sure
that the value exists in the configuration file or is passed in. Database conf
iguration: insertAccount.
database-conf.xml 有以下 bean:
<bean id="insertAccount"
class="com.salesforce.dataloader.dao.database.DatabaseConfig"
singleton="true">
<property name="sqlConfig" ref="insertAccountSql"/>
<property name="dataSource" ref="dbDataSource"/>
</bean>
<bean id="insertAccountSql" class="com.salesforce.dataloader.dao.database.SqlConfig" singleton="true">
<property name="sqlString">
<value>
INSERT INTO VANTROPO.SF_ACCOUNTCHANNEL (nkey__c)
VALUES (@nkey__c@)
</value>
</property>
<property name="sqlParams">
<map>
<entry key="nkey__c" value="java.lang.String"/>
</map>
</property>
</bean>
SDL(映射文件)具有以下值:
# Account Insert Mapping values for query from Salesforce (left) and insert/update to Oracle (right)
# SalesforceFieldName=OracleFieldName
nkey__c=NKEY__C
任何帮助表示赞赏。