dosubot[bot] commented on issue #38779:
URL: https://github.com/apache/superset/issues/38779#issuecomment-4101746629

   <!-- Answer -->
   Looking at your screenshot, there are two separate issues in the import 
error:
   
   1. **Unknown fields in database config** 
(`python_date_format_by_column_name` and `cluster` in Presto_Trino.yaml)
   2. **Dashboard conflict** requiring the overwrite confirmation
   
   The OVERWRITE text input should appear in the modal when there's a conflict 
detected. If you're not seeing the input field to type "OVERWRITE", this 
appears to be a frontend bug. The [ImportModal 
component](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/components/ImportModal/index.tsx#L335-L342)
 should display a confirmation input when the backend returns `alreadyExists` 
errors.
   
   **However**, there's a known limitation worth noting: even if you get the 
OVERWRITE option working, [the overwrite flag only affects the dashboard record 
itself](https://github.com/apache/superset/issues/34879#issuecomment-3232420037)
 — charts and datasets are [hardcoded to import with 
`overwrite=False`](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dashboard/importers/v1/__init__.py#L99).
   
   **Workarounds:**
   - Delete the existing dashboard before importing
   - Use the CLI for more control: `superset import_dashboards -p <file.zip>`
   - Import dependencies first (datasets → charts → dashboards)
   
   Could you confirm whether the OVERWRITE text input field is completely 
missing from the modal, or if it's present but not accepting input? Also, the 
first error about unknown fields in the database YAML might be blocking the 
import flow from reaching the overwrite prompt.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/f9b47521-a0fd-477c-b12c-80a39c18a9a8?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/f9b47521-a0fd-477c-b12c-80a39c18a9a8?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/f9b47521-a0fd-477c-b12c-80a39c18a9a8?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/f9b47521-a0fd-477c-b12c-80a39c18a9a8?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose)
 | [Hallucination](https://app.dosu.dev/response-feedback/f9b47521-a0fd
 
-477c-b12c-80a39c18a9a8?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/f9b47521-a0fd-477c-b12c-80a39c18a9a8?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/f9b47521-a0fd-477c-b12c-80a39c18a9a8?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Looking%20at%20your%20screenshot%2C%20there%20are%20two%20separate%20issues%20in%20the%20import%20error%3A%0A%0A1.%20%2A%2AUnknown%20fields%20in%20database%20config%2A%2A%20%28%60python_date_format_by_column_name%60%20and%20%60cluster%60%20in%20Presto_Trino.yaml%29%0A2.%20%2A%2ADashboard%20conflict%2A%2A%20requiring%20the%20overwrite%20confirmation%0A%0AThe%20OVERWRITE%20text%20input%20should%20appear%20in%20the%20modal%20when%20there%27s%20a%20conflict%20detected.%20If%20you%27re%20not%20seeing%20the%20input%20field%20to%20type%20%22OVERWRITE%22%2C%20this%20appears%20to%20be%20a%20frontend%20bug.%20The%20%5BImportModal%20component%5D%28https%3A//github.com/apache/superset/
 
blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/components/ImportModal/index.tsx%23L335-L342%29%20should%20display%20a%20confirmation%20input%20when%20the%20backend%20returns%20%60alreadyExists%60%20errors.%0A%0A%2A%2AHowever%2A%2A%2C%20there%27s%20a%20known%20limitation%20worth%20noting%3A%20even%20if%20you%20get%20the%20OVERWRITE%20option%20working%2C%20%5Bthe%20overwrite%20flag%20only%20affects%20the%20dashboard%20record%20itself%5D%28https%3A//github.com/apache/superset/issues/34879%23issuecomment-3232420037%29%20%E2%80%94%20charts%20and%20datasets%20are%20%5Bhardcoded%20to%20import%20with%20%60overwrite%3DFalse%60%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dashboard/importers/v1/__init__.py%23L99%29.%0A%0A%2A%2AWorkarounds%3A%2A%2A%0A-%20Delete%20the%20existing%20dashboard%20before%20importing%0A-%20Use%20the%20CLI%20for%20more%20control%3A%20%60superset%20import_dashboards%20-p%20%3Cfile.zip%3E%
 
60%0A-%20Import%20dependencies%20first%20%28datasets%20%E2%86%92%20charts%20%E2%86%92%20dashboards%29%0A%0ACould%20you%20confirm%20whether%20the%20OVERWRITE%20text%20input%20field%20is%20completely%20missing%20from%20the%20modal%2C%20or%20if%20it%27s%20present%20but%20not%20accepting%20input%3F%20Also%2C%20the%20first%20error%20about%20unknown%20fields%20in%20the%20database%20YAML%20might%20be%20blocking%20the%20import%20flow%20from%20reaching%20the%20overwrite%20prompt.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38779)


-- 
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