Hi everyone, I'm running into an issue with `targ...
# singer-targets
d
Hi everyone, I'm running into an issue with
target-snowflake
variant=
meltanolabs
and a custom Shopify GraphQL tap that we've built. While the tap works fine with target-jsonl, I'm getting the error "Loader failed, Block run completed." when loading into Snowflake. I've attached the relevant logs and config files. Any pointers or troubleshooting tips would be greatly appreciated! Thanks in advance!
1
Even if I try tap-smoke-test with target-snowflake, it doesn’t work. @Edgar Ramírez (Arch.dev) can you help please?
e
can I ask you do the following to narrow down the problem:
Copy code
meltano invoke tap-smoke-test > smoke.singer.jsonl
cat smoke.singer.jsonl | meltano invoke target-snowflake
and share the resulting output from the target.
🙌 1
d
Thanks @Edgar Ramírez (Arch.dev), here' the log output of the above command sequence.
e
Did that load the data correctly and that is all the logs?
d
That didn’t load the data; it just logged 'Initializing target sink for stream 'animals'...' and exited silently. Thats all it logged.
Hey @Edgar Ramírez (Arch.dev), could you please confirm if this is happening only to me? I’m unable to resolve this due to my insufficient knowledge of Meltano and Targets.
e
Could it be a typo?
Copy code
warehour: MELTANA_WAREHOUR
instead
Copy code
warehouse: MELTANA_WAREHOURE
😅 1
🙈 1
d
Noops! 🥲
e
I hope it's just that and that fixes your problem, but it then means we need to look into why that would cause the behavior you're seeing
d
How could we do that? I can zip the codebase and share it with you, or would you prefer to get on a call with me, Chief?
e
but it then means we need to look into why that would cause the behavior you're seeing
Oh, by "we" here I mean myself and maybe other internal members of the Arch.dev team 😅 So, did addressing the typo fix the problem for you?
1
d
No, I corrected it and ran it again, but I'm seeing the same behavior.
😭 1
e
Oh 😢, let's try then
Copy code
LOGLEVEL=debug cat smoke.singer.jsonl | meltano invoke target-snowflake
and see if the target reveals some more details. By the way, I've tested that the same steps work with these settings:
Copy code
# .env
TARGET_SNOWFLAKE_USER=...
TARGET_SNOWFLAKE_PASSWORD=...
TARGET_SNOWFLAKE_ACCOUNT=...
TARGET_SNOWFLAKE_DATABASE=...
TARGET_SNOWFLAKE_WAREHOUSE=...
TARGET_SNOWFLAKE_ROLE=...
Copy code
# meltano.yml
plugins:
  loaders:
  - name: target-snowflake
    variant: meltanolabs
    pip_url: -e ..
    config:
      add_record_metadata: true
      default_target_schema: public
so maybe there's something different in your setup, but I haven't figured out what.
1
Oh, have you tried
Copy code
meltano invoke target-snowflake --initialize
?
d
In my case, running
meltano invoke target-snowflake --initialize
did not save to the
.env
file. So, I created the
.env
file as you suggested above, and now it works. That was it! Thanks boss! Thank you so much, @Edgar Ramírez (Arch.dev) 🙏🏻😇
e
Oh wow, I'm glad you got it to work!!
♥️ 1