Source salesforce: Failed to fetch schema

  • Deployment: Kubernetes
  • Airbyte version: 0.40.23
  • Source name/version: Salesforce
  • Step: Creating the connection
  • Description:

Hello! I have created source “saleforce” succsessfully.
But when I try to create a connector the error appears:
“Failed to fetch schema.”
In log i see follow error:

12-09 09:28:44 e[1;31mERRORe[m i.a.w.i.DefaultAirbyteStreamFactory(internalLog):116 - Stream Account cannot be processed by REST or BULK API.
Traceback (most recent call last):
File “/airbyte/integration_code/main.py”, line 13, in
launch(source, sys.argv[1:])
File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py”, line 131, in launch
for message in source_entrypoint.run(parsed_args):
File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py”, line 116, in run
catalog = self.source.discover(self.logger, config)
File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py”, line 70, in discover
streams = [stream.as_airbyte_stream() for stream in self.streams(config=config)]
File “/airbyte/integration_code/source_salesforce/source.py”, line 110, in streams
streams = self.generate_streams(config, stream_objects, sf)
File “/airbyte/integration_code/source_salesforce/source.py”, line 95, in generate_streams
raise Exception(f"Stream {stream_name} cannot be processed by REST or BULK API.")
Exception: Stream Account cannot be processed by REST or BULK API.

This error exists only for Account and Opportunity. If i use filter whichh exclude this objects, the problem doesn’t exists. But I have to get the data from this objects.

I found out that is happend if both REST and BULK aproach required:
_get_api_type
But i don’t understand why it happened. Becouse there are no “base64” or “object” types in fields.
Is the “picklist” type an “object”?

Hello there! You are receiving this message because none of your fellow community members has stepped in to respond to your topic post. (If you are a community member and you are reading this response, feel free to jump in if you have the answer!) As a result, the Community Assistance Team has been made aware of this topic and will be investigating and responding as quickly as possible.
Some important considerations that will help your to get your issue solved faster:

  • It is best to use our topic creation template; if you haven’t yet, we recommend posting a followup with the requested information. With that information the team will be able to more quickly search for similar issues with connectors and the platform and troubleshoot more quickly your specific question or problem.
  • Make sure to upload the complete log file; a common investigation roadblock is that sometimes the error for the issue happens well before the problem is surfaced to the user, and so having the tail of the log is less useful than having the whole log to scan through.
  • Be as descriptive and specific as possible; when investigating it is extremely valuable to know what steps were taken to encounter the issue, what version of connector / platform / Java / Python / docker / k8s was used, etc. The more context supplied, the quicker the investigation can start on your topic and the faster we can drive towards an answer.
  • We in the Community Assistance Team are glad you’ve made yourself part of our community, and we’ll do our best to answer your questions and resolve the problems as quickly as possible. Expect to hear from a specific team member as soon as possible.

Thank you for your time and attention.
Best,
The Community Assistance Team

What version of Salesforce and Airbyte platform are you using?