Deepanshu Mishra
11/27/2024, 5:33 PMtarget-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!Deepanshu Mishra
11/27/2024, 8:06 PMEdgar Ramírez (Arch.dev)
11/27/2024, 9:04 PMmeltano invoke tap-smoke-test > smoke.singer.jsonl
cat smoke.singer.jsonl | meltano invoke target-snowflake
and share the resulting output from the target.Deepanshu Mishra
11/28/2024, 5:41 AMEdgar Ramírez (Arch.dev)
11/28/2024, 3:06 PMDeepanshu Mishra
11/28/2024, 4:36 PMDeepanshu Mishra
11/28/2024, 6:52 PMEdgar Ramírez (Arch.dev)
11/28/2024, 8:23 PMwarehour: MELTANA_WAREHOUR
instead
warehouse: MELTANA_WAREHOURE
Deepanshu Mishra
11/28/2024, 8:28 PMEdgar Ramírez (Arch.dev)
11/28/2024, 8:31 PMDeepanshu Mishra
11/28/2024, 8:38 PMEdgar Ramírez (Arch.dev)
11/28/2024, 8:43 PMbut it then means we need to look into why that would cause the behavior you're seeingOh, 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?
Deepanshu Mishra
11/28/2024, 8:45 PMEdgar Ramírez (Arch.dev)
11/28/2024, 11:43 PMLOGLEVEL=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:
# .env
TARGET_SNOWFLAKE_USER=...
TARGET_SNOWFLAKE_PASSWORD=...
TARGET_SNOWFLAKE_ACCOUNT=...
TARGET_SNOWFLAKE_DATABASE=...
TARGET_SNOWFLAKE_WAREHOUSE=...
TARGET_SNOWFLAKE_ROLE=...
# 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.Edgar Ramírez (Arch.dev)
11/28/2024, 11:44 PMmeltano invoke target-snowflake --initialize
?Deepanshu Mishra
11/29/2024, 7:32 AMmeltano 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) 🙏🏻😇Edgar Ramírez (Arch.dev)
11/29/2024, 3:54 PM