{"record":{"id":"330f2af87f3ab728","repo":"apache/superset","slug":"failed-to-update-slack-recipients-to-v2-ex","errorCode":null,"errorMessage":"Failed to update slack recipients to v2: {ex}","messagePattern":"Failed to update slack recipients to v2: (.+?)","errorType":"exception","errorClass":"NotificationParamException","httpStatus":422,"severity":"error","filePath":"superset/commands/report/slack_upgrade.py","lineNumber":141,"sourceCode":"            )\n            channel_ids = resolve_slack_channel_ids(all_targets) if all_targets else {}\n            resolved = [\n                (\n                    recipient,\n                    json.dumps(\n                        {\n                            \"target\": \",\".join(\n                                channel_ids[channel] for channel in channels\n                            )\n                        }\n                    ),\n                )\n                for recipient, channels in pending\n            ]\n        except (NotificationParamException, SlackChannelListingClientError) as ex:\n            message = f\"Failed to update slack recipients to v2: {ex}\"\n            logger.warning(message)\n            raise NotificationParamException(message) from ex\n        except Exception as ex:\n            message = f\"Failed to update slack recipients to v2: {ex}\"\n            logger.exception(message)\n            raise UpdateFailedError(message) from ex\n\n        self._upgraded_recipient_state = [\n            (recipient, recipient.type, recipient.recipient_config_json)\n            for recipient, _ in resolved\n        ]\n        for recipient, recipient_config_json in resolved:\n            recipient.type = ReportRecipientType.SLACKV2\n            recipient.recipient_config_json = recipient_config_json\n\n    def send_fallback(\n        self,\n        notification: SlackNotification,\n        content: NotificationContent,\n        update_error: NotificationParamException | UpdateFailedError,","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/report/slack_upgrade.py#L123-L159","documentation":"Error \"Failed to update slack recipients to v2: {ex}\" thrown in apache/superset.","triggerScenarios":"Updating Slack recipients to the v2 format raises an exception.","commonSituations":"Slack v2 recipient upgrade fails when calling the Slack API or persisting the updated recipient.","solutions":["Check the logged exception, fix the Slack recipient data, and rerun the upgrade.","Grant the Slack bot channels:read and groups:read scopes."],"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"}