ARBS-23 commented on issue #44309:
URL: https://github.com/apache/superset/issues/44309#issuecomment-5680858052

   ### Clearer reproduction (Charts)
   
   I found a more reliable way to reproduce the Chart import failure 
(`dataset_uuid: Missing data for required field`):
   
   1. Create or open a chart that is linked to a dataset.
   2. Delete the **dataset** that the chart depends on (not only the chart).
   3. Observe the chart is broken in Explore: **Missing dataset. The dataset 
linked to this chart may have been deleted.** (and **Failed to load chart 
data**).
   4. Export / re-import the chart (or a bulk chart ZIP that includes such 
charts).
   
   Import then fails validation on `charts/*.yaml` with:
   
   ```json
   {"dataset_uuid": ["Missing data for required field."]}
   ```
   
   The original issue steps (export → delete the chart/dashboard/dataset rows → 
re-import) still apply for the bulk restore case. This note clarifies that for 
**Charts**, deleting the **linked dataset** is the key trigger for the 
`dataset_uuid` missing-field error / broken Explore state before re-import.
   
   ![Missing dataset after linked dataset 
delete](https://gist.githubusercontent.com/ARBS-23/e035ebc8e16cfadafeb260230992c247/raw/935737678649d77844f58a7cb003d2adcff9774d/missing-dataset-after-delete.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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to