You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/05/25 04:59:30 UTC

[GitHub] [incubator-superset] ebauch edited a comment on issue #8322: An unknown error occurred. Please contact your Superset administrator

ebauch edited a comment on issue #8322:
URL: https://github.com/apache/incubator-superset/issues/8322#issuecomment-633376338


   Same issue here. It has likely todo with the json format being changed when switching versions. I exported dashboards from 0.30.0 and tried to import into a new instance of 0.36. The specific error in the console was (use --debuger) on import
   
   ```
   TypeError: 'is_restricted' is an invalid keyword argument for SqlMetric
   ```
   So I opened the exported json file and deleted all rows with "is_restricted" keys. An example is shown below. 
   
   ```
   "d3format": null,
                               "description": null,
                               "expression": "count(*)",
                               "id": 2,
                               "is_restricted": false,
                               "metric_name": "",
                               "metric_type": null,
                               "table_id": 1,
                               "verbose_name": "count(*)",
                               "warning_text": null
   ```
   This resolved the issue for me and the dashboard file imported successfully. 


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org