<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BigQuery temporary tables in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/BigQuery-temporary-tables-in-Qlik-Sense/m-p/1773542#M59908</link>
    <description>&lt;P&gt;Has anyone been successful using temporary tables from BigQuery in Qlik Sense?&lt;/P&gt;&lt;P&gt;As an example, this query works fine in BigQuery:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;create or replace temporary table SnapshotDates as 
SELECT Region, Reporting_Month_Key
FROM `gcp-project.db.table`
WHERE REGION &amp;lt;&amp;gt; 'INTL' OR Reporting_Month_Key &amp;lt; 201909;

select *
from SnapshotDates;&lt;/LI-CODE&gt;&lt;P&gt;However, when trying to use it in Qlik Sense, we get the following error:&lt;BR /&gt;&lt;STRONG&gt;ERROR [42000] [Qlik][BigQuery] (70) Invalid query: Use of CREATE TEMPORARY TABLE requires a script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The error is being caused by the semi-colon on line 4.&amp;nbsp; We cannot remove the semi-colon because Big Query needs it there.&amp;nbsp; However, having it there causes Qlik to treat the two queries as separate entities resulting in the error.&lt;/P&gt;&lt;P&gt;Has anyone resolved for this in BigQuery or any other scripting language?&lt;/P&gt;&lt;P&gt;Note: I do know a CTE could be used instead of a temporary table in this instance, but we have certain scripts in which the temporary tables are necessary.&amp;nbsp; The example above is just a simple example for explanation of the error.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 22:47:12 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2021-01-11T22:47:12Z</dc:date>
    <item>
      <title>BigQuery temporary tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/BigQuery-temporary-tables-in-Qlik-Sense/m-p/1773542#M59908</link>
      <description>&lt;P&gt;Has anyone been successful using temporary tables from BigQuery in Qlik Sense?&lt;/P&gt;&lt;P&gt;As an example, this query works fine in BigQuery:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;create or replace temporary table SnapshotDates as 
SELECT Region, Reporting_Month_Key
FROM `gcp-project.db.table`
WHERE REGION &amp;lt;&amp;gt; 'INTL' OR Reporting_Month_Key &amp;lt; 201909;

select *
from SnapshotDates;&lt;/LI-CODE&gt;&lt;P&gt;However, when trying to use it in Qlik Sense, we get the following error:&lt;BR /&gt;&lt;STRONG&gt;ERROR [42000] [Qlik][BigQuery] (70) Invalid query: Use of CREATE TEMPORARY TABLE requires a script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The error is being caused by the semi-colon on line 4.&amp;nbsp; We cannot remove the semi-colon because Big Query needs it there.&amp;nbsp; However, having it there causes Qlik to treat the two queries as separate entities resulting in the error.&lt;/P&gt;&lt;P&gt;Has anyone resolved for this in BigQuery or any other scripting language?&lt;/P&gt;&lt;P&gt;Note: I do know a CTE could be used instead of a temporary table in this instance, but we have certain scripts in which the temporary tables are necessary.&amp;nbsp; The example above is just a simple example for explanation of the error.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 22:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/BigQuery-temporary-tables-in-Qlik-Sense/m-p/1773542#M59908</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2021-01-11T22:47:12Z</dc:date>
    </item>
  </channel>
</rss>

