# S09005 {#S09005}

## Error Code {#error_code .section}

S09005

## Error Message {#error_message .section}

`JIT: The assigned variable must have the same type as the indexed value. RefId: S09005`

## Probable Causes {#probable_causes .section}

This error occurs when the assigned variable has the different type to the indexed value. For example, in an assignment operation `a = b[0]`, where *a* is a scalar and *b* is a vector, *a* and *b* must have the same data type.

## Solutions {#solutions .section}

Ensure that the assigned variable has the same type as the indexed value.

**Parent topic:**[Error Code Reference](../../Troubleshooting/ErrorCode.md)

