{"record":{"id":"856e129a552b204d","repo":"argoproj/argo-workflows","slug":"failed-to-delete-sync-limit-w","errorCode":null,"errorMessage":"failed to delete sync limit: %w","messagePattern":"failed to delete sync limit: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/argo/commands/sync/delete.go","lineNumber":72,"sourceCode":"\tctx, apiClient, err := client.NewAPIClient(ctx)\n\tif err != nil {\n\t\treturn err\n\t}\n\tserviceClient, err := apiClient.NewSyncServiceClient(ctx)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tnamespace := client.Namespace(ctx)\n\treq := &syncpkg.DeleteSyncLimitRequest{\n\t\tCmName:    opts.cmName,\n\t\tNamespace: namespace,\n\t\tKey:       key,\n\t\tType:      syncpkg.SyncConfigType(syncpkg.SyncConfigType_value[opts.syncType]),\n\t}\n\n\tif _, err := serviceClient.DeleteSyncLimit(ctx, req); err != nil {\n\t\treturn fmt.Errorf(\"failed to delete sync limit: %w\", err)\n\t}\n\n\tfmt.Printf(\"Sync limit deleted\\n\")\n\treturn nil\n}\n","sourceCodeStart":54,"sourceCodeEnd":78,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/cmd/argo/commands/sync/delete.go#L54-L78","documentation":"DeleteSyncLimitCommand wraps any error returned by the DeleteSyncLimit gRPC call. It fires when removing a sync limit fails — commonly because the named key/configmap does not exist, the limit is database-backed with the wrong type flag, or the caller lacks RBAC permission — with the underlying server error preserved via %w.","triggerScenarios":"Thrown at cmd/argo/commands/sync/delete.go:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the key, --type, and --cm-name match an existing limit","Check RBAC for deleting the sync configmap or DB row"],"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-08T15:18:49.778Z"}