apache/superset · error · NotificationParamException

Failed to update slack recipients to v2: {ex}

Error message

Failed to update slack recipients to v2: {ex}

What it means

Error "Failed to update slack recipients to v2: {ex}" thrown in apache/superset.

Source

Thrown at superset/commands/report/slack_upgrade.py:141

            )
            channel_ids = resolve_slack_channel_ids(all_targets) if all_targets else {}
            resolved = [
                (
                    recipient,
                    json.dumps(
                        {
                            "target": ",".join(
                                channel_ids[channel] for channel in channels
                            )
                        }
                    ),
                )
                for recipient, channels in pending
            ]
        except (NotificationParamException, SlackChannelListingClientError) as ex:
            message = f"Failed to update slack recipients to v2: {ex}"
            logger.warning(message)
            raise NotificationParamException(message) from ex
        except Exception as ex:
            message = f"Failed to update slack recipients to v2: {ex}"
            logger.exception(message)
            raise UpdateFailedError(message) from ex

        self._upgraded_recipient_state = [
            (recipient, recipient.type, recipient.recipient_config_json)
            for recipient, _ in resolved
        ]
        for recipient, recipient_config_json in resolved:
            recipient.type = ReportRecipientType.SLACKV2
            recipient.recipient_config_json = recipient_config_json

    def send_fallback(
        self,
        notification: SlackNotification,
        content: NotificationContent,
        update_error: NotificationParamException | UpdateFailedError,

View on GitHub (pinned to f4587218dd)

Solutions

  1. Check the logged exception, fix the Slack recipient data, and rerun the upgrade.
  2. Grant the Slack bot channels:read and groups:read scopes.

When it happens

Trigger: Updating Slack recipients to the v2 format raises an exception.

Common situations: Slack v2 recipient upgrade fails when calling the Slack API or persisting the updated recipient.


AI-assisted analysis of apache/superset@f4587218dd (2026-08-14). Data as JSON: /api/errors/330f2af87f3ab728. Report an issue: GitHub.