{"record":{"id":"5e072dd8c1572974","repo":"Significant-Gravitas/AutoGPT","slug":"your-organization-is-not-a-party-to-this-transfer","errorCode":null,"errorMessage":"Your organization is not a party to this transfer request","messagePattern":"Your organization is not a party to this transfer request","errorType":"validation","errorClass":"ValueError","httpStatus":400,"severity":"error","filePath":"autogpt_platform/backend/backend/api/features/transfers/db.py","lineNumber":165,"sourceCode":"\nasync def execute_transfer(\n    transfer_id: str,\n    user_id: str,\n    org_id: str,\n) -> TransferResponse:\n    \"\"\"Execute an approved transfer -- move the resource to the target org.\n\n    Requires both source and target approvals, and the caller's active org\n    must be a party to the transfer — TRANSFER_RESOURCES is granted to every\n    personal-org owner, so without this check any authenticated user could\n    execute an approved transfer between two unrelated orgs.\n    \"\"\"\n    tr = await prisma.transferrequest.find_unique(where={\"id\": transfer_id})\n    if tr is None:\n        raise NotFoundError(f\"Transfer request {transfer_id} not found\")\n\n    if org_id not in (tr.sourceOrganizationId, tr.targetOrganizationId):\n        raise ValueError(\"Your organization is not a party to this transfer request\")\n\n    if tr.sourceApprovedByUserId is None or tr.targetApprovedByUserId is None:\n        raise ValueError(\n            \"Transfer requires approval from both source and target organizations\"\n        )\n\n    if tr.status == \"COMPLETED\":\n        raise ValueError(\"Transfer has already been executed\")\n\n    if tr.status == \"REJECTED\":\n        raise ValueError(\"Cannot execute a rejected transfer\")\n\n    await _move_resource(\n        resource_type=tr.resourceType,\n        resource_id=tr.resourceId,\n        target_org_id=tr.targetOrganizationId,\n    )\n","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/Significant-Gravitas/AutoGPT/blob/9c8bb5550f446ba5d3046b78896578742495b3cf/autogpt_platform/backend/backend/api/features/transfers/db.py#L147-L183","documentation":"Error \"Your organization is not a party to this transfer request\" thrown in Significant-Gravitas/AutoGPT.","triggerScenarios":"Thrown at autogpt_platform/backend/backend/api/features/transfers/db.py:165 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Switch to an organization that is a party to this transfer.","Ask an admin of a party organization to act on it."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8bb5550f446ba5d3046b78896578742495b3cf","analyzedAt":"2026-08-14T17:17:21.957Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}