arslanselcuk commented on issue #6197: Not able to import dashboard in the 
latest version of superset
URL: 
https://github.com/apache/incubator-superset/issues/6197#issuecomment-546827965
 
 
   Same issue here: 
   
   Superset version 0.30.0
   Running on Windows10 
   
   I wanted to investigate import_dashboards feature to execute DTAP pipeline.
   
   - I saved as one of the existing dashboards. (named it "testSelcuk" )
   
   - Then exported this new dashboard as JSON file.
   
   - Then deleted this dashboard.
   
   - then typed python import_dashboards -f "path of testSelcuk"
   
   I reveive the  error : 2019-10-28 
08:30:45,544:ERROR:root:(sqlite3.IntegrityError) UNIQUE constraint failed: 
tables.table_name
   [SQL: INSERT INTO tables (created_on, changed_on, description, 
default_endpoint, is_featured, filter_select_enabled, "offset", cache_timeout, 
params, perm, table_name, main_dttm_col, database_id, fetch_values_predicate, 
schema, sql, is_sqllab_view, template_params, created_by_fk, changed_by_fk) 
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
   [parameters: ('2019-10-28 08:30:45.544436', '2019-10-28 08:30:45.544436', 
'<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more 
contributor license agreements.  See the NOTICE file\ndistributed with this ... 
(23651 characters truncated) ... L | Urban population\nSP.URB.TOTL.IN.ZS | 
Urban population (% of total)\nSP.UWT.TFRT | Unmet need for contraception (% of 
married women ages 15-49)\n', None, 0, 1, 0, None, '{"remote_id": 2, 
"database_name": "main", "import_time": 1572247845}', None, 
'wb_health_population', 'year', 2, None, None, None, 0, None, None, None)]
   (Background on this error at: http://sqlalche.me/e/gkpj
   
   
![Untitled](https://user-images.githubusercontent.com/26799735/67660332-d78b8d80-f95e-11e9-8776-d81e9094be71.png)
   )
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to