langflow-ai/langflow · error · HTTPException

Flow version attachment has an invalid provider_snapshot_id.

Error message

Flow version attachment has an invalid provider_snapshot_id.

What it means

Error "Flow version attachment has an invalid provider_snapshot_id." thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/mappers/deployments/watsonx_orchestrate/mapper.py:1435

        ]

        return DeploymentFlowVersionListResponse(
            flow_versions=flow_versions,
            page=page,
            size=size,
            total=total,
        )

    def _normalize_flow_version_attachment_rows(
        self,
        rows: list[tuple[FlowVersionDeploymentAttachment, FlowVersion, str | None]],
    ) -> list[_NormalizedAttachmentRow]:
        normalized_rows: list[_NormalizedAttachmentRow] = []
        for attachment, flow_version, flow_name in rows:
            snapshot_id = (attachment.provider_snapshot_id or "").strip()
            if not snapshot_id:
                msg = "Flow version attachment has an invalid provider_snapshot_id."
                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)
            normalized_rows.append(
                _NormalizedAttachmentRow(
                    attachment=attachment,
                    flow_version=flow_version,
                    flow_name=flow_name,
                    snapshot_id=snapshot_id,
                )
            )
        return normalized_rows

    def _resolve_flow_version_item_data_by_snapshot_id(
        self,
        *,
        snapshot_result: SnapshotListResult | None,
    ) -> dict[str, dict[str, Any]]:
        """Build API flow-version item provider_data keyed by snapshot id."""
        if snapshot_result is None:
            return {}

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Re-attach the flow version with a valid provider_snapshot_id.

When it happens

Trigger: Occurs when a flow version attachment carries an invalid provider_snapshot_id.

Common situations: See trigger scenarios.


AI-assisted analysis of langflow-ai/langflow@976ec789d2 (2026-08-14). Data as JSON: /api/errors/2d1a0307ad440601. Report an issue: GitHub.