Scoping issue with google cloud storage

  1. My goal: Use the value of a selected row in a google cloud storage resource query.
  2. Issue: Error: Unable to access 'table4' since it is scoped to 'page1'. 'undefined' is scoped to the app.
  3. Steps I've taken to troubleshoot: Created a new google storage resource.
  4. Additional info: Self Hosted

All of my queries and tables are scoped to page1, I am able to access table4.selectedrow.source_gcs_uri when using a google bigquery resource, it just doesn't work with the google cloud storage resource. The app is newer, created within the last few months (after scoping became required). I thought that maybe there was an issue with my google cloud storage resource since it says undefined in the error message and created a new one, but that didn't work either. I have also tried making the google cloud storage resource query global.

I am quite stuck here and would appreciate any help.

Hi @Nick1,

That is a confusing error, I am wondering why the table4 component was in scope for the Google Big Query query but not for GCS.

If you copy the table, delete the current table and then paste the table back into page1 where the GCS query lives, that may fix this.

My hunch is that the error is being thrown because the app hasn't mapped out that the query and the table are both page scoped and may need a hard refresh via recreating the table :thinking:

Hi Jack,

Appreciate the response. I tried what you suggested and I'm still getting the error. To further test, I created a new app and new google cloud storage resource and am still getting the error.

Hi @Nick1,

Thanks for testing that out.

I just tried to get the same thing working and it seems to give me the same error from the IDE.

But when I run the query it works and is able to download the file. Does running the query despite the error not work for you?

I will definitely be creating a bug report for this "False positive" error being displayed in the query IDE.

1 Like

Hi Jack,

Didn't think to try it despite the error, it does work. Thank you!

1 Like