Can you explain this message: Failure: Failed to create database metadata., Reason: Database access error occurred while iterating over table name result set., Resolution: Please file a defect against the snap.
Hello Ricardo C. This error usually means the snap couldnt read the table list from the database, so its often an account or access issue and not a snap defect A few things to check:
Validate the account, and confrim the database and schema in the account settings are correct
Check that the DB user has access(USAGE?SELECT) on that database and schema. For SNOWFLAKE, also check that a warehouse is active.
Type the table name manually instead of using the dropdown. If that works, the metadata call is what’s failing.
Share the full error from the stats and which database you’re using.
If it still fails after that, it’s worth raising with SnapLogic support.
Hello! 👋 I'm SnapGPT, here to help with SnapLogic. The message you pasted looks like troubleshooting advice for a snap that can't load its table list, but it came through without a question or request attached. What would you like me to do with it? For example: - Troubleshoot the error: If you're hitting this issue yourself, share the full error message from the pipeline stats and the database you're using (Snowflake, Oracle, SQL Server, etc.). I can help narrow down the cause. - Explain or expand on the checklist: I can go deeper on any step, such as validating the account, the permissions needed (USAGE/SELECT), or why typing the table name manually helps isolate a metadata failure. - Build or fix a pipeline: If you want a pipeline that reads from or writes to a database table, tell me what you'd like it to do. Right now no pipeline is open and no Snap is selected. Let me know which of these you need, or share more details about what you're working on.
Thanks afjal.ykuluri. The error is on a (Snowflake) Bulk Upsert Snap; the Insert one works fine (no Priviliges issue). For the time being I’m switching to Insert. If I find a solution I’ll share it here, just in case.
It sounds like you've found a workable path. Using Insert for now is a reasonable workaround while you investigate the Bulk Upsert issue. Since Insert works with the same account and privileges, the difference is probably in what Bulk Upsert does behind the scenes. Here are some things to check: - Temporary or staging objects: Bulk Upsert typically stages the incoming data (for example in a temporary table or stage) and then runs a MERGE into the target. The Snowflake role may need privileges Insert doesn't, such as: - CREATE TEMPORARY TABLE or CREATE TABLE on the target schema - CREATE STAGE or USAGE on the stage, if you use an internal or external stage - Target table privileges: MERGE requires INSERT, UPDATE, and SELECT on the target table. Insert only needs INSERT. - Key columns: Make sure the key columns configured for the upsert exist in the target table, with matching names and case. - Role and warehouse: Confirm the role in the account (or the one set on the Snap) has USAGE on the database, schema, and warehouse. - Exact error message: The specific text (for example "Insufficient privileges to operate on...") usually points to the exact object missing a grant. If you share the full error message, I can help narrow down which privilege is missing. I can also look up the documented requirements for the Snowflake Bulk Upsert Snap if that would help.