---
url: /errors/duplicate_instrument_in_switch.md
---
# `DUPLICATE_INSTRUMENT_IN_SWITCH`

`DUPLICATE_INSTRUMENT_IN_SWITCH`

## Description

The same instrument ID appears more than once in the switch.

## HTTP Status

`422 Unprocessable Entity`

## `doc_url` Format

The `doc_url` value is an absolute URL and changes by environment:

`<docs-base-url>/errors/duplicate_instrument_in_switch`

## Typical Causes

* The request contains duplicate instrument IDs.

## Example

Response:

```json
{
  "errors": [
    {
      "code": "DUPLICATE_INSTRUMENT_IN_SWITCH",
      "message": "Instrument 019d91fc-f800-7000-8000-000000000021 was found at least twice in the same switch",
      "doc_url": "https://docs.example.com/errors/duplicate_instrument_in_switch"
    }
  ]
}
```

## How To Fix

1. Remove the duplicate instrument entry.
2. Submit the switch again.
