-
Notifications
You must be signed in to change notification settings - Fork 175
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
Error while creating tables. #44
Comments
Can you post the code you're using please? |
Sure. I just copy your example and change the dataset name to mine. Here is the code: Create a new table.schema = [ The error I got is: ERROR:root:Cannot create table sample.my_table Thanks! |
@caterpillars This is sort of tangential, but it looks like there might be a bug in the error logging code. Can you try changing |
Thanks! I did that and found out the error is because of insufficient permission. Here is the error message: ERROR:root:Cannot create table sample.my_table I configured my project in bigquery and the python as in the example. Is there anything else I can check and change to make this work? Thanks |
Does the error only occur when creating a table in the dataset? Can you query any existing tables in the dataset? Can you create datasets? Ensure that the project id and service account match your credentials and that those credentials have the proper permissions for the project. |
I can query existing tables from python just fine and I am (my email) has 'is owner' access of the project. The service account I am using has 'can edit' access of this project. Is there anything else I can check? Thanks! |
client = get_client('my-project', service_account='my-service-account', private_key=key,
readonly=False) |
Ah.. that's why. I didn't notice that. Thanks a lot for you help! I tested create/delete datasets as well. It works. Thanks! |
Cool! |
Hi,
I am new to big query, and i am trying to create a test table into big query using this BigQuery-Python. I was able to query an existing table, but get the following error while trying to create/delete tables.
ERROR:root:Cannot create table sample.my_table
Http Error:
Could you please advice on what might be wrong?
Thanks!
The text was updated successfully, but these errors were encountered: