<?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 Re: BigQuery Skill - jobs.query create table in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100612#M3232</link>
    <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d5549726-7e6c-45aa-b48d-73d3e667702c" data-tag-text="@Seb T" href="https://community.blueprism.com/network/profile?UserKey=d5549726-7e6c-45aa-b48d-73d3e667702c" data-itemmentionkey="d2406bf4-7179-4858-bd6e-bd4d24f1218d"&gt;@Seb T&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I think the issue here is that Google expects an empty JSON array for &lt;STRONG&gt;queryParameters&lt;/STRONG&gt; if the tag is included in the request. So there are a few things you could try here:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;In the body template of the request, you could remove the queryParameters entry from the template. In fact, based on the example request you've shown you could strip the template down to something like this:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;{
  "location": "[location]",
  "query": "[query]",
  "maxResults": "[maxResults]",
  "kind": "[kind]"
}​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Alternatively, you could try entering "[]" (open and close brackets) as the value for the &lt;STRONG&gt;queryParameters&lt;/STRONG&gt; data item. That signifies an empty array.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​</description>
    <pubDate>Mon, 17 Jan 2022 17:30:12 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-01-17T17:30:12Z</dc:date>
    <item>
      <title>BigQuery Skill - jobs.query create table</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100611#M3231</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Im trying to fetch data from an existing view in BigQuery. From what I can read online, you cannot fetch data from a view using tabledata.list directly. You need to materialize the view into a table before you can use tabledata.list.&lt;BR /&gt;&lt;BR /&gt;So what I am want to do is use bigquery.jobs.query to create a temp table based of a view, and then use tabledata.list. However, I cannot seem to get the bigquery.jobs.query to work.&amp;nbsp;&lt;BR /&gt;The query im using is this:&lt;BR /&gt;&lt;BR /&gt;"CREATE&amp;nbsp;TEMP&amp;nbsp;TABLE&amp;nbsp;NewTable_ExistingView&lt;BR /&gt;AS&amp;nbsp;&lt;BR /&gt;SELECT * FROM `ProjectID.DatasetID.ViewID`"&lt;BR /&gt;&lt;BR /&gt;Input parameters for the API:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36533.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36542iD377E0E12CC1B49F/image-size/large?v=v2&amp;amp;px=999" role="button" title="36533.png" alt="36533.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How the webservice is setup. Haven't changed anything after importing the skill.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36534.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36544i988173899B469643/image-size/large?v=v2&amp;amp;px=999" role="button" title="36534.png" alt="36534.png" /&gt;&lt;/span&gt;&lt;BR /&gt;API Request:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36535.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36545iF6213C2E3C26B94B/image-size/large?v=v2&amp;amp;px=999" role="button" title="36535.png" alt="36535.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And the error I'm getting (shortened) :&lt;BR /&gt;&lt;BR /&gt;HTTP Status Code: 400&lt;BR /&gt;"message": "Invalid JSON payload received. Unexpected token.\n\n\"queryParameters\": ,\r\n\"useLegacySql\": \"\n ^",&lt;BR /&gt;&lt;BR /&gt;From my understanding "useLegacySql" is set to true as default, meaning that "queryParameters" is uncessary as it is only used with standardSQL?&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Br,&lt;BR /&gt;Seb</description>
      <pubDate>Mon, 17 Jan 2022 10:04:37 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100611#M3231</guid>
      <dc:creator>SebT</dc:creator>
      <dc:date>2022-01-17T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: BigQuery Skill - jobs.query create table</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100612#M3232</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d5549726-7e6c-45aa-b48d-73d3e667702c" data-tag-text="@Seb T" href="https://community.blueprism.com/network/profile?UserKey=d5549726-7e6c-45aa-b48d-73d3e667702c" data-itemmentionkey="d2406bf4-7179-4858-bd6e-bd4d24f1218d"&gt;@Seb T&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I think the issue here is that Google expects an empty JSON array for &lt;STRONG&gt;queryParameters&lt;/STRONG&gt; if the tag is included in the request. So there are a few things you could try here:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;In the body template of the request, you could remove the queryParameters entry from the template. In fact, based on the example request you've shown you could strip the template down to something like this:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;{
  "location": "[location]",
  "query": "[query]",
  "maxResults": "[maxResults]",
  "kind": "[kind]"
}​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Alternatively, you could try entering "[]" (open and close brackets) as the value for the &lt;STRONG&gt;queryParameters&lt;/STRONG&gt; data item. That signifies an empty array.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​</description>
      <pubDate>Mon, 17 Jan 2022 17:30:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100612#M3232</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-01-17T17:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: BigQuery Skill - jobs.query create table</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100613#M3233</link>
      <description>Did the trick, thanks again.​​</description>
      <pubDate>Wed, 19 Jan 2022 12:09:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/BigQuery-Skill-jobs-query-create-table/m-p/100613#M3233</guid>
      <dc:creator>SebT</dc:creator>
      <dc:date>2022-01-19T12:09:45Z</dc:date>
    </item>
  </channel>
</rss>

