Significant-Gravitas/AutoGPT · error · NotFoundError
Graph #{preset.graph_id} v{preset.graph_version} not found o
Error message
Graph #{preset.graph_id} v{preset.graph_version} not found or not accessible What it means
Error "Graph #{preset.graph_id} v{preset.graph_version} not found or not accessible" thrown in Significant-Gravitas/AutoGPT.
Source
Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2007
Returns:
The newly created LibraryAgentPreset.
Raises:
DatabaseError: If there's a database error in creating the preset.
"""
logger.debug(
f"Creating preset ({repr(preset.name)}) for user #{user_id}",
)
# A preset may only reference a graph the caller can access (own / store /
# library); get_graph() enforces that and a foreign/unknown graph is None.
# The preset then inherits the graph's org/team (resource-follows-parent),
# resolved here so callers can't forget it.
graph = await graph_db.get_graph(
preset.graph_id, preset.graph_version, user_id=user_id
)
if not graph:
raise NotFoundError(
f"Graph #{preset.graph_id} v{preset.graph_version} "
"not found or not accessible"
)
# Refuse to attach a webhook the caller doesn't own
if webhook_id:
webhook = await integrations_db.get_webhook(webhook_id)
if webhook.user_id != user_id:
raise NotFoundError(f"Webhook #{webhook_id} not found")
create_input = prisma.types.AgentPresetCreateInput(
userId=user_id,
name=preset.name,
description=preset.description,
agentGraphId=preset.graph_id,
agentGraphVersion=preset.graph_version,
isActive=preset.is_active,
webhookId=webhook_id,View on GitHub (pinned to 9c8bb5550f)
Solutions
- Verify the graph ID and version referenced by the preset still exist and are accessible.
- Recreate the preset from a current graph version.
When it happens
Trigger: Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2007 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/6b5b35d4770acfde.
Report an issue: GitHub.