{"record":{"id":"60ff95be4f79c5f7","repo":"argoproj/argo-workflows","slug":"start-date-should-not-be-empty","errorCode":null,"errorMessage":"start date should not be empty","messagePattern":"start date should not be empty","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/argo/commands/cron/backfill.go","lineNumber":73,"sourceCode":"\n\t\t\tcliOps.cronWfName = args[0]\n\t\t\treturn backfillCronWorkflow(cmd.Context(), args[0], cliOps)\n\t\t},\n\t}\n\tcommand.Flags().StringVar(&cliOps.name, \"name\", \"\", \"Backfill name\")\n\tcommand.Flags().StringVar(&cliOps.startDate, \"start\", \"\", \"Start date\")\n\tcommand.Flags().StringVar(&cliOps.endDate, \"end\", \"\", \"End Date\")\n\tcommand.Flags().BoolVar(&cliOps.parallel, \"parallel\", false, \"Enabled all backfile workflows run parallel\")\n\tcommand.Flags().StringVar(&cliOps.argName, \"argname\", \"cronScheduleTime\", \"Schedule time argument name for workflow\")\n\tcommand.Flags().StringVar(&cliOps.dateFormat, \"format\", time.RFC1123, \"Date format for Schedule time value\")\n\tcommand.Flags().IntVar(&cliOps.maxWorkflowCount, \"maxworkflowcount\", 1000, \"Maximum number of generated backfill workflows\")\n\n\treturn command\n}\n\nfunc backfillCronWorkflow(ctx context.Context, cronWFName string, cliOps backfillOpts) error {\n\tif cliOps.startDate == \"\" {\n\t\treturn fmt.Errorf(\"start date should not be empty\")\n\t}\n\tstartTime, err := time.Parse(cliOps.dateFormat, cliOps.startDate)\n\tif err != nil {\n\t\treturn err\n\t}\n\tvar endTime time.Time\n\tif cliOps.endDate != \"\" {\n\t\tendTime, err = time.Parse(cliOps.dateFormat, cliOps.endDate)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t} else {\n\t\tendTime = time.Now()\n\t\tcliOps.endDate = endTime.Format(time.RFC1123)\n\t}\n\n\tctx, apiClient, err := client.NewAPIClient(ctx)\n\tif err != nil {","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/cmd/argo/commands/cron/backfill.go#L55-L91","documentation":"backfillCronWorkflow requires an explicit --start date to delimit the backfill window. This validation guard fires when the user runs 'argo cron backfill' without providing --start (or provides an empty value), giving the command no beginning of the time range over which to create catch-up workflow runs.","triggerScenarios":"Thrown at cmd/argo/commands/cron/backfill.go:73 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --start with a date in the expected --format (default YYYY-MM-DD)","Optionally also pass --end to bound the backfill"],"exampleFix":null,"handlingStrategy":"validation","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"}