> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I fix `CommError, Run does not exist` during a sweep?

If you see both `CommError, Run does not exist` and `ERROR Error uploading` during a sweep, the most likely cause is that you're setting a run ID manually in your code:

```python theme={null}
wandb.init(id="some-string")
```

You can't set a run ID for W\&B Sweeps because W\&B automatically generates random, unique IDs for runs created by sweeps. Run IDs must be unique within a project.

To fix this, remove the `id` parameter from `wandb.init()`. If you want to set a custom name that appears on tables and graphs, use the `name` parameter instead:

```python theme={null}
wandb.init(name="a helpful readable run name")
```

For more information, see [Sweeps troubleshooting](/models/sweeps/troubleshoot-sweeps/).

***

<Badge stroke shape="pill" color="orange" size="md">[Sweeps](/support/models/tags/sweeps)</Badge><Badge stroke shape="pill" color="orange" size="md">[Runs](/support/models/tags/runs)</Badge>
