paperclipai/paperclip · error
Test run template not found
Error message
Test run template not found
What it means
Error "Test run template not found" thrown in paperclipai/paperclip.
Source
Thrown at server/src/routes/company-skills.ts:510
action: "company.skill_test_run_template_created",
entityType: "company_skill_test_run_template",
entityId: result.id,
details: { name: result.name },
});
res.status(201).json(result);
},
);
router.patch(
"/companies/:companyId/skill-test-run-templates/:templateId",
validate(companySkillTestRunTemplateUpdateSchema),
async (req, res) => {
const companyId = req.params.companyId as string;
const templateId = req.params.templateId as string;
await assertCanMutateCompanySkills(req, companyId, "skills.edit");
const result = await svc.updateTestRunTemplate(companyId, templateId, req.body, skillActor(req));
if (!result) {
res.status(404).json({ error: "Test run template not found" });
return;
}
const actor = getActorInfo(req);
await logActivity(db, {
companyId,
actorType: actor.actorType,
actorId: actor.actorId,
agentId: actor.agentId,
runId: actor.runId,
agentApiKeyId: actor.agentApiKeyId,
action: "company.skill_test_run_template_updated",
entityType: "company_skill_test_run_template",
entityId: result.id,
details: { changedKeys: Object.keys(req.body).sort() },
});
res.json(result);
},
);View on GitHub (pinned to 120ae5428f)
Solutions
- Verify the id in the request path or body refers to an existing record in this company; re-list the parent collection to get a valid id.
- Check that the record was not deleted or archived, and that the request is scoped to the correct companyId.
When it happens
Trigger: Thrown at server/src/routes/company-skills.ts:510 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/e0f6040672a63c67.
Report an issue: GitHub.