Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bigquery-firestore-export - unable to create transferConfig #411

Closed
sjerzak opened this issue Mar 13, 2024 · 5 comments · Fixed by #426 · May be fixed by #419
Closed

bigquery-firestore-export - unable to create transferConfig #411

sjerzak opened this issue Mar 13, 2024 · 5 comments · Fixed by #426 · May be fixed by #419
Assignees

Comments

@sjerzak
Copy link

sjerzak commented Mar 13, 2024

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to
    Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: _bigquery-firestore-export
  • Extension version: _0.1.4

[REQUIRED] Step 3: Describe the problem

Extension is unable to create transferConfig
image

Steps to reproduce:

Install and config extension. It will stuck on
image

Expected result

TransferConfig created.

Actual result

Hang on "Creating a new transfer config and scheduling the query." status.

@jauntybrain
Copy link
Collaborator

Hi @sjerzak, thank you for reporting this issue. I am working on reproducing it but I need a bit more information.

Could you please verify if the Firestore collection that you specified during extension installation (defaults to transferConfigs) contains a document with a field name? If it does, could you please share the value of that field?

@jauntybrain jauntybrain self-assigned this Mar 18, 2024
@sjerzak
Copy link
Author

sjerzak commented Mar 18, 2024

Hi

Thanks for checking on this.

I did some more checks and it seems that the issue occurs when I'm trying to use collection that already exists.
I've change extension settings back to use default transferConfigs collection and extension was able to create that collection with proper document containing fields (name etc...), then TransferConfig was created properly.

Answering your question I wasn't able to find document with a field name in collection specified by me before reverting to transferConfigs collection.

@jauntybrain
Copy link
Collaborator

@sjerzak thanks for the information! Yes, the specified collection must either be empty or contain a previously used transfer config, since it should only contain information about BigQuery transfers. We will make sure to highlight this in the documentation.

@sjerzak
Copy link
Author

sjerzak commented Mar 19, 2024

Could you please double check if "or contain a previously used transfer config" functionality is working correctly?
I reconfigured extension using transferConfigs collection, only thing I did change was Function memory(Optional) and it stuck on ext-bigquery-firestore-export-upsertTransferConfig again.
image

After deleting Firebase collection transferConfigs and manually removing BQ Data transfers extension worked as expected.
BQ Data transfers was added and Firestore collection transferConfigs were created.

@jauntybrain
Copy link
Collaborator

@sjerzak thanks for reporting this! I made a PR that resolves this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment