SFDC Bluk job Error:Failed to process query: FUNCTIONALITY_NOT_ENABLED: Selecting compound data not supported in Bulk Query

执行bluk job 出现下面错误。。。

Failed to process query: FUNCTIONALITY_NOT_ENABLED: Selecting compound data not supported in Bulk Query

这里有一个解决方案,是屏蔽掉address类型的字段后执行soql。。很变态的sfdc,无语了。。

https://github.com/jsforce/jsforce/issues/380

js代码如下

conn.sobject(‘Account’).describe(function(ret) {
var fields = ret.fields.filter(function(f) {
return f.type !== ‘address’; // filter any fields you don’t want to include in query.
}).map(function(f) {
return f.name;
});
var soql = ‘SELECT ‘ + fields.join(‘, ‘) + ‘ FROM Account’;
return conn.bulk.query(soql);
})

python也是一样这样的错误。。。