File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -206,16 +206,17 @@ def convert_item(item):
206
206
url_param = "jsonUrl"
207
207
query_str = """mutation AppendRowsToDatasetPyApi($%s: ID!, $%s: String!){
208
208
appendRowsToDataset(data:{datasetId: $%s, jsonFileUrl: $%s}
209
- ){ taskId accepted } } """ % (dataset_param , url_param ,
209
+ ){ taskId accepted errorMessage } } """ % (dataset_param , url_param ,
210
210
dataset_param , url_param )
211
211
res = self .client .execute (query_str , {
212
212
dataset_param : self .uid ,
213
213
url_param : descriptor_url
214
214
})
215
215
res = res ["appendRowsToDataset" ]
216
216
if not res ["accepted" ]:
217
+ msg = res ['errorMessage' ]
217
218
raise InvalidQueryError (
218
- "Server did not accept DataRow creation request" )
219
+ f "Server did not accept DataRow creation request. { msg } " )
219
220
220
221
# Fetch and return the task.
221
222
task_id = res ["taskId" ]
You can’t perform that action at this time.
0 commit comments