{"record":{"id":"a2ee658e8d87e24d","repo":"windmill-labs/windmill","slug":"the-item-p-has-an-unrecognized-type-ending-ty","errorCode":null,"errorMessage":"The item ${p} has an unrecognized type ending ${typeEnding}","messagePattern":"The item (.+?) has an unrecognized type ending (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/types.ts","lineNumber":292,"sourceCode":"    await pushTrigger(\"gcp\", workspace, p, befObj, newObj, permissionedAsContext);\n  } else if (typeEnding === \"azure_trigger\") {\n    await pushTrigger(\"azure\", workspace, p, befObj, newObj, permissionedAsContext);\n  } else if (typeEnding === \"email_trigger\") {\n    await pushTrigger(\"email\", workspace, p, befObj, newObj, permissionedAsContext);\n  } else if (typeEnding === \"native_trigger\") {\n    await pushNativeTrigger(workspace, p, befObj, newObj);\n  } else if (typeEnding === \"user\") {\n    await pushWorkspaceUser(workspace, p, befObj, newObj);\n  } else if (typeEnding === \"group\") {\n    await pushGroup(workspace, p, befObj, newObj);\n  } else if (typeEnding === \"workspace_dependencies\") {\n    await pushWorkspaceDependencies(workspace, p, befObj, newObj);\n  } else if (typeEnding === \"settings\") {\n    await pushWorkspaceSettings(workspace, p, befObj, newObj);\n  } else if (typeEnding === \"encryption_key\") {\n    await pushWorkspaceKey(workspace, p, befObj, newObj, keyPushOpts);\n  } else {\n    throw new Error(\n      `The item ${p} has an unrecognized type ending ${typeEnding}`\n    );\n  }\n}\n\nexport function parseFromPath(p: string, content: string): any {\n  return isWorkspaceDependencies(p)\n    ? content\n    : p.endsWith(\".yaml\")\n      ? yamlParseContent(p, content)\n      : p.endsWith(\".json\")\n        ? JSON.parse(content)\n        : content;\n}\nexport function parseFromFile(p: string): any {\n  if (p.endsWith(\".json\")) {\n    return JSON.parse(readTextFileSync(p));\n  } else if (p.endsWith(\".yaml\") || p.endsWith(\".yml\")) {","sourceCodeStart":274,"sourceCodeEnd":310,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/types.ts#L274-L310","documentation":"pushObj's type dispatch fell through every known item type: the path's suffix is not any supported sync item kind, so no dedicated push function exists for it. Usually caused by an unsupported or misspelled file ending in the sync directory.","triggerScenarios":"Thrown at cli/src/types.ts:292 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the file ending against supported types (script, flow, app, resource, variable, schedule, trigger kinds, user, group, settings).","Remove or rename files that are not sync items out of the synced folder.","Exclude unrelated files from the sync root."],"exampleFix":null,"handlingStrategy":"validation","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"}