dosubot[bot] commented on issue #37924: URL: https://github.com/apache/superset/issues/37924#issuecomment-3888828316
<!-- Answer --> In Superset 6.0.0, the dashboard JSON size limit is controlled by the config key `SUPERSET_DASHBOARD_POSITION_DATA_LIMIT`, not `DASHBOARD_JSON_MAX_LENGTH`—the latter is no longer used. The default limit is 65535 characters, which matches the error threshold you're seeing. To increase the limit, set `SUPERSET_DASHBOARD_POSITION_DATA_LIMIT = 1000000` in your `superset_config.py` and restart all Superset services (web server, worker, etc). This limit is enforced on both backend and frontend, so the UI will also block saves above this threshold [source](https://github.com/apache/superset/discussions/36250). Superset stores dashboard layout JSON in the `position_json` column, which uses a custom `MediumText` type (MEDIUMTEXT for MySQL), supporting much larger storage than standard TEXT (up to 16MB in MySQL), so the database is unlikely to be the limiting factor unless your dashboard is extremely large [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/models/dashboard.py#L56-L445). If the error persists after updating the config and restarting, double-check that your config file is being loaded correctly, that there are no containerization or path issues, and clear any frontend caches. For very large dashboards, consider splitting them to avoid performance issues. Let me know if you need help verifying your config or troubleshooting further. <!-- 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/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b53f75c0-90e6-4f9e-983e-ad304e4f305f?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=In%20Superset%206.0.0%2C%20the%20dashboard%20JSON%20size%20limit%20is%20controlled%20by%20the%20config%20key%20%60SUPERSET_DASHBOARD_POSITION_DATA_LIMIT%60%2C%20not%20%60DASHBOARD_JSON_MAX_LENGTH%60%E2%80%94the%20latter%20is%20no%20longer%20used.%20The%20default%20limit%20is%2065535%20characters%2C%20which%20matches%20the%20error%20threshold%20you%27re%20seeing.%20To%20increase%20the%20limit%2C%20set%20%60SUPERSET_DASHBOARD_POSITION_DATA_LIMIT%20%3D%201000000%60%20in%20your%20%60superset_config.py%60%20and%20restart%20all%20Superset%20services%20%28web%20server%2C%20worker%2C%20etc%29.%20This%20limit%20is%20enforced%20on%20both%20backend%20and%20frontend%2C%20so%20the%20UI%20will%20also%20block%20saves%20above%20this%20threshold%20%5Bsource%5D%28ht tps%3A//github.com/apache/superset/discussions/36250%29.%0A%0ASuperset%20stores%20dashboard%20layout%20JSON%20in%20the%20%60position_json%60%20column%2C%20which%20uses%20a%20custom%20%60MediumText%60%20type%20%28MEDIUMTEXT%20for%20MySQL%29%2C%20supporting%20much%20larger%20storage%20than%20standard%20TEXT%20%28up%20to%2016MB%20in%20MySQL%29%2C%20so%20the%20database%20is%20unlikely%20to%20be%20the%20limiting%20factor%20unless%20your%20dashboard%20is%20extremely%20large%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/models/dashboard.py%23L56-L445%29.%0A%0AIf%20the%20error%20persists%20after%20updating%20the%20config%20and%20restarting%2C%20double-check%20that%20your%20config%20file%20is%20being%20loaded%20correctly%2C%20that%20there%20are%20no%20containerization%20or%20path%20issues%2C%20and%20clear%20any%20frontend%20caches.%20For%20very%20large%20dashboards%2C%20consider%20splitting%20them%20to%20avoid%20performance%20iss ues.%0A%0ALet%20me%20know%20if%20you%20need%20help%20verifying%20your%20config%20or%20troubleshooting%20further.) [](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/issues/37924) -- 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]
