GitHub user dosubot[bot] added a comment to the discussion: Dashboard Size Issue.
<!-- Answer --> Superset enforces a dashboard size limit to prevent performance and storage issues. The error appears when the serialized dashboard layout data exceeds the configured limit. By default, this limit is set to 65,535 characters, but you can increase it by setting the `SUPERSET_DASHBOARD_POSITION_DATA_LIMIT` value in your Superset configuration. To do this, add the following line to your `superset_config.py` file (or your custom config file if using the `SUPERSET_CONFIG_PATH` environment variable): ```python SUPERSET_DASHBOARD_POSITION_DATA_LIMIT = 120000 # or any higher value you need ``` Then restart Superset for the change to take effect. This will allow you to save larger dashboards. The value is passed from backend to frontend and will be enforced in the UI as well [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L186-L2008). Keep in mind that increasing this limit may impact performance or stability, especially for very large dashboards. If you run into issues, consider splitting your dashboard into smaller ones. Let me know if you need more details on where to place the config or how to reload Superset! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/bde16734-a56b-4f9b-92d2-de3173f34a74?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=Superset%20enforces%20a%20dashboard%20size%20limit%20to%20prevent%20performance%20and%20storage%20issues.%20The%20error%20appears%20when%20the%20serialized%20dashboard%20layout%20data%20exceeds%20the%20configured%20limit.%20By%20default%2C%20this%20limit%20is%20set%20to%2065%2C535%20characters%2C%20but%20you%20can%20increase%20it%20by%20setting%20the%20%60SUPERSET_DASHBOARD_POSITION_DATA_LIMIT%60%20value%20in%20your%20Superset%20configuration.%0A%0ATo%20do%20this%2C%20add%20the%20following%20line%20to%20your%20%60superset_config.py%60%20file%20%28or%20your%20custom%20config%20file%20if%20using%20the%20%60SUPERSET_CONFIG_PATH%60%20environment%20variable%29%3A%0A%0A%60%60%60python%0ASUPERSET_DASHBOARD_POSITION_DATA_LIMIT%20%3D%20120000%20%20%23%20or%20a ny%20higher%20value%20you%20need%0A%60%60%60%0A%0AThen%20restart%20Superset%20for%20the%20change%20to%20take%20effect.%20This%20will%20allow%20you%20to%20save%20larger%20dashboards.%20The%20value%20is%20passed%20from%20backend%20to%20frontend%20and%20will%20be%20enforced%20in%20the%20UI%20as%20well%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py%23L186-L2008%29.%0A%0AKeep%20in%20mind%20that%20increasing%20this%20limit%20may%20impact%20performance%20or%20stability%2C%20especially%20for%20very%20large%20dashboards.%20If%20you%20run%20into%20issues%2C%20consider%20splitting%20your%20dashboard%20into%20smaller%20ones.%0A%0ALet%20me%20know%20if%20you%20need%20more%20details%20on%20where%20to%20place%20the%20config%20or%20how%20to%20reload%20Superset%21) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36250) GitHub link: https://github.com/apache/superset/discussions/36250#discussioncomment-15070424 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
