Jean Paul Azzopardi
01/28/2025, 9:28 PMmeltano.yml
file but keep receiving a "loader failed" error. Using key-pair auth with private key in .env
file - any thoughts? Tried debugging but logs are unclear to me. Thanks!
loaders:
- name: target-snowflake
variant: meltanolabs
pip_url: meltanolabs-target-snowflake
config:
account: xxxx
add_record_metadata: false
database: production
default_target_schema: public
role: xxxx
schema: xxxx
user: xxxx
warehouse: default
Reuben (Matatika)
01/28/2025, 9:53 PMmeltano invoke <tap> > tap.out
# this command
cat tap.out | meltano invoke target-snowflake
?Reuben (Matatika)
01/28/2025, 9:53 PMJean Paul Azzopardi
01/28/2025, 10:04 PMReuben (Matatika)
01/28/2025, 11:08 PM.env
, I'm assuming you have TARGET_SNOWFLAKE_PRIVATE_KEY
set then (rather than TARGET_SNOWFLAKE_PRIVATE_KEY
)? If it's encrypted you will also need to set `TARGET_SNOWFLAKE_PRIVATE_KEY_PASSPHRASE`: https://hub.meltano.com/loaders/target-snowflake--meltanolabs/#private_key_passphrase-setting
Relevant private key code is here: https://github.com/MeltanoLabs/target-snowflake/blob/08bed1a3064b4152d37d21a23a712945c1020c42/target_snowflake/connector.py#L118-L138 Unfortunately, it might be a case of trial and error with that as a reference.Jean Paul Azzopardi
01/30/2025, 3:30 PMException: Database 'production' does not exist or the user/role doesn't have access to it.
- despite the fact that the database exists + user/role has access to it. I've tried this with multiple users and the sysadmin role and I still get the same error.Reuben (Matatika)
01/30/2025, 3:50 PMJean Paul Azzopardi
01/30/2025, 3:54 PMReuben (Matatika)
01/30/2025, 3:56 PM