# Problem codes

> Every SBE diagnostic code and Parquet check the app reports, what it means and how to fix it.

Page: https://structure.fi/tools/market-data-visualizer/guides/problem-codes/

Open in the Market Data Visualizer: https://structure.fi/tools/market-data-visualizer/app/#open?article=problem-codes

The Market Data Visualizer never discards a whole schema for one mistake: it parses everything it can and lists each issue in **Diagnostics** with a severity, code, message, and source location. Selecting a row jumps to the source line, links the code to its section here, and links `where` to the affected node.

- **error**: breaks a format rule; the affected part cannot be reliably laid out or read.
- **warning**: non-standard or unusual; the app chose an interpretation—verify it matches intent.
- **info**: nothing is broken, but either input is needed from you or a common trading-data pitfall was detected.

SBE codes are grouped by processing stage below (see [how an SBE message is laid out](https://structure.fi/guides/sbe-message-layout/) for the underlying rules). Parquet checks appear at the end.

## Reading the files

Reported while checking UTF-8, XML syntax, and `xi:include` resolution in the [project](https://structure.fi/guides/glossary/#project).

### NotUtf8

File contains invalid UTF-8 (or is a binary file that no schema references). The message names the first bad byte; the app reads up to that point.

Fix: re-save the schema as UTF-8, or remove the accidental binary file.

### XmlNotWellFormed

Malformed XML (unclosed tag, duplicate/unquoted attribute, undeclared namespace prefix). Declarations above the error are still laid out.

Fix: repair the XML at the reported location.

### IncludeNotProvided

A schema's `xi:include` references an `href` with no matching file in the project. Types from that file remain undefined, triggering [UnresolvedType](https://structure.fi/tools/market-data-visualizer/guides/problem-codes.md#unresolvedtype).

Fix: add the included file to the same project with the filename `href` expects ([include](https://structure.fi/guides/glossary/#include)).

### IncludeAmbiguous

Multiple project files match an `xi:include` `href` (for example, two copies of `common-types.xml`). The app picks the shortest path and lists the others.

Fix: remove duplicate copies or qualify `href` with its folder.

### IncludeCycle

Files include each other in a cycle. The app stops before re-inserting an already-included file.

Fix: break the cycle; include each shared file once from the root schema.

### NotIncluded

Warning: an XML file in the project is neither a schema root nor included by any schema, so nothing in it is used.

Fix: include it from the schema that needs it, or remove it from the project.

### UnknownFormat

A project file is neither an SBE XML schema nor a [Parquet](https://structure.fi/guides/glossary/#parquet) file.

Fix: none needed, or remove the file if added by mistake.

### LimitExceeded

Input hit an app safety cap (file size, file count, include depth, element nesting depth, or total elements/attributes). The message names the limit reached; reading stops there.

Fix: check you opened the intended file; for very large schemas, include only required files.

### StringTableFull

Combined identifiers and text in one load exceeded the 4 GiB cap—almost always an unrelated huge file added by mistake.

Fix: remove the oversized file from the project.

## Reading the schema

Reported while parsing SBE XML elements and attributes.

### UnrecognisedNamespace

Root element uses an unknown XML namespace (accepted: SBE 1.0, SBE 1.0 RCs, SBE 2.0 RC). The app parses it as SBE 1.0.

Fix: use a standard SBE namespace, or ignore the warning if the venue intentionally defines its own.

### NotASchemaRoot

Root element is not `<messageSchema>` (typically a shared-types fragment opened alone). Defaults apply, including little-endian [byte order](https://structure.fi/guides/glossary/#byte-order).

Fix: open the root schema together with the fragment in the same project.

### DuplicateSchemaId

Two schemas in one project share the same `id`, making dispatch ambiguous.

Fix: put different versions of one schema in separate projects, or assign distinct `id` values.

### UnknownElement

An element is not permitted in its parent (e.g., `<field>` inside `<types>`, or a typo). The app flags the row and lays out surrounding nodes.

Fix: fix the element name or move it to a valid parent.

### UnknownAttribute

An unrecognised attribute in the SBE namespace (e.g., `presense`). Kept for display but ignored; attributes in a separate venue namespace do not trigger this warning.

Fix: fix the typo, or move venue extensions into the venue's own XML namespace.

### MissingAttribute

A required SBE attribute is missing (e.g., field `name`/`type`, type `primitiveType`, message `id`, [set](https://structure.fi/guides/glossary/#set) choice bit).

Fix: add the named attribute.

### InvalidAttributeValue

An attribute value fails validation: non-numeric integer, `presence` outside `required`/`optional`/`constant`, `nullValue` outside its [primitive type](https://structure.fi/guides/glossary/#primitive-type) range, or `valueRef` not formatted as `Enum.value`.

Fix: correct the quoted value.

### NonStandardTypeReference

Inside a [composite](https://structure.fi/guides/glossary/#composite), a `<type>` element uses `type="…"` instead of `primitiveType` (a venue shorthand for type reuse). The app interprets it as `<ref>`.

Fix: replace `<type name="…" type="…"/>` with `<ref name="…" type="…"/>`.

### MemberOrder

Members inside a message or group violate SBE wire order: fixed fields, then [repeating groups](https://structure.fi/guides/glossary/#repeating-group), then [variable-length data](https://structure.fi/guides/glossary/#variable-length-data) ([why data fields come last](https://structure.fi/guides/sbe-variable-length-data/#why-data-fields-come-last)). The app preserves source order.

Fix: reorder members to fields → groups → data, unless matching a non-standard venue decoder on purpose.

### PresenceMismatch

A field's `presence` conflicts with its type's [presence](https://structure.fi/guides/glossary/#presence) (e.g., optional field referencing a required type). The app follows the field's `presence`.

Fix: align the field and type presence attributes.

### NullValueOnRequired

A non-optional type or field declares `nullValue`, which has no effect when required.

Fix: remove `nullValue`, or set `presence="optional"` ([null values](https://structure.fi/guides/binary-message/#null-values)).

### ConstantWithoutValue

A `presence="constant"` type or field provides neither element text nor `valueRef`, leaving no schema value for a zero-byte field.

Fix: supply the literal value or a `valueRef` pointing to an [enum](https://structure.fi/guides/glossary/#enum) value.

## Names and references

Reported while resolving type names, value references, ids, and structural roles.

### UnresolvedType

A field, member, or group references an undefined type—usually a missing `xi:include` file ([IncludeNotProvided](https://structure.fi/tools/market-data-visualizer/guides/problem-codes.md#includenotprovided)) or a typo. Every use is listed.

Fix: add the missing included file, declare the type, or fix the spelling.

### UnresolvedValueRef

`valueRef` names a nonexistent enum or enum value (e.g., `Model.D`).

Fix: correct `valueRef` or add the missing enum value.

### DuplicateName

Two declarations share a name in the same scope (types, messages, or fields in one message). The app keeps the first and flags the second.

Fix: rename one of the duplicates.

### DuplicateId

Two messages in a schema or two members in a message/group share an `id`.

Fix: assign unique `id` values.

### WrongTypeKind

A referenced type exists but has the wrong kind:

- Group `dimensionType` must be a composite with `blockLength` and `numInGroup`.
- Data field type must be a composite with length and `varData`.
- Schema `headerType` must be a composite.
- Enum/set `encodingType` must be a primitive type.

Fix: reference a type of the expected kind.

### ReferenceCycle

A composite directly or indirectly contains itself, giving it infinite size.

Fix: remove the cyclic member.

### RoleMemberMissing

A role composite omits a mandatory member:

- [Message header](https://structure.fi/guides/glossary/#message-header): `blockLength`, `templateId`, `schemaId`, `version`.
- Group [dimension](https://structure.fi/guides/glossary/#dimension): `blockLength`, `numInGroup`.
- Variable-length data type: `length`, `varData`.

Fix: add the missing named member.

### ChoiceOutOfRange

A set choice specifies a bit index outside its encoding type's width (e.g., bit 9 of `uint8`).

Fix: widen `encodingType` or fix the bit index.

### SinceVersionAfterSchema

An element's `sinceVersion` exceeds the schema's root `version`.

Fix: bump schema `version` or lower `sinceVersion` ([versions and sinceVersion](https://structure.fi/guides/sbe-schema-file/#versions-and-sinceversion)).

## Laying messages out

Reported while computing byte [offsets](https://structure.fi/guides/glossary/#offset) and block lengths.

### OffsetBeforePreviousEnd

An explicit `offset` places a field or composite member inside the preceding member.

Fix: raise `offset` past the previous end, or remove `offset` to pack naturally ([fields and padding](https://structure.fi/guides/binary-message/#fields-and-padding)).

### BlockLengthTooSmall

A message or group declares `blockLength` ([block length](https://structure.fi/guides/glossary/#block-length)) shorter than the end of its last fixed field; each overflowing field also raises [FieldBeyondBlockLength](https://structure.fi/tools/market-data-visualizer/guides/problem-codes.md#fieldbeyondblocklength).

Fix: raise `blockLength` to at least the reported end, or omit `blockLength`.

### FieldBeyondBlockLength

A field extends past its block's declared `blockLength`, so decoders trusting `blockLength` will truncate it (usually paired with [BlockLengthTooSmall](https://structure.fi/tools/market-data-visualizer/guides/problem-codes.md#blocklengthtoosmall)).

Fix: raise `blockLength` or adjust the field's `offset`.

### BlockLengthOfOlderVersionUnknown

When previewing an older schema version that lacks newer fields, the schema's `blockLength` reflects only the latest version, so the app marks the older block size as "at least" its fields' size.

Fix: schema is fine. If you know the older sender's `blockLength`, set it in the pane's **Display** menu to align subsequent offsets ([walking both directions on real bytes](https://structure.fi/guides/schema-versioning/#walking-both-directions-on-real-bytes)).

### LayoutRowsTruncated

The layout exceeded the maximum displayed rows (usually from setting a large group entry count in a [lens](https://structure.fi/guides/glossary/#lens)); excess rows are folded into one summary row.

Fix: lower the group entry count in the **Display** menu.

## Parquet files

Parquet diagnostics appear in the same **Diagnostics** pane with a severity, message, and byte range, without a code ([inspect a Parquet file](https://structure.fi/tools/market-data-visualizer/guides/inspect-parquet-file.md)).

**File unreadable or incomplete:**

- `not a Parquet file: no PAR1 magic`, `no footer`, `footer length … points outside the file`: not Parquet or truncated (often an incomplete copy/download); re-write or re-copy.
- `the footer is encrypted (PARE)`, `column is encrypted`: modular encryption is enabled and the app has no decryption keys.
- `metadata unreadable`, `schema tree does not add up`, `ARROW:schema unreadable`: corrupt [footer](https://structure.fi/guides/glossary/#footer) or Arrow schema, or writer bug.
- `footer of … bytes is above footer_bytes_max` (and other `… reached` messages): file exceeded an app limit; remaining parts are skipped.

**Parts unreadable:**

- `codec … is not in this build`, `codec … is not supported`: [column chunk](https://structure.fi/guides/glossary/#column-chunk) uses an unsupported codec; schema and layout still open, values do not.
- `unknown encoding …`: [page](https://structure.fi/guides/glossary/#page) uses an unsupported encoding.
- `column chunk lies outside the file`, `column chunks overlap`, `page header unreadable`, `page unreadable`, `page index unreadable`: footer offsets and bytes disagree (corrupt file or buggy writer).
- `file counts … rows, its row groups …`, `pages hold … rows, the footer counts …`: inconsistent row counts across footer, row groups, or pages.
- `chunk data is in another file; not followed`: footer points to an external file, which the app does not open.
- `the value reader refuses this file's metadata`: value decoder rejected the metadata; schema and layout still display.

**Degraded reading:**

- `unknown field …, skipped`, `unknown logical type …`: newer Parquet metadata fields/types; columns fall back to their [physical type](https://structure.fi/guides/glossary/#physical-type).
- `annotation does not fit the physical type`: mismatched [logical type](https://structure.fi/guides/glossary/#logical-type) (e.g., string on a number); falls back to physical type.
- `list in a legacy two-level shape`: older list encoding, still readable.
- `min/max written without a column order`: [statistics](https://structure.fi/guides/glossary/#statistics) lack a defined sort order and should not be trusted for pruning.

**Trading-data checks (informational):**

- `INT96 timestamps (deprecated)`: deprecated type; prefer `INT64` with a `TIMESTAMP` logical type.
- `timestamp[…] is local time, not adjusted to UTC`: no time zone recorded; readers in other zones may misinterpret instants.
- `price stored as floating point`: price-like column uses float/double instead of exact decimal or scaled integer.
- `time column ranges of row groups overlap`: [row group](https://structure.fi/guides/glossary/#row-group) time statistics overlap, preventing time-range pruning.
- `time gap between row groups`: gap between consecutive row groups exceeds every row group's own span; check for missing data.
- `row groups outside the rows-per-group guidance`: reports how many row groups (excluding a short final group) fall outside recommended row counts, plus their min/max sizes.
- `dictionary encoding fell back to plain`: chunk mixes dictionary pages and non-dictionary pages after hitting dictionary limits.
- `partition value in the path but not in the file`: path includes a Hive-style partition (`date=2026-11-11/`) absent from the file's columns.

## Sources

- https://www.fixtrading.org/what-is-the-fix-protocol/
- https://github.com/FIXTradingCommunity/fix-simple-binary-encoding
- https://www.fixtrading.org/standards/sbe/
- https://github.com/real-logic/simple-binary-encoding/wiki/FIX-SBE-XML-Primer
- https://parquet.apache.org/docs/file-format/
- https://github.com/apache/parquet-format/blob/master/LogicalTypes.md
- https://www.w3.org/TR/xml/
- https://www.w3.org/TR/xinclude/

Reviewed by Structure on 2026-11-11. Last changed 2026-11-23.
