Reputation: 683
We have created a scheduled query on Google's BigQuery API that should call a routine main_routine
that is present in a dataset analytics
:
call analytics.main_routine()
The region of the dataset and the scheduled query is the same (us
).
Every job execution of this scheduled query is returning the following error:
Procedure is not found: analytics.main_routine at [1:6];
Any help is appreciated, thank you!
Upvotes: 1
Views: 658
Reputation: 2343
When you schedule the query, it fails with Procedure not found: analytics.main_routine at [1:6]
because it runs on a multi region (US).
Please try to schedule the query on a specific region (single region - us-central1) and let me know if it worked or not.
Multi-region :
Single region:
Upvotes: 1
Reputation: 678
Could you please make sure, Project name is included when calling the procedure as below:
call <Project_name>.<Dataset_Name>.<Procedure_Name>();
Upvotes: 0