# ValueError: Duplicate param name 'item_id' in path operation

- **ID:** `python/starlette-path-operation-conflict`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Multiple path parameters in a route have the same name, causing ambiguity.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Rename one of the path parameters to be unique** (95% success)
   ```
   @app.route('/items/{item_id}/details/{detail_id}')
async def get_detail(item_id: str, detail_id: str):
    ...
   ```
2. **Combine parameters into a single path segment** (85% success)
   ```
   @app.route('/items/{item_id}')
async def get_item(item_id: str):
    ...
   ```

## Dead Ends

- **Removing one of the parameters without adjusting the route** — Breaks the route logic; URL pattern becomes incorrect. (80% fail)
- **Using different variable names but same path segment** — Starlette still sees duplicate path parameters. (90% fail)
