大量API错误:InvalidBatch:找不到字段名称:Id

时间:2018-06-28 11:18:27

标签: salesforce bulkupdate

我正在尝试通过批量api更新联系人记录的一个字段-Ext_Id__c。我们创建了具有两列的csv文件,并且标题名称中没有空格。

我正在创建作业,并通过一个简单的Java客户端将批处理推送到该作业。刺戳和批次已成功创建,但是并没有更新联系人,而是在错误下方显示了

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
{
    print("hello welcome on this news page")

    // dismiss(animated: true, completion: nil)

    if data[indexPath.row].name == "Entertainment"
    {
         let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main)
         let destination = storyboard.instantiateViewController(withIdentifier: "WhiteViewController") as! FourthViewController
         navigationController?.pushViewController(destination, animated: true)
         dismiss(animated: true, completion: nil)
         print("Welcome on Business..!")
    }
}

我在两个字段上都具有字段级别的所有必要访问权限。谁能帮忙吗?

1 个答案:

答案 0 :(得分:0)

问题是,我们正在上传的csv文件使用“ CSV UTF-8(逗号分隔(.csv))”格式保存:

请参阅旧格式:1

并且由于这个原因,系统无法将第一列标题识别为有效字段-不知道为什么,可能不适合Bulk API V1.0

因此,作为解决方案,我们将文件保存为纯csv格式,即-“逗号分隔值(.csv)”,

这是新格式:2

这解决了问题!

相关问题