# PivotFormulaErrorCode (@salmonui/pivot-table/engine)

> The PivotFormulaErrorCode type of @salmonui/pivot-table/engine: What is wrong with a formula, for applications that translate the message.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotFormulaErrorCode

```ts
import type { PivotFormulaErrorCode } from '@salmonui/pivot-table/engine';
```

Also exported from `@salmonui/pivot-table/engine/formula`.

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine.md).

## Reference

Kind: type

```ts
type PivotFormulaErrorCode = 'unterminated' | 'unexpectedCharacter' | 'expected' | 'expectedBeforeEnd' | 'unknownAggregate' | 'missingField' | 'unknownField' | 'expectedReference' | 'unknownName' | 'unknownFunction' | 'ifArguments' | 'arguments' | 'argumentRange' | 'unexpectedEnd' | 'unexpected';
```

What is wrong with a formula, for applications that translate the message.
