# S03042 {#s03042}

## Error Code {#error_code .section}

S03042

## Error Message {#error_message .section}

`The number of result columns must match the number of metrics. RefId: S03042`

## Probable Causes {#probable_causes .section}

The calculation formulas specified by the *metric* parameter of `createTimeSeriesEngine` function will be output to the ouput table specified by *outputTable* parameter. This error occurs when the number of result columns doesn’t match the number of metrics.

## Solutions {#solutions .section}

Make sure the number of result columns matches the number of metrics. Refer to [createTimeSeriesEngine](../../Functions/c/createTimeSeriesEngine.md) for how to set appropriate schema for output table.

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

