Significant-Gravitas/AutoGPT · error · NotFoundError
Library agent not found for graph {created_graph.id}
Error message
Library agent not found for graph {created_graph.id} What it means
Error "Library agent not found for graph {created_graph.id}" thrown in Significant-Gravitas/AutoGPT.
Source
Thrown at autogpt_platform/backend/backend/api/features/library/db.py:861
graph.version = (
max(v.version for v in existing_versions) + 1 if existing_versions else 1
)
graph_model = graph_db.make_graph_model(graph, user_id)
graph_model.reassign_ids(user_id=user_id, reassign_graph_id=False)
# Validate BEFORE persisting so a credential issue can't leave the new
# version half-saved. Raises GraphActivationError for the caller.
if graph_model.is_active:
graph_model = await before_graph_activate(graph_model, user_id=user_id)
created_graph = await graph_db.create_graph(graph_model, user_id)
library_agent = await get_library_agent_by_graph_id(
user_id, created_graph.id, include_archived=True
)
if not library_agent:
raise NotFoundError(f"Library agent not found for graph {created_graph.id}")
library_agent = await update_library_agent_version_and_settings(
user_id, created_graph
)
if created_graph.is_active:
await graph_db.set_graph_active_version(
graph_id=created_graph.id,
version=created_graph.version,
user_id=user_id,
)
if current_active_version:
await on_graph_deactivate(current_active_version, user_id=user_id)
# Migrate webhook-attached presets to the new version so that
# existing webhook URLs continue to trigger the latest agent version.
# This path is only reached from the CoPilot/AutoPilot agent-update
# flow, which has no user-facing channel for skipped-preset warnings,View on GitHub (pinned to 9c8bb5550f)
Solutions
- Retry the operation; the library entry may not have been created yet.
- If persistent, re-add the graph to the library.
When it happens
Trigger: Thrown at autogpt_platform/backend/backend/api/features/library/db.py:861 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/73ed745584173e3a.
Report an issue: GitHub.