Significant-Gravitas/AutoGPT · error · ValueError

Target organization has already approved this transfer

Error message

Target organization has already approved this transfer

What it means

Error "Target organization has already approved this transfer" thrown in Significant-Gravitas/AutoGPT.

Source

Thrown at autogpt_platform/backend/backend/api/features/transfers/db.py:107

    if tr.status in ("COMPLETED", "REJECTED"):
        raise ValueError(f"Cannot approve a transfer with status '{tr.status}'")

    update_data: dict = {}

    if org_id == tr.sourceOrganizationId:
        if tr.sourceApprovedByUserId is not None:
            raise ValueError("Source organization has already approved this transfer")
        update_data["sourceApprovedByUserId"] = user_id
        if tr.targetApprovedByUserId is not None:
            # Both sides approved — ready for execution (NOT completed yet)
            update_data["status"] = "TARGET_APPROVED"
        else:
            update_data["status"] = "SOURCE_APPROVED"

    elif org_id == tr.targetOrganizationId:
        if tr.targetApprovedByUserId is not None:
            raise ValueError("Target organization has already approved this transfer")
        update_data["targetApprovedByUserId"] = user_id
        if tr.sourceApprovedByUserId is not None:
            # Both sides approved — ready for execution (NOT completed yet)
            update_data["status"] = "SOURCE_APPROVED"
        else:
            update_data["status"] = "TARGET_APPROVED"

    else:
        raise ValueError("Your active organization is not a party to this transfer")

    updated = await prisma.transferrequest.update(
        where={"id": transfer_id},
        data=update_data,
    )
    return TransferResponse.from_db(updated)


async def reject_transfer(

View on GitHub (pinned to 9c8bb5550f)

Solutions

  1. No action needed; the target organization already approved.
  2. Wait for the source organization to approve.

When it happens

Trigger: Thrown at autogpt_platform/backend/backend/api/features/transfers/db.py:107 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Significant-Gravitas/AutoGPT@9c8bb5550f (2026-08-14). Data as JSON: /api/errors/d031ad506b534b2b. Report an issue: GitHub.