{"record":{"id":"ecfeb687810801d9","repo":"eyaltoledano/claude-task-master","slug":"warning-the-following-task-ids-were-not-found","errorCode":null,"errorMessage":"Warning: The following task IDs were not found: ${nonExistentIds.join(', ')}","messagePattern":"Warning: The following task IDs were not found: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"scripts/modules/commands.js","lineNumber":3389,"sourceCode":"\t\t\t\t\t\t\t\t\t(t) =>\n\t\t\t\t\t\t\t\t\t\tt.dependencies &&\n\t\t\t\t\t\t\t\t\t\tt.dependencies.includes(parseInt(taskId, 10))\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tif (dependentTasks.length > 0) {\n\t\t\t\t\t\t\t\t\tdependentTaskMessages.push(\n\t\t\t\t\t\t\t\t\t\t`  - Task ${taskId}: ${dependentTasks.length} dependent tasks (${dependentTasks.map((t) => t.id).join(', ')})`\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Handle case where findTaskById returned null for the task property (should be rare)\n\t\t\t\t\t\t\tnonExistentIds.push(`${taskId} (error finding details)`);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (nonExistentIds.length > 0) {\n\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\tchalk.yellow(\n\t\t\t\t\t\t\t`Warning: The following task IDs were not found: ${nonExistentIds.join(', ')}`\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif (existingTasksToRemove.length === 0) {\n\t\t\t\t\tconsole.log(chalk.blue('No existing tasks found to remove.'));\n\t\t\t\t\tprocess.exit(0);\n\t\t\t\t}\n\n\t\t\t\t// Skip confirmation if --yes flag is provided\n\t\t\t\tif (!options.yes) {\n\t\t\t\t\tconsole.log();\n\t\t\t\t\tconsole.log(\n\t\t\t\t\t\tchalk.red.bold(\n\t\t\t\t\t\t\t`⚠️ WARNING: This will permanently delete the following ${existingTasksToRemove.length} item(s):`\n\t\t\t\t\t\t)","sourceCodeStart":3371,"sourceCodeEnd":3407,"githubUrl":"https://github.com/eyaltoledano/claude-task-master/blob/c0c98d367c55296bfe69e65680625b6db437af02/scripts/modules/commands.js#L3371-L3407","documentation":"In scripts/modules/commands.js, commands that accept task ID lists verify each ID before acting. IDs that cannot be found (or error while being looked up) are collected and reported with this warning so the user knows part of the requested set doesn't exist; the command typically continues with the valid IDs.","triggerScenarios":"registerCommands()-registered commands (e.g. update/remove/expand with --id lists) invoked with task IDs absent from tasks.json, or IDs that throw while fetching details ('error finding details').","commonSituations":"Stale IDs after renumbering/regenerating tasks.json, referencing subtask-form IDs where plain IDs are expected, typos in IDs, operating on a different tasks.json than the one the IDs came from.","solutions":["Run the task list command to see current valid IDs and correct the input","Remove the nonexistent IDs from the command's ID list and re-run","Check you are in the project directory whose tasks.json contains those IDs","Verify subtask IDs use the correct notation (e.g. 1.2) expected by the command"],"exampleFix":"// before\ntm update-task --id=5,9 --prompt=\"...\"  # 9 not found\n// after\ntm update-task --id=5 --prompt=\"...\"  # only existing IDs","handlingStrategy":"validation","validationCode":"const existing = new Set((await listTasks()).map(t => String(t.id)));\nconst missing = requestedIds.filter(id => !existing.has(String(id)));\nif (missing.length) throw new Error(`Unknown task IDs: ${missing.join(', ')}`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["List tasks to confirm IDs before batch commands","Regenerate ID references after regenerating or renumbering tasks.json","Use the correct subtask notation (e.g. 1.2) where applicable","Run commands from the project directory containing the target tasks.json"],"tags":["tasks","cli","missing-resource"],"backgroundTag":"task-id-not-found","analyzedSha":"c0c98d367c55296bfe69e65680625b6db437af02","analyzedAt":"2026-08-29T02:56:26.071Z","schemaVersion":2},"datasetVersion":"2026-08-29T07:17:48.351Z"}