

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SQL IF EXISTS
Hello there,
I am loading tables a bunch of tables via SQL, including 1 from SQL Sandbox (a temporary table).
When running the extract app, the script fails if the Sandbox temporary table does not exist.
How can i amend the Qlik Script to ignore this error so the Load script does not fail.
Thanks,
Colin
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set ErrorMode = 0;
SQL Select * From SandboxTable;
Set ErrorMode =1;
Note that this will ignore any error during the SQL load and the data from that table will not be available if the select failed (so you won't be able to further load from it or reference it using Resident etc.)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set ErrorMode = 0;
SQL Select * From SandboxTable;
Set ErrorMode =1;
Note that this will ignore any error during the SQL load and the data from that table will not be available if the select failed (so you won't be able to further load from it or reference it using Resident etc.)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is perfect.
Thank you,
Colin
