# BigQuery API no longer working

**URL:** <https://forum.kx.com/t/bigquery-api-no-longer-working/13750>\
**Category:** Community Support\
**Tags:** imported, kdb-insights\
**Created:** [February 12, 2024, 12:00am UTC](https://forum.kx.com/t/bigquery-api-no-longer-working/13750 "2024-02-12T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![csilvarivera](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@csilvarivera](https://forum.kx.com/u/csilvarivera)\
**Post date:** [February 12, 2024, 12:00am UTC](https://forum.kx.com/t/bigquery-api-no-longer-working/13750/1 "2024-02-12T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/bigquery-api-no-longer-working](https://learninghub.kx.com/forums/topic/bigquery-api-no-longer-working)

Hello!

I have seen that in the last 2 weeks, all the calls using the BigQuery API stopped working. No matter which method you use, it always comes back with the error:

_Missing args, datasets.list requires args: +projectId_  
_[2] (.com\_kx\_bq.run)_

_[3] (.com\_kx\_bq.datasets.list)_

**Notice the below script that used to be working**

```
l bq.q_ .kurl.register (`oauth2; "*.googleapis.com"; ""; enlist[`access_token]!enlist getenv `GOOGLE_TOKEN) .com_kx_bq.cfg.default.projectId:"" .com_kx_bq.datasets.list enlist[`projectId]!enlist "" 'Missing args, datasets.list requires args: +projectId [2] (.com_kx_bq.run) [1] (.com_kx_bq.datasets.list)
```

It seems to me that the library no longer recognised the projectId args no matter if you add it or use the default ones. It always come back with the error _Missing args, requires args: +projectId_

&nbsp;

Has anyone else started experiencing similar issues?

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![csilvarivera](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@csilvarivera](https://forum.kx.com/u/csilvarivera)\
**Post date:** [February 15, 2024, 12:00am UTC](https://forum.kx.com/t/bigquery-api-no-longer-working/13750/2 "2024-02-15T00:00:00Z")

</div>

Thank you Megan!

&nbsp;

FYI - the amazing support team has already given me a way forward. We just simply need to change the way we assign the default ProjectID as follows

&nbsp;

&nbsp;

```
.com_kx_bq.cfg.default[`$"+projectId"]:""
```

&nbsp;

And that’s pretty much it! Not sure if the docs will be updated or a new version of the library will be released, but for now this works well.

---

<div class="post-metadata">

**Author:** ![csilvarivera](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@csilvarivera](https://forum.kx.com/u/csilvarivera)\
**Post date:** [February 12, 2024, 12:00am UTC](https://forum.kx.com/t/bigquery-api-no-longer-working/13750/3 "2024-02-12T00:00:00Z")

</div>

Adding to the above. It is definitively an issue related to adding args in the _run_ function. Executing a function that doesn’t require any args (i.e. list projects) still works:

&nbsp;

```
q).com_kx_bq.projects.list[] kind | "bigquery#projectList" etag | "PXl7AcbMGzFMur/boIkUvA==" projects | +`kind`id`numericId`projectReference`friendlyName!(,"bigquery#pro.. totalItems| 1f
```

&nbsp;

I have added the default projectId in the configuration but no luck when trying to run any simple query or list datasets for example:

&nbsp;

&nbsp;

```
.com_kx_bq.query "WITH AllTrades AS( SELECT * from project.dataset.demo)" 'Missing args, jobs.query requires args: +projectId [11] (.com_kx_bq.run) [10] (.com_kx_bq.queryRawResp)
```

&nbsp;

---

<div class="post-metadata">

**Author:** ![mmcparland](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/mmcparland/32/54_2.png) [@mmcparland](https://forum.kx.com/u/mmcparland)\
**Post date:** [February 13, 2024, 12:00am UTC](https://forum.kx.com/t/bigquery-api-no-longer-working/13750/4 "2024-02-13T00:00:00Z")

</div>

Hi ,

Thank you for bringing this to our attention.

Our team are currently working on getting this up and running again.

We will update you as soon as we come to a solution.

Many thanks,

Megan
