# ERR: Invalid consumer group ID: group 'mygroup' does not exist

- **ID:** `redis/stream-consumer-group-invalid-id`
- **Domain:** redis
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 92%

## Root Cause

A command referenced a consumer group that has not been created on the specified stream key.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Redis 6.2 | active | — | — |
| Redis 7.0 | active | — | — |
| Redis 7.2 | active | — | — |

## Workarounds

1. **Create the consumer group with XGROUP CREATE mystream mygroup $ (or 0 for all messages). Example: redis-cli XGROUP CREATE mystream mygroup $.** (95% success)
   ```
   Create the consumer group with XGROUP CREATE mystream mygroup $ (or 0 for all messages). Example: redis-cli XGROUP CREATE mystream mygroup $.
   ```
2. **Verify the group exists with XINFO GROUPS mystream before using it in XREADGROUP.** (90% success)
   ```
   Verify the group exists with XINFO GROUPS mystream before using it in XREADGROUP.
   ```

## Dead Ends

- **Recreate the stream key with the same name** — Deletes all stream data and existing consumer groups; the group still won't exist unless explicitly created. (60% fail)
- **Use XINFO GROUPS mystream to list groups, but not create one** — Only lists groups; does not resolve the missing group error. (80% fail)
