{"record":{"id":"8ee55e9c4ad23ebb","repo":"paperclipai/paperclip","slug":"test-input-not-found","errorCode":null,"errorMessage":"Test input not found","messagePattern":"Test input not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/company-skills.ts","lineNumber":425,"sourceCode":"        entityType: \"company_skill_test_input\",\n        entityId: result.id,\n        details: { skillId, name: result.name },\n      });\n      res.status(201).json(result);\n    },\n  );\n\n  router.patch(\n    \"/companies/:companyId/skills/:skillId/test-inputs/:inputId\",\n    validate(companySkillTestInputUpdateSchema),\n    async (req, res) => {\n      const companyId = req.params.companyId as string;\n      const skillId = req.params.skillId as string;\n      const inputId = req.params.inputId as string;\n      await assertCanMutateCompanySkills(req, companyId, \"skills.edit\", () => skillPolicyResource({ companyId, skillId }));\n      const result = await svc.updateTestInput(companyId, skillId, inputId, req.body);\n      if (!result) {\n        res.status(404).json({ error: \"Test input not found\" });\n        return;\n      }\n      const actor = getActorInfo(req);\n      await logActivity(db, {\n        companyId,\n        actorType: actor.actorType,\n        actorId: actor.actorId,\n        agentId: actor.agentId,\n        runId: actor.runId,\n        agentApiKeyId: actor.agentApiKeyId,\n        action: \"company.skill_test_input_updated\",\n        entityType: \"company_skill_test_input\",\n        entityId: result.id,\n        details: { skillId, changedKeys: Object.keys(req.body).sort() },\n      });\n      res.json(result);\n    },\n  );","sourceCodeStart":407,"sourceCodeEnd":443,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/routes/company-skills.ts#L407-L443","documentation":"Error \"Test input not found\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/routes/company-skills.ts:425 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}