{"record":{"id":"10ccda7284db5445","repo":"argoproj/argo-workflows","slug":"failed-to-update-workflow-template-w","errorCode":null,"errorMessage":"failed to update workflow template: %w","messagePattern":"failed to update workflow template: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/argo/commands/cron/update.go","lineNumber":91,"sourceCode":"\t\t\treturn err\n\t\t}\n\t\tif cronWf.Namespace == \"\" {\n\t\t\tcronWf.Namespace = client.Namespace(ctx)\n\t\t}\n\t\tcurrent, err := serviceClient.GetCronWorkflow(ctx, &cronworkflowpkg.GetCronWorkflowRequest{\n\t\t\tName:      cronWf.Name,\n\t\t\tNamespace: cronWf.Namespace,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to get existing cron workflow %q to update: %w\", cronWf.Name, err)\n\t\t}\n\t\tcronWf.ResourceVersion = current.ResourceVersion\n\t\tupdated, err := serviceClient.UpdateCronWorkflow(ctx, &cronworkflowpkg.UpdateCronWorkflowRequest{\n\t\t\tNamespace:    cronWf.Namespace,\n\t\t\tCronWorkflow: &cronWf,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to update workflow template: %w\", err)\n\t\t}\n\t\tfmt.Print(getCronWorkflowGet(ctx, updated))\n\t}\n\treturn nil\n}\n","sourceCodeStart":73,"sourceCodeEnd":97,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/cmd/argo/commands/cron/update.go#L73-L97","documentation":"The argo cron update command's UpdateCronWorkflow gRPC call was rejected by the server; the wrapped error carries the server-side reason (spec validation failure, conflict on resourceVersion, RBAC denial).","triggerScenarios":"Thrown at cmd/argo/commands/cron/update.go:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error; fix the spec or re-fetch and retry on resourceVersion conflict","Run argo cron lint on the file first"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35bff19146f5a6ada77468c431f2624bd577e373","analyzedAt":"2026-09-03T19:34:35.908Z","contentChangedAt":"2026-09-03T19:34:35.908Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}