Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When selecting a tab on a Cirrus Link Module and the Ignition UI shows the error below, the most likely cause is that a property referenced on that tab is no longer available. This could be due to a migration issue after an upgrade or because configuration items were modified using the scripting APIs.

Image Added

In the logs you will see an error from the "org.apache.wicket.DefaultExceptionMapper" logger similar to the one shown below:

Image Added


Expanding the logger error will show the internal error:

Image Added


Scrolling to the "Caused by:" section will give additional details.

In this case, the Transmission History Store with ID 16, that is referenced by a Transmitter configuration,  no longer exists.  

Image Added


How To Fix

Once you have identified the problem, you can use the script commands to find and update the problematic configuration, for example

Transmitter configured with invalid history store ID 16

Code Block
# Read Transmitter Config
savedTransmitters = system.cirruslink.transmission.readConfig("Transmitters")
for config in savedTransmitters:
  if config["HistoryStoreId"] == 16:
    transmitterId = config["Id"]

# Update config with valid history store ID
myHistoryStoreId = 1
transmitterProps = {}
transmitterProps["HistoryStoreId"] = myHistoryStorId
system.cirruslink.transmission.updateConfig(“Transmitters”, transmitterId, “MergeOverwrite”, transmitterProps)