2012-08-28 87 views
2

当通过API创建一个新的批量作业,我得到一个InvalidEntity为例外码这是不是在SFDC's docs(PDF)SFDC bulk api中导致InvalidEntity异常的原因是什么?

我做了以下要求

https://na13-api.salesforce.com/services/async/24.0/job 

<?xml version="1.0" encoding="UTF-8"?> 
<jobInfo xmlns="http://www.force.com/2009/06/asyncapi/dataload"> 
    <operation>query</operation> 
    <object>Campaign</object> 
    <concurrencyMode>Parallel</concurrencyMode> 
    <contentType>CSV</contentType> 
</jobInfo> 

我得到这样的回应:

<?xml version="1.0" encoding="UTF-8"?><error 
    xmlns="http://www.force.com/2009/06/asyncapi/dataload"> 
<exceptionCode>InvalidEntity</exceptionCode> 
<exceptionMessage>Entity 'Campaign' is not supported by the Bulk API.</exceptionMessage> 
</error> 

我已经排除了头,但我有接受&内容编码指定为gzip和当它被发送和接收的内容gzip压缩。

的要求正常工作的

  • 联系
  • 机会
  • 任务
  • 事件
  • OpportunityContactRole
  • 帐户
  • 营aignMember
  • 简介
  • 记录类型
  • 用户

我只得到上面显示该异常:

  • 运动
  • UserLicense
  • OpportunityStage
  • OpportunityHistory
  • LeadHistory

我只使用批量API下载CSV的出销售团队的,我只尝试了上面的实体,因为我不需要任何人。

+0

嗨保罗,同样的问题在这里。我在AccountHistory上获得InvalidEntity。我认为这与实体的“只读”性质有关。这不应该阻止SELECTs。但是,对于bulk-api选择,您还需要管理员权限,所以我认为问题与只读性有些关系。 – RobAu

回答

0

它已经很长时间了,但是我认为如果你的一个外键关系不正确,你可以得到这个异常。

相关问题