Significant-Gravitas/AutoGPT · error · ValueError

Your active organization is not a party to this transfer

Error message

Your active organization is not a party to this transfer

What it means

Error "Your active organization is not a party to this transfer" thrown in Significant-Gravitas/AutoGPT.

Source

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

        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(
    transfer_id: str,
    user_id: str,
    org_id: str,
) -> TransferResponse:
    """Reject a pending transfer request. Caller must be in source or target org."""
    tr = await prisma.transferrequest.find_unique(where={"id": transfer_id})
    if tr is None:
        raise NotFoundError(f"Transfer request {transfer_id} not found")

View on GitHub (pinned to 9c8bb5550f)

Solutions

  1. Switch to the source or target organization before approving the transfer.
  2. Ask an admin of a party organization to approve it.

When it happens

Trigger: Thrown at autogpt_platform/backend/backend/api/features/transfers/db.py:116 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/b315d87b26c3f504. Report an issue: GitHub.