{"record":{"id":"17d66bdbb587cfaa","repo":"windmill-labs/windmill","slug":"datatable-opts-datatable-is-not-in-the-work","errorCode":null,"errorMessage":"--datatable '${opts.datatable}' is not in the workspace's datatable list (${datatables.join(\", \")}). Continuing anyway.","messagePattern":"--datatable '(.+?)' is not in the workspace's datatable list \\((.+?)\\)\\. Continuing anyway\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/app/new.ts","lineNumber":433,"sourceCode":"  }\n\n  // Data configuration\n  let dataConfig: DataConfig = {};\n  let createSchemaSQL: string | undefined;\n  let schemaName: string | undefined;\n\n  // Treat the run as non-interactive once any required-for-non-interactive flag is set.\n  // In that mode, skip all datatable/overwrite/desktop prompts unless the user opted in\n  // via the corresponding flag.\n  const nonInteractive =\n    opts.summary !== undefined ||\n    opts.path !== undefined ||\n    opts.framework !== undefined;\n\n  if (opts.datatable !== undefined) {\n    // Non-interactive datatable + (optional) schema configuration\n    if (datatables.length > 0 && !datatables.includes(opts.datatable)) {\n      log.warn(\n        colors.yellow(\n          `--datatable '${opts.datatable}' is not in the workspace's datatable list (${datatables.join(\", \")}). Continuing anyway.`\n        )\n      );\n    }\n    dataConfig.datatable = opts.datatable;\n    if (opts.schema !== undefined) {\n      if (!/^[a-z_][a-z0-9_]*$/.test(opts.schema)) {\n        log.error(\n          colors.red(\n            `--schema must start with a letter or underscore and contain only lowercase letters, numbers, and underscores: ${opts.schema}`\n          )\n        );\n        return;\n      }\n      schemaName = opts.schema;\n      dataConfig.schema = schemaName;\n      const existingSchemas = datatableSchemas.get(opts.datatable) ?? [];","sourceCodeStart":415,"sourceCodeEnd":451,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/app/new.ts#L415-L451","documentation":"Advisory warning in `wmill app new`: the --datatable value was not found among the datatables the CLI fetched for the workspace (typo, wrong workspace, or not-yet-created table). Because --datatable was passed explicitly in non-interactive mode, creation proceeds anyway rather than failing.","triggerScenarios":"Thrown at cli/src/commands/app/new.ts:433 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the datatable name spelling and workspace with `wmill datatable list`","Create the datatable in the target workspace before running the command","Drop --datatable to be prompted interactively for the correct table"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}