{"record":{"id":"094c3c961c6c81e2","repo":"apache/superset","slug":"an-error-occurred-while-updating-the-value","errorCode":null,"errorMessage":"An error occurred while updating the value.","messagePattern":"An error occurred while updating the value\\.","errorType":"exception","errorClass":"TemporaryCacheUpdateFailedError","httpStatus":500,"severity":"error","filePath":"superset/commands/explore/form_data/update.py","lineNumber":86,"sourceCode":"                    session.get(\"_id\"), tab_id, datasource_id, chart_id, datasource_type\n                )\n                key = cache_manager.explore_form_data_cache.get(contextual_key)\n                if not key or not tab_id:\n                    key = random_key()\n                    cache_manager.explore_form_data_cache.set(contextual_key, key)\n\n                new_state: TemporaryExploreState = {\n                    \"owner\": owner,\n                    \"datasource_id\": datasource_id,\n                    \"datasource_type\": DatasourceType(datasource_type),\n                    \"chart_id\": chart_id,\n                    \"form_data\": form_data,\n                }\n                cache_manager.explore_form_data_cache.set(key, new_state)\n            return key\n        except SQLAlchemyError as ex:\n            logger.exception(\"Error running update command\")\n            raise TemporaryCacheUpdateFailedError() from ex\n\n    def validate(self) -> None:\n        if self._cmd_params.form_data:\n            validate_json(self._cmd_params.form_data)\n","sourceCodeStart":68,"sourceCodeEnd":91,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/explore/form_data/update.py#L68-L91","documentation":"Error \"An error occurred while updating the value.\" thrown in apache/superset.","triggerScenarios":"A database or serialization error occurs while persisting an updated form_data value.","commonSituations":"Updating Explore form_data state when the backing key-value store write fails (database error or serialization failure).","solutions":["Check server logs for the underlying database error and retry the update.","Confirm the key still exists and the payload is valid JSON before retrying."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4587218dd19d046c3e4d00063e7d27f8a2ed354","analyzedAt":"2026-08-14T22:39:27.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}