[英]import data from salesforce to databricks
我正在嘗試使用simple_salesforce將數據從 salesforce 導入數據塊。 它適用於具有較少字段的對象,但如果我的對象具有更多字段,則開始失敗。
下面是我正在嘗試的
sf = Salesforce (
username = username,
password = password,
security_token = security_token,
domain="test"
)
df = pd.DataFrame(sf.query("Here I am passing all fields they are around 1000 in select query" from "+table)['records']).dropna(axis='columns', how='all').drop(['attributes'],axis=1)
錯誤
Error Code 414. Response content: <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre>
SOQL 可以處理最多100K 個字符的查詢。 你達到那個極限了嗎?
你能把它分成2個查詢嗎? SELECT Id, ExternalId__c, Afield__c, Bfield__c, ...
說直到“M”,然后SELECT Id, ExternalId__c, Mfield__c, Nfield__c, ...
?
或者以其他方式拆分它們,也許越來越不重要? 如果您能想到不需要同步的內容,您甚至可以對集成用戶隱藏某些字段(刪除配置文件/權限集中的復選框)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.