{"record":{"id":"537af7aab8abc357","repo":"BerriAI/litellm","slug":"team-doesn-t-exist-got-team-row","errorCode":null,"errorMessage":"Team doesn't exist. Got={team_row}","messagePattern":"Team doesn't exist\\. Got=(.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":2233,"sourceCode":"\n        updated_kv = prisma_client.jsonify_team_object(db_data=updated_kv)\n        team_update_data: Final[Mapping[str, object]] = updated_kv\n        team_row: Final[LiteLLM_TeamTable | None] = _nullable(\n            await _team_db(prisma_client).update(\n                where={\"team_id\": data.team_id},\n                data=team_update_data,\n                # `object_permission` is included so `_refresh_cached_team`\n                # doesn't write a cached team with the relation nulled out —\n                # see team_model_add for the full rationale.\n                include={\n                    \"litellm_model_table\": True,\n                    \"object_permission\": True,\n                },\n            )\n        )\n\n        if team_row is None or team_row.team_id is None:\n            raise HTTPException(\n                status_code=400,\n                detail={\"error\": f\"Team doesn't exist. Got={team_row}\"},\n            )\n\n        verbose_proxy_logger.info(\"Successfully updated team - %s, info\", team_row.team_id)\n        await sync_team_access_group_membership(prisma_client=prisma_client, team_id=team_row.team_id)\n        await _refresh_cached_team(\n            team_row=team_row,\n            user_api_key_cache=user_api_key_cache,\n            proxy_logging_obj=proxy_logging_obj,\n        )\n\n        # Enterprise Feature - Audit Logging. Enable with litellm.store_audit_logs = True\n        if litellm.store_audit_logs is True:\n            await _create_team_update_audit_log(\n                existing_team_row=existing_team_row,\n                updated_kv=updated_kv,\n                team_id=data.team_id,","sourceCodeStart":2215,"sourceCodeEnd":2251,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L2215-L2251","documentation":"Error \"Team doesn't exist. Got={team_row}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:2233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the team_id is correct and the team still exists (list teams via /team/list)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}