I'm trying to get all the data from my dataset by executing a simple query: Here's what my code looks like:
rows = cnxn.execute(sqlcmd)
for row in rows:
dataset_id = '609f128a-ac54-4f4f-a71e-81362f9fa154'
table_name = 'orders'
query_url = "https://api.domo.com/v1/datasets/query/execute/" + dataset_id
myobj = {"sql": "SELECT * FROM TABLE where \"Order ID\"= 16000472"}
query_result = requests.post(url=query_url, json=myobj, headers=headers)
Now this works fine, but when I remove the where clause from the SQL query
SELECT * FROM TABLE;
I get the following error:
b'There was a problem executing the SQL query: Underlying service error: Internal Server Error'
I want to get all the records in my dataset, what I'm doing wrong here?