Doug Creighton
09/25/2025, 4:40 PMkapa.ai
09/25/2025, 4:41 PMDoug Creighton
09/25/2025, 4:42 PMDoug Creighton
09/25/2025, 4:42 PMMartin Burian
09/25/2025, 4:53 PMkapa.ai
09/25/2025, 4:53 PMkapa.ai
09/25/2025, 4:54 PMpython visualizations = sdk.visualizations.get_visualizations("your_workspace_id") 2. Attempt to execute each visualization: python for visualization in visualizations: try: sdk.tables.for_visualization("your_workspace_id", visualization) except Exception: print(f"Visualization {visualization.title} is broken.") If the visualization is broken (e.g., due to missing fields, broken metrics, or LDM changes), the SDK will raise an exception when you try to compute it. You can use this to flag or log broken visualizations automatically [Python SDK docs](https://www.gooddata.com/docs/python-sdk/latest/) [Python SDK for_visualization example](https://www.gooddata.com/docs/python-sdk/latest/workspace-content/workspace-content/for_visualization/). What about the JSON? There is no explicit property in the visualization JSON that marks it as broken. The only way to know is by attempting to execute it and catching errors. The SDK abstracts this for you—if the visualization cannot be computed, it will fail at runtime. VS Code Extension: The VS Code extension can perform referential validation, which checks for broken references (e.g., missing datasets, attributes, or metrics) in your workspace definitions. This is a manual or semi-automated process and does not provide a JSON flag either, but it can help you catch issues before deploying changes [Community Slack - referential validation](https://gooddataconnect.slack.com/archives/C04S1MSLEAW/p1714128145139339?thread_ts=1714128145.139339&cid=C04S1MSLEAW). Summary: - The SDK approach relies on catching exceptions during execution. - There is no JSON property that directly indicates a visualization is broken. - The VS Code extension helps with referential validation but does not provide a programmatic JSON flag. If you need to automate this, the SDK method above is the best available option right now.