Reputation: 57
I don't seem to be able to delete my table 387047224813. API calls fail with Undefined error, and when I try through the console it doesn't complain, but it doesn't delete the table either.
How can I fix this problem?
To confirm, I'm using the following API code from the API documenation, which works fine with any other table, just not with this one:
# Delete a table
def deleteTable(service, projectId, datasetId, tableId):
try:
service.tables().delete(projectId=projectId, datasetId=datasetId, tableId=tableId).execute()
except AccessTokenRefreshError:
print ("The credentials have been revoked or expired, please re-run the application to re-authorize")
except Exception as err:
print 'Undefined error' % err
except:
print "\nWARNING: Table [" + tableId + "] doesn't exist!\n"
I get the error Undefined error, with no explanation
The fact that the Delete Table command in the web console doesn't delete the table either makes me think that there may be a problem at BigQuery with this specific table.
Upvotes: 1
Views: 1962
Reputation: 26617
BigQuery table ids have three parts -- project id, dataset id, and table id. The value you gave '387047224813' is a project id .. but in order to delete a table, you need to specify a dataset and table id as well. If you are specifying the dataset and table id, can you let us now which ones they are?
Upvotes: 1