dosubot[bot] commented on issue #32894: URL: https://github.com/apache/superset/issues/32894#issuecomment-2760460644
<!-- Greeting --> @shirley26107plus Hello! I'm here to help you with any bugs, questions, or contributions. Let's get to the bottom of this together. <!-- Answer --> The error you're encountering, "Unexpected error: Dataset 66 not found!", when embedding a dashboard using the SDK, might be related to how dataset macros are resolved in different environments. In Superset, dataset identifiers like 'dataset(66)' are resolved using the `dataset_macro` function, which retrieves the dataset by its ID and constructs a SQL query string for use in SQL templates <sup>[[1]](https://github.com/apache/superset/blob/master/superset/jinja_context.py)</sup>. Here are a few things you might want to check or try: 1. **Dataset Access**: Ensure that the dataset with ID 66 is accessible in the environment where the embedded dashboard is being used. There might be permission or access control issues when using the SDK. 2. **SDK Configuration**: Verify that the SDK is correctly configured to handle dataset macros. There might be specific configurations or permissions required for accessing datasets in embedded dashboards, although I couldn't find specific details on this <sup>[[2]](https://github.com/apache/superset/blob/master/superset-embedded-sdk/README.md)</sup>. 3. **Environment Consistency**: Check if there are any differences between the Superset environment where the dashboard works and the environment where it is embedded. This includes checking for any discrepancies in dataset availability or configuration. 4. **Logs and Debugging**: Look into the Superset logs for any additional error messages or stack traces that might provide more context on why the dataset is not being found. If these steps don't resolve the issue, further investigation into the specific configurations and permissions for the embedded environment might be necessary. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/68ce3619-ce36-4bce-9801-57ffcef226c6?feedback_type=other)</sup> -- 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]
