langflow-ai/langflow · error · HTTPException

Name must be unique

Error message

Name must be unique

What it means

Error "Name must be unique" thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/flows_helpers.py:474

        ).first()
        if not folder:
            raise HTTPException(status_code=400, detail="Folder not found")

    # Check name uniqueness against the *owner's* flows (the unique constraint
    # is (user_id, name); checking against the actor's namespace would miss
    # collisions when actor != owner).
    if flow.name and flow.name != existing_flow.name:
        name_conflict = (
            await session.exec(
                select(Flow).where(
                    Flow.name == flow.name,
                    Flow.user_id == owner_user_id,
                    Flow.id != existing_flow.id,
                )
            )
        ).first()
        if name_conflict:
            raise HTTPException(status_code=409, detail="Name must be unique")

    # Check endpoint_name uniqueness — same owner-scope rationale.
    if flow.endpoint_name and flow.endpoint_name != existing_flow.endpoint_name:
        endpoint_conflict = (
            await session.exec(
                select(Flow).where(
                    Flow.endpoint_name == flow.endpoint_name,
                    Flow.user_id == owner_user_id,
                    Flow.id != existing_flow.id,
                )
            )
        ).first()
        if endpoint_conflict:
            raise HTTPException(status_code=409, detail="Endpoint name must be unique")

    # None-valued inputs are treated as omitted by default for updates.
    update_data = flow.model_dump(exclude_unset=True, exclude_none=True)

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Choose a different flow name; names must be unique within the folder.

When it happens

Trigger: Occurs when creating or renaming a flow to a name that already exists within the same folder/project scope.

Common situations: See trigger scenarios.


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