Troubleshooting
Why a report table shows 1 instead of historian values
Short answer
A report table that shows 1 or the row count while the data-key preview lists the real historian values is a binding-resolution fault, not a historian fault. Rename every data key and query column alias to an identifier that starts with a letter and holds no spaces or special characters, update each column binding, re-enter any lost fallback text, then save, close and reopen the report to confirm the renames committed.

On this page
A report table that shows 1, or the number of returned items, while the data-key preview lists the real historian values has a binding-resolution fault, not a data fault. The report engine parses every data key as an identifier; a key that begins with a digit or carries a space or special character cannot be resolved, so the cell renders the object count instead of the rows. The preview reads the returned data directly, which is why it looks correct while the table is wrong. The fix is a naming pass: rename every data key and query column alias to a unique name that starts with a letter and holds letters and digits only, update every column binding, re-enter any fallback text the rebind drops, then save, close and reopen the report until the renames stay. Work the checks in order; each one names the reading to take and the next step.
Confirm the data source before touching the report #
Bind a table in a Vision window to the same historian query and read the rows. If every value appears, the historian, the tag paths and the query are healthy and the fault lives in the report binding layer. If that table is empty or short, or the report preview itself comes back empty, stop here: the query returned nothing, the way a doubled SELECT leaves an Edge trend with no historian data, or the rows never arrived at all, such as an Ignition historian import that does not display data. Repair the data path first; no rename will help an empty data set.
| Reading | Meaning | Next step |
|---|---|---|
| Reference table and preview both show the rows | Data path is healthy | Run the rename pass below |
| Reference table or preview empty or short | Query, tag-path or data-arrival fault | Fix the query first |
A working Vision table proves nothing about the report bindings on its own. The Ignition Reporting module is a separate codebase, built on a third-party engine that does not use Java Swing at all, so very little in it behaves the way Vision behaves: Vision accepts key and column names as typed, while the report engine parses them as identifiers.
Why the preview is right and the table is wrong #
The data-key preview shows what the query returned. A table cell shows what the engine resolved after parsing the key name, and the report documentation specifies that a component references a data key through the key name enclosed in at-signs. When the name between the at-signs is not a clean identifier, the engine cannot resolve it to the returned rows and the table falls back to rendering the number of objects it received; with one query result, the cell reads 1. The preview and the table disagree because they read the same data through different paths.
This is not a tag fault. A tag or query fault leaves the preview empty or wrong as well. Here the preview is correct and only the binding fails, which places the fault squarely in the binding layer: preview correct, table showing the count.
The two key-name defects that break a report table #
- A leading numeral. A key such as
1stBatchis a numeric key to the parser, and numeric data keys have been reported to fail binding resolution exactly this way, rendering the count instead of the values. The rule is absolute: the first character is a letter. - A space or special character. The report documentation states the naming rule directly: a data key must be unique and cannot contain special characters. Spaces in the data names have been reported to reproduce the same failure, and a full rename to names with no spaces and no punctuation cleared it.
- Digits after the first character are fine:
batch2tempresolves.
Check the column names the query returns, not only the report own keys: a name that Vision accepts as typed can still trip the report parser, so every alias follows the same rule.
Decision: any key or alias that is not a unique, letter-first name of letters and digits only gets renamed. Do not spend the afternoon testing which punctuation survives.
Rename and rebind the report #
- Open the report data panel, where the keys are listed, and write down every data key and every query column alias.
- Rename each one to letters and digits only, first character a letter, unique across the report. A working mapping:
1stBatchtobatchId,Temp CtotempC,Press-BartopressBar. - Update every column binding and every expression that referenced an old name. A component references a key through the name enclosed in at-signs, so change the name between them:
old: @1stBatch@ @Temp C@ @Press-Bar@
new: @batchId@ @tempC@ @pressBar@
- Re-enter any fallback text the rebind dropped, for example NA in a cell expression. Renaming orphans the old references rather than rewriting them.
- Save the report, close it and reopen it, then preview. Edits have been reported to sit uncommitted until a reopen, so repeat the cycle whenever a binding reverts to its old name.
- Compare the report against the reference table bound to the same query: equal row counts, matching values row by row, fallback text present.
Worked example: the batch report #
A batch report runs one historian query over a shift. The query returns 12 rows and 3 columns, the preview lists all 12, and the reference table bound to the same query shows 12 rows. The report value column shows 1, which is not the row count; with the preview correct, the fault is the binding, not the data.
The report carries 3 keys, 1stBatch, Temp C and Press-Bar, referenced in 5 places: 3 table column bindings plus 2 expressions elsewhere, and 3 + 2 = 5 references to update. Rename the 3 keys to batchId, tempC and pressBar, update the 5 references, and re-enter the NA fallback in the cell that lost it.
After the rebind the report shows 12 rows with values matching the reference table row by row, and 12 = 12, so the count check passes. Save, close and reopen once more: the row count, the values and the NA text all hold, which proves the renames committed.
When the table still misbehaves after clean names #
A report table that still behaves unlike a Vision table, or unlike the reporting examples, once every key is clean is not still broken. The report side is a third-party engine with its own table behavior, so tune the table from the reporting examples rather than from Vision habits.
If edits keep reverting, treat a rename as unconfirmed until it survives a save, close and reopen; more than one cycle has been reported.
The decisions, in one place:
- Preview correct, table shows 1 or the item count: run the rename and rebind pass above and leave the historian alone.
- Preview or reference table empty or short: the query or the data path is the fault; fix it there first.
- Blank cells after a rename: the bindings still point at the old names; update every binding and re-enter the dropped fallback text.
- Renames that revert on reopen: keep cycling save, close and reopen until the row count and the fallback text hold through one full cycle.
Questions asked
Can a data key hold digits after the first character?
Yes. Only the leading position matters: batch2temp resolves, 2batchtemp does not. A numeral first makes the key unresolvable, so the table renders the object count instead of the rows. Keep the first character a letter and the rest of the name to letters and digits, and the key parses.
Do query column aliases follow the same naming rule?
Yes. The keys a query contributes to a report are its returned column names, so a space or a leading numeral in an alias trips the same parser. Alias the columns inside the query itself, for example tempC instead of a spaced name, and the report receives clean keys with no extra binding work.
Why did my NA fallback text disappear when I renamed the keys?
Renaming a key orphans every binding that used it, and fallback text held in a cell expression is dropped together with the old name rather than rewritten. Point the binding at the new name first, then type the fallback back in, and confirm it survives a save, close and reopen before you trust the report.
Does the key-name rule apply to charts and pivot tables too?
Yes. A data key resolves through the same parser wherever a component references it, so chart and pivot bindings in the same report inherit the identical rule: first character a letter, no spaces or special characters anywhere. Clean the key names once at the report level and every component that references them is repaired with them.
Is this fault tied to one historian or database backend?
No. The fault sits after the data arrives, in how the report resolves its bindings, so the historian brand, the driver and the database backend do not change it. The same query that fills a table or a trend elsewhere shows the count here whenever a key name breaks the identifier rules.


