hello - I’m trying to setup a connection between S...
# replication-troubleshooting
c
hello - I’m trying to setup a connection between Salesforce and Snowflake, but I am getting an error. Is there a permission or configuration I need to do to allow this?
Copy code
Error: common.error

Discovering schema failed
Max retries exceeded with url
Stream Account cannot be processed by REST or BULK API.
m
Can you share more information? What Airybte version, connector and OS are you using.
Maybe use filter streams in Salesforce to use a subset of all streams.
c
airbyte version
0.40.22
m
Example:
c
I was able to connect to a different Salesforce environment, so it must be something in the Salesforce
Although, with this setup the raw data gets in, but the transformation does not work
Copy code
2022-12-01 22:14:41 ERROR i.a.w.g.DefaultNormalizationWorker(run):101 - Normalization Failed.
Does a new schema need to be created for this to work? It seems like the sync is trying to create an additional schema in Snowflake with
_AIRBYTE_
prefixed
and if I have the Account object, I get this error
2022-12-01 21:03:13 *ERROR* c.n.s.DateTimeValidator(tryParse):82 - Invalid date-time: Invalid timezone offset: +0000
Snowflake connector version
0.4.40
Salesforce source connector version
1.0.27
@Marcos Marx (Airbyte) ^ here’s my thread
m
Sorry Carolina, I still don’t understand clearly what is your issue. Can you be describe clearly what steps and what information you have?
c
I have set up a connection between a Salesforce Sandbox environment and Snowflake. The data seems to load correctly in the
_AIRBYTE_RAW_*
tables. The corresponding tables with the data transformed are created but remain empty and the sync fails.
I also receive an error in Snowflake because the sync tries to create a new schema with
_AIRBYTE_
added in front of the schema I have specified in the replication settings.
Screen Shot 2022-12-02 at 1.06.15 PM.png
_2022-12-02 17:44:39 -_ Additional Failure Information: 003001 (42501): SQL access control error:
m
Can you upload the compelte log file here?
c
bb635edb_9de0_44f8_bdd0_04b85b33f14b_logs_14_txt.txt,bb635edb_9de0_44f8_bdd0_04b85b33f14b_logs_24_txt.txt
m
Copy code
2022-12-01 21:02:49 [42mnormalization[0m > Encountered an error:
Database Error
  003001 (42501): SQL access control error:
  Insufficient privileges to operate on database 'DEMO_DB'
Can you check your permissions to the user?
c
why is it trying to create a new schema?
m
I think to store temporary data when doing the normalization
c
the specified schema that it has permission to is
DEMO_DB.AIRBYTE_SALESFORCE_QTC_DEV
is there a way to turn that off or use the existing schema?
m
Only if you use custom normalization to change the current behavior
c
Are there standard custom transformations for typical sources like Salesforce?
u
No, there isn't. You will copy the generated project and you can change it to achieve the result you want to.