IMD SolutionComputing LibraryShop main store

Troubleshooting

Why ui_table installs but does not appear on ctrlX CORE

Edge computing and IIoT Published 5 min read By IMD Solution engineering team

Short answer

On a ctrlX CORE virtual installation, ui_table installed and compiled cleanly, yet the dashboard showed no table. A clean install proves only that dependencies resolved; the table was hidden because the manager property of the ui_table columns was wrong and the flow had not been triggered after deploy. Compare your node with the palette's own sample, correct the column manager, then trigger the flow and read the Node-RED service log.

On this page
  1. A clean install proves only dependency resolution
  2. Compare against the palette's own sample
  3. Inspect the manager property of each column
  4. Trigger the flow before judging the dashboard
  5. Read the service log in the Logbook
  6. Decide from what you observe
  7. Verify on the controller, then clean up
  8. Questions asked

On a ctrlX CORE virtual installation, ui_table installed from the palette without errors or warnings and the flow compiled, yet the dashboard showed no table. The install proves only one thing: the dependencies resolved. Two separate faults hid the table: the manager property of the ui_table columns was wrong, and the flow had not been triggered after deploy, so the table never received rows to draw. The same JSON running on a Windows or Debian Node-RED clears neither point. Work the checks below in order; the resolving correction in the reported case was a corrected column manager plus an inject after deploy.

A clean install proves only dependency resolution #

A successful palette install and a successful deploy are two different milestones, and neither is a rendered table:

  • The palette install completing without errors means the package downloaded and its dependencies resolved. Nothing more.
  • The deploy completing means the flow definition was accepted by the runtime. It says nothing about whether the table node has a valid column definition or has ever received a message.
  • The table rendering means a message with row objects reached a correctly configured ui_table node inside a dashboard group.

If the install itself had failed, you would see palette errors and a node missing from the palette, as in why a Node-RED OPC UA install fails on an edge controller. If a freshly installed node crashed the runtime on deploy, you would see restarts, and the recovery route is safe mode and rollback after a node install crashes Node-RED. Your symptom is neither: the node is present, the deploy succeeds, and the table is simply absent. That points at configuration and data, not installation.

Compare against the palette's own sample #

The ui_table palette ships a working example called "Richer table". It was confirmed rendering in the dashboard of a Node-RED app on a ctrlX CORE virtual installation, so it is your known-good baseline on the same platform.

  1. In the Node-RED editor, import the "Richer table" example from the palette.
  2. Deploy, then click the sample's inject node.
  3. Open the dashboard and read the result.

Keep an unmodified copy of the sample flow while you work, so you can always restore a baseline. The reading splits the fault: if the sample table renders, the Node-RED app on this controller can draw a ui_table, and the fault lives in your flow or your column configuration. If neither sample nor custom flow renders, the fault is below your flow; go straight to the Logbook section.

Inspect the manager property of each column #

The resolving correction in the reported case was in the ui_table configuration: the manager property of the columns was wrong and the flow code needed review. A mismatched column definition stops the table from drawing even though the palette installed cleanly and the flow compiled, which is exactly the symptom you see.

No exact property value or replacement JSON was documented for the reported case, so correct by comparison with the sample, not by guessing a setting:

  1. Open your ui_table node and its column list.
  2. Open the sample's ui_table node next to it.
  3. Compare the manager property of each column and the overall column structure.
  4. Correct your columns so their structure matches the sample's; keep your own column names and data.
  5. Deploy, trigger the flow, and reload the dashboard.

Trigger the flow before judging the dashboard #

A deploy does not send data. ui_table draws rows from the messages it receives, so a flow that feeds the table only on an inject or a production trigger shows an empty area until that trigger fires. After correcting the columns, press the inject node once, then look again. If the table appears, the display needed an input message; confirm that the real production path, whether an MQTT subscription, an OPC UA read, or an interval, actually delivers messages to the table node.

A minimal message that renders is an array of row objects whose keys match the column definitions. For example, a two-column scrap counter:

// function node feeding ui_table
msg.payload = [
    { "Order": "A-1042", "Scrapped": 17 },
    { "Order": "A-1043", "Scrapped": 4 }
];
return msg;

With columns defined for the keys "Order" and "Scrapped", this message renders two rows. If the keys do not match the column definitions, the message arrives and the table still stays empty, which is the same visible symptom as the column-manager fault above.

Read the service log in the Logbook #

When neither sample nor custom flow renders, stop editing the flow and read what the Node-RED app itself reports. In the controller web UI, open Diagnostic → Logbook, enable Developer View in the Logbook settings, switch to System and trace, and filter the Source unit to snap.ctrlx-node-red.node-red.service. Read the entries around a fresh deploy and inject. A service-level fault, such as the app failing to start or a module failing to load, appears here; a clean log with a silent no-render points back at the dashboard group placement and the flow configuration.

For message-level checks, add a temporary diagnostic in a function node ahead of the table: node.warn(msg.payload) sends the payload to the Node-RED debug sidebar when the flow runs. Deploy, trigger, and confirm the message actually reached that point. Follow your plant's normal change procedure before editing a flow on a controller that is running production, and remove the diagnostics once the run is proven.

Decide from what you observe #

Observation What it means Next check
Sample renders, your table does not The app can draw tables here; the fault is in your flow or columns Correct the column manager, retest
Your table appears after inject The table needed an input message Confirm the production trigger delivers
Payload reaches the node, table still empty Row keys and column definitions do not match Align keys and columns with the sample's structure
Neither sample nor custom flow renders The fault is below your flow Read the Logbook filtered to the Node-RED service
Logbook shows service errors The Node-RED app itself is failing Resolve the logged error first; columns are secondary

Verify on the controller, then clean up #

The proof belongs on the target, not on the development computer:

  1. Deploy the corrected flow to the ctrlX CORE, trigger it through the real production path, and confirm the table shows the expected headings and rows.
  2. Check the debug sidebar for your node.warn output and the filtered Logbook for related errors. Expected reading: the trigger is observed and no service error explains an absence.
  3. Remove the temporary diagnostics and debug nodes, deploy the cleaned flow, and run the trigger once more. Expected reading: the table still renders without instrumentation.

That final pass is the commit: column manager corrected, trigger confirmed, log clean, table rendering on the controller itself.

Questions asked

Why does the same flow JSON work on Windows or Debian Node-RED but not on ctrlX CORE?

The JSON carries the flow definition, but the dashboard and table package versions, and the browser session reaching the dashboard, differ between the two runtimes. A column-manager mismatch can pass on one package version and draw nothing on another. Test on the target controller, not on the development computer, before blaming the platform.

Where are the Node-RED flow files on a ctrlX CORE virtual installation?

In the controller web UI, click the folder symbol in the header to reach ActiveConfiguration, which holds the Node-RED JSON files. Compare the deployed file there with the file you exported from your development computer before concluding that the deploy carried your changes to the target.

Does running npm -v and node -v on my PC tell me the Node-RED app runtime on ctrlX CORE?

No. Those commands report the Node.js and npm versions of whatever shell they run in, so on Windows or Debian they describe that computer, not the app inside the controller. Read the Logbook entries filtered to the Node-RED service instead; the app there is a validated variant customized for the controller.

Do I need to restart the virtual control after installing a Node-RED palette?

No. A restart was tried in the reported case and changed nothing, as expected: a palette install that completes without errors already restarts what it needs. Restart only when the Logbook shows the Node-RED service itself failing; otherwise spend the time on the column manager and the trigger.

Keep reading

  • Troubleshooting

    Node-RED getaddrinfo EAI_AGAIN means DNS, not internet

    getaddrinfo EAI_AGAIN is a DNS lookup timeout: nothing answered the resolver for registry.npmjs.org within the retry window. A working ping, apt or Grafana download does not test that lookup. Find the DNS servers the active interface (eno2 in the worked example) actually received, point it at a known-good resolver, then confirm a package install completes.

    Edge computing and IIoT

  • How-to

    Connect Node-RED on ctrlX CORE to a MySQL server

    Send the SQL as msg.topic to a node-red-node-mysql node: create the table once as an administrator, prove one INSERT and SELECT from Inject nodes, then route Read Datalayer values into a multi-row insert. Grant the runtime account only SELECT and INSERT on db1, match its host part to the client address the server reports, and keep a local snap's data directory on external media.

    Edge computing and IIoT

  • Troubleshooting

    Fix MQTT sensor data missing in Node-RED

    A green MQTT connection in Node-RED proves only a broker session, not that the GSM module published a value or that the flow subscribes to its topic. An http in node cannot receive MQTT publications at all: use an mqtt in node. Trace RS-485 acquisition, publish result, broker identity and topic match in order, and fix the first stage with no positive result.

    Edge computing and IIoT

Why Citect alarms do not appear in AVEVA Historian