question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fs-bq-import-collection failure: XXX_raw_changelog already exists

See original GitHub issue

[REQUIRED] Step 2: Describe your configuration

  • Extension name: firestore-bigquery-export (specifically: fs-bq-import-collection)
  • Extension version: @firebaseextensions/fs-bq-import-collection@0.1.6
  • Configuration values (redact info where appropriate):
Cloud Functions locationDescription
us-central1
Collection pathDescription
keens
Dataset IDDescription
firestore_export
Table IDDescription
keens

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

  1. add
$ npx @firebaseextensions/fs-bq-import-collection
? What is your Firebase project ID? keen-hacks
? What is the path of the the Cloud Firestore Collection you would like to import from? (This may, or may not, be the same Collection for which you plan to mirror changes.) keens
? What is the ID of the BigQuery dataset that you would like to use? (A dataset will be created if it doesn't already exist) firestore_export
? What is the identifying prefix of the BigQuery table that you would like to import to? (A table will be created if one doesn't already exist) keens
? How many documents should the import stream into BigQuery at once? 300
Expected result

Exports data to bigquery.

Actual result
Importing data from Cloud Firestore Collection: keens, to BigQuery Dataset: firestore_export, Table: keens_raw_changelog
BigQuery dataset already exists: firestore_export
BigQuery table with name keens_raw_changelog already exists in dataset firestore_export!
View with id keens_raw_latest already exists in dataset firestore_export.
Error importing Collection to BigQuery: TypeError: Cannot read property 'constructor' of null

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
iislucascommented, Apr 29, 2020

OK, doing a little re-installing of node modules to force myself to have v1.1.6, things seem to work now, so I think this is fixed, thanks!

Here’s what I did:

npm remove -g @firebaseextensions/fs-bq-import-collection
npm install -g @firebaseextensions/firestore-bigquery-change-tracker
npm install -g @firebaseextensions/fs-bq-import-collection

(not sure that npm install -g @firebaseextensions/firestore-bigquery-change-tracker was needed)

0reactions
iislucascommented, Apr 29, 2020

Maybe you need to release a new version of @firebaseextensions/fs-bq-import-collection in npm with the updated dependency so that the sub-dependency will get picked up?

(looking at less ~/.nvm/versions/node/v10.16.3/lib/node_modules/@firebaseextensions/fs-bq-import-collection/node_modules/@firebaseextensions/firestore-bigquery-change-tracker/package.json, I see it’s version 1.1.5)

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found