You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running Salesforce ingestion using CLI (0.9.2.3) fails with
[...]
File "/opt/homebrew/lib/python3.10/site-packages/datahub/ingestion/source/salesforce.py", line 260, in get_workunits
sObjects = self.get_salesforce_objects()
File "/opt/homebrew/lib/python3.10/site-packages/datahub/ingestion/source/salesforce.py", line 340, in get_salesforce_objects
entities_response = self.sf._call_salesforce("GET", query_url).json()
File "/opt/homebrew/lib/python3.10/site-packages/simple_salesforce/api.py", line 610, in _call_salesforce
exception_handler(result, name=name)
File "/opt/homebrew/lib/python3.10/site-packages/simple_salesforce/util.py", line 68, in exception_handler
raise exc_cls(result.url, result.status_code, name, response_content)
simple_salesforce.exceptions.SalesforceMalformedRequest: Malformed request https://INSTANCE.my.salesforce.com/services/data/v56.0/tooling/query/?q=SELECT%20DurableId,QualifiedApiName,DeveloperName,Label,PluralLabel,InternalSharingModel,ExternalSharingModel,DeploymentStatus%20FROM%20EntityDefinition%20WHERE%20IsCustomizable%20=%20true. Response content: [{'message': "sObject type 'EntityDefinition' is not supported.", 'errorCode': 'INVALID_TYPE'}]
To Reproduce
Steps to reproduce the behavior:
Use <config> example from documentation, change to correct values (for instance, user, password, token, is_sandbox=true)
Run 'datahub ingest -c <config>.yaml' where <config> points to a sandbox SF instance
Expected behavior
No query failure, ingestion to continue.
Desktop (please complete the following information):
CLI (0.9.2.3)
GMS (0.9.2)
The text was updated successfully, but these errors were encountered:
Ok. The above problem gets solved by giving the user the "View setup and Configuration" permission. However, now the next problem is
File "/opt/homebrew/lib/python3.10/site-packages/datahub/ingestion/source/salesforce.py", line 294, in get_salesforce_object_workunits
yield from self.get_schema_metadata_workunit(
File "/opt/homebrew/lib/python3.10/site-packages/datahub/ingestion/source/salesforce.py", line 631, in get_schema_metadata_workunit
sObject_custom_fields_response = self.sf._call_salesforce(
File "/opt/homebrew/lib/python3.10/site-packages/simple_salesforce/api.py", line 610, in _call_salesforce
exception_handler(result, name=name)
File "/opt/homebrew/lib/python3.10/site-packages/simple_salesforce/util.py", line 68, in exception_handler
raise exc_cls(result.url, result.status_code, name, response_content)
simple_salesforce.exceptions.SalesforceMalformedRequest: Malformed request https://INSTANCE.my.salesforce.com/services/data/v56.0/tooling/query?q=SELECT%20DeveloperName,CreatedDate,CreatedBy.Username,InlineHelpText,LastModifiedDate,LastModifiedBy.Username%20FROM%20CustomField%20WHERE%20EntityDefinitionId='Account'. Response content: [{'message': "sObject type 'CustomField' is not supported.", 'errorCode': 'INVALID_TYPE'}]
Which (exception from previous comment) in turn gets resolved by granting the SF user the permission "View All Data". It would be great if this were mentioned in the prerequisites.
Describe the bug
Running Salesforce ingestion using CLI (0.9.2.3) fails with
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No query failure, ingestion to continue.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: