# error: proto: field "status" has invalid enum value: 99

- **ID:** `go/grpc-protobuf-enum-out-of-range`
- **Domain:** go
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The protobuf message contains an enum field with a numeric value not defined in the .proto file, often due to version drift.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.0 | active | — | — |

## Workarounds

1. **Add the missing enum value to the .proto file and regenerate.** (90% success)
   ```
   enum Status { UNKNOWN = 0; ACTIVE = 1; INACTIVE = 2; CUSTOM = 99; }
   ```
2. **Use proto.EnumValueMap to map unknown values to a default.** (60% success)
   ```
   import "google.golang.org/protobuf/types/known/anypb"
// Not directly supported; requires custom unmarshaler
   ```

## Dead Ends

- **Ignore the error and continue processing.** — Unmarshal will fail completely, no partial data. (100% fail)
- **Cast the value to int and treat as unknown.** — Protobuf enums are strict; unknown values cause rejection. (95% fail)
