Significant-Gravitas/AutoGPT · error · ValueError
Graph execution #{graph_exec_id} can't be turned into a pres
Error message
Graph execution #{graph_exec_id} can't be turned into a preset because it was run before this feature existed and so the input credentials were not saved. What it means
Error "Graph execution #{graph_exec_id} can't be turned into a preset because it was run before this feature existed and so the input credentials were not saved." thrown in Significant-Gravitas/AutoGPT.
Source
Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2086
graph_exec_id = create_request.graph_execution_id
graph_execution = await get_graph_execution(user_id, graph_exec_id)
if not graph_execution:
raise NotFoundError(f"Graph execution #{graph_exec_id} not found")
# Sanity check: credential inputs must be available if required for this preset
if graph_execution.credential_inputs is None:
graph = await graph_db.get_graph(
graph_id=graph_execution.graph_id,
version=graph_execution.graph_version,
user_id=graph_execution.user_id,
include_subgraphs=True,
)
if not graph:
raise NotFoundError(
f"Graph #{graph_execution.graph_id} not found or accessible"
)
elif len(graph.regular_credentials_inputs) > 0:
raise ValueError(
f"Graph execution #{graph_exec_id} can't be turned into a preset "
"because it was run before this feature existed "
"and so the input credentials were not saved."
)
logger.debug(
f"Creating preset for user #{user_id} from graph execution #{graph_exec_id}",
)
return await create_preset(
user_id=user_id,
preset=library_model.LibraryAgentPresetCreatable(
inputs=graph_execution.inputs,
credentials=graph_execution.credential_inputs or {},
graph_id=graph_execution.graph_id,
graph_version=graph_execution.graph_version,
name=create_request.name,
description=create_request.description,
is_active=create_request.is_active,View on GitHub (pinned to 9c8bb5550f)
Solutions
- Re-run the agent and create the preset from the new execution so credentials are captured.
- Manually create a preset and supply the required credentials.
When it happens
Trigger: Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2086 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/7cee2bb0acc56f26.
Report an issue: GitHub.