{"record":{"id":"0b19663f15ae49f0","repo":"argoproj/argo-workflows","slug":"failed-to-submit-workflow-w","errorCode":null,"errorMessage":"failed to submit workflow: %w","messagePattern":"failed to submit workflow: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/argo/commands/submit.go","lineNumber":206,"sourceCode":"\tif err := validateOptions([]wfv1.Workflow{tempwf}, submitOpts, cliOpts); err != nil {\n\t\treturn err\n\t}\n\tif cliOpts.ScheduledTime != \"\" {\n\t\t_, err := time.Parse(time.RFC3339, cliOpts.ScheduledTime)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"scheduled-time contains invalid time.RFC3339 format. (e.g.: `2006-01-02T15:04:05-07:00`)\")\n\t\t}\n\t\tsubmitOpts.Annotations = fmt.Sprintf(\"%s=%s\", wfcommon.AnnotationKeyCronWfScheduledTime, cliOpts.ScheduledTime)\n\t}\n\n\tcreated, err := serviceClient.SubmitWorkflow(ctx, &workflowpkg.WorkflowSubmitRequest{\n\t\tNamespace:     namespace,\n\t\tResourceKind:  kind,\n\t\tResourceName:  name,\n\t\tSubmitOptions: submitOpts,\n\t})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to submit workflow: %w\", err)\n\t}\n\n\tif err = printWorkflow(created, common.GetFlags{Output: cliOpts.Output}); err != nil {\n\t\treturn err\n\t}\n\n\treturn common.WaitWatchOrLog(ctx, serviceClient, namespace, []string{created.Name}, *cliOpts)\n}\n\nfunc submitWorkflows(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, namespace string, workflows []wfv1.Workflow, submitOpts *wfv1.SubmitOpts, cliOpts *common.CliSubmitOpts) error {\n\tif err := validateOptions(workflows, submitOpts, cliOpts); err != nil {\n\t\treturn err\n\t}\n\n\tif len(workflows) == 0 {\n\t\treturn errors.New(\"no workflow found in given files\")\n\t}\n","sourceCodeStart":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/cmd/argo/commands/submit.go#L188-L224","documentation":"The SubmitWorkflow gRPC call made by argo submit --from failed on the server side; the wrapped error is the server's rejection (validation failure, RBAC denial, cluster error) after all client-side option validation already passed.","triggerScenarios":"Thrown at cmd/argo/commands/submit.go:206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped server error message","Lint the source resource (workflow template / cluster workflow template / cron workflow)","Verify RBAC for submitting from that resource"],"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"}