# S09006 {#S09006}

## Error Code {#error_code .section}

S09006

## Error Message {#error_message .section}

`JIT: Scalar assignment from vector requires scalar indexing. RefId: S09006`

## Probable Causes {#probable_causes .section}

When assigning an element in a vector to a scalar, the index used to access the vector must be a scalar. For example, in an assignment operation `a = b[c]`, where *a* is a scalar and *b* is a vector, the index *c* must be a scalar.

## Solutions {#solutions .section}

Ensure that when assigning an element in a vector to a scalar, the index is a scalar.

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

