Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SwatiDham
Contributor II
Contributor II

Exception Handling for a missing table

I have a loop running for a bunch of different sites to be concatenate data into a single table using snowflake sql

 

For one particular site there is an underlying table missing. I don't want to remove that site from the loop but have the loop skip and continue to concatenate the data.

 

Since the table is missing i get this error and the execution stops: 

The following error occurred: Invalid argument. (Connector error: ERROR [42S02] SQL compilation error: Object 'XXX' does not exist or not authorized.). 

 

I have tried to use seterrormode, fetch the count of rows but i am not able to handle this exception.

 

Any ideas?

 

Labels (1)
1 Reply
chriscammers
Partner Ambassador
Partner Ambassador

One thing you could do is query snowflakes system catalog before you try to query the table.

I've done this with sql server and those queries are easy to find.

Best of luck