IMD SolutionComputing LibraryShop main store

How-to

Migrate a TagHistoryProvider to Ignition 8.3.3

Edge computing and IIoT Published 8 min read

Short answer

Ignition 8.3.3 removed the default getStorageEngine() from TagHistoryProvider, so a custom historian module that compiled before now fails to build. Keep the same historian-gateway SDK artifact and package imports: either extend LegacyTagHistoryProviderAdapter, which supplies the storage engine for Store and Forward, or add an explicit getStorageEngine() override returning your StorageEngine. Rebuild against 8.3.3 or later and confirm a known value round-trips through the provider.

On this page
  1. Why does a historian module stop compiling after the 8.3.3 upgrade?
  2. What changed in the historian gateway SDK in 8.3.3?
  3. Do you need to change the Gradle dependency or the package imports?
  4. Should you extend the adapter or implement getStorageEngine() yourself?
  5. How do you migrate the provider to the adapter step by step?
  6. How do you implement getStorageEngine() when storage is custom?
  7. What breaks in Kotlin code after the Java conversions?
  8. How do you verify the module before it goes back on the gateway?
  9. Questions asked

Upgrading a custom historian module to Ignition 8.3.3 fails the build for one documented reason: the TagHistoryProvider interface no longer ships a default getStorageEngine() implementation, so every concrete provider must now get that method from an adapter or write it explicitly. Nothing else about the migration touches your build file or imports. The SDK artifact stays com.inductiveautomation.ignitionsdk:historian-gateway:8.3.X, the API packages keep their names, and the fix is confined to the provider class: extend LegacyTagHistoryProviderAdapter for a standard Store and Forward historian, or add an explicit getStorageEngine() override when the module owns its storage behavior. Rebuild against 8.3.3 or later, then prove the result by storing and reading back one known tag value through the provider.

Why does a historian module stop compiling after the 8.3.3 upgrade? #

Because Ignition 8.3.3 removed the default getStorageEngine() method from the TagHistoryProvider interface, every concrete provider must now receive that implementation from an adapter or declare it itself — the compile failure reports a missing storage-engine binding, not a broken dependency.

The rest of the provider can be exactly right. Query methods, registration and configuration can all be unchanged from an earlier 8.3 build while the type binding is incomplete, because before 8.3.3 the interface itself supplied the storage-engine method. Read the failure from the concrete provider class upward through its superclasses and implemented interfaces: if it dies where TagHistoryProvider expects getStorageEngine(), the tag-history logic is fine and the binding is what is missing. That distinction decides where you edit — the provider class, not the build file or the import block.

What changed in the historian gateway SDK in 8.3.3? #

The gateway API moved into a dedicated historian-gateway-api module internally, the SDK artifact name and the seven API package families kept their names, and the one breaking change is the removed default getStorageEngine() on TagHistoryProvider.

The split separates public SDK types from the historian implementation and gives third-party modules a narrower dependency surface, but it is transparent at the artifact level. The package families are com.inductiveautomation.historian.gateway.api with its api.config, api.query and api.storage subpackages, plus legacy, interop and util. Two classes changed language rather than shape: HistorianProvider is now a Java record and HistorianExtensionPoint a Java abstract class, both converted from Kotlin with signatures left compatible. The release also introduces four helpers aimed at exactly this migration; the table separates what moved from what you must change.

Item 8.3.3 status Effect on your module
SDK artifact com.inductiveautomation.ignitionsdk:historian-gateway:8.3.X, unchanged Keep the existing compileOnly declaration
API packages Seven families, same names No import rewrites
TagHistoryProvider Default getStorageEngine() removed — breaking Extend the adapter or override the method
HistorianProvider Kotlin class converted to a Java record Signatures compatible; review Kotlin interop
HistorianExtensionPoint Kotlin abstract class converted to a Java abstract class Signatures compatible; review Kotlin interop
New helpers HistorianModule, LegacyTagHistoryProviderAdapter, HistorianUtilities, TagHistoryStorageEngineBridge Replace hand-rolled bridges and query conversions with the SDK's own

Do you need to change the Gradle dependency or the package imports? #

No — keep the compileOnly dependency on com.inductiveautomation.ignitionsdk:historian-gateway:8.3.X and the seven package names exactly as they are, because the internal reorganization is transparent at the artifact level and edits there attack the wrong layer.

If Gradle resolves historian-gateway and the familiar com.inductiveautomation.historian.gateway imports succeed, the dependency and the packages are healthy and the compiler error sits in the provider class itself. One version check comes before any source edit: the 8.3.3-rc1 pre-release failed to relocate HistorianProviderRecord into the new module, which surfaced as missing legacy classes at build time, and that relocation was reported fixed for the 8.3.3 release. If legacy classes vanish, confirm which artifact Gradle actually resolved before editing imports around a packaging defect that no longer exists.

Should you extend the adapter or implement getStorageEngine() yourself? #

Extend LegacyTagHistoryProviderAdapter when the provider is a legacy historian using standard Store and Forward, and implement the method directly only when the module must control how its StorageEngine is obtained — absent that custom requirement, take the adapter.

Both configurations satisfy the 8.3.3 interface contract, so the choice is about lifecycle ownership. The adapter creates and manages a TagHistoryStorageEngineBridge for Store and Forward integration, concentrating bridge management in the SDK class and deleting duplicated lifecycle code from the module; that is why it is the recommended path for a conventional migration. Direct implementation keeps the provider implementing TagHistoryProvider and makes the module answer getStorageEngine() itself, which pays only when storage-engine behavior is genuinely custom.

How do you migrate the provider to the adapter step by step? #

Change the provider's base class to LegacyTagHistoryProviderAdapter, hand the existing GatewayContext and historian name to its constructor, keep the query-method implementations, rebuild against 8.3.3 or later, and confirm one known tag value still round-trips.

  1. Keep the dependency at the SDK artifact level: compileOnly("com.inductiveautomation.ignitionsdk:historian-gateway:8.3.X").
  2. Locate each concrete class that directly implements TagHistoryProvider.
  3. Change its base class to LegacyTagHistoryProviderAdapter, typed to your settings class, and pass the existing GatewayContext and historian name to the super constructor.
  4. Retain the implementations of the TagHistoryQueryInterface methods exactly as written.
  5. Delete any bridge-creation code added only to compensate for the missing default method: the adapter creates and manages its own TagHistoryStorageEngineBridge, and a second bridge for the same provider name conflicts with it.
  6. Rebuild against Ignition 8.3.3 or later and run the module's history tests.

The example below is hypothetical: MyHistorian and MySettings are illustrative names for this article, while the adapter, interface and context types are the documented 8.3.3 SDK names. A provider class MyHistorian with settings type MySettings, registered under the historian name plant-history, migrates to:

// Illustrative example: MyHistorian, MySettings and plant-history are invented here.
// LegacyTagHistoryProviderAdapter and GatewayContext are documented 8.3.3 SDK types.
public class MyHistorian extends LegacyTagHistoryProviderAdapter<MySettings> {

    public MyHistorian(GatewayContext context, String historianName) {
        super(context, historianName);
    }

    // TagHistoryQueryInterface methods stay as written; the adapter
    // supplies getStorageEngine() and manages the bridge itself.
}

The proof is a round trip, not a clean compile. On a development gateway, install the rebuilt module, write a known value for a known tag at a recorded timestamp — 123.4 for MyTag, say — then query the tag back through the provider's query implementation and require an exact match on value and timestamp. A successful compile only proves the dependency resolved; the round trip proves the adapter's bridge actually serves the provider registered as plant-history.

How do you implement getStorageEngine() when storage is custom? #

Declare the method explicitly and return the module's engine wrapped in Optional.of, binding TagHistoryStorageEngineBridge.getOrCreate to the same GatewayContext and name the provider registers under, because a mismatched name attaches storage behavior to the wrong logical historian.

@Override
public Optional<StorageEngine> getStorageEngine() {
    return Optional.of(
        TagHistoryStorageEngineBridge.getOrCreate(context, getName())
    );
}

The call binds the bridge to the provider's context and to the string getName() returns, so verify that both belong to the provider instance being registered: a wrong name can bind storage behavior to the wrong logical historian even while every query method compiles. Read the bridge for what it is — the documented way to satisfy the storage-engine contract, not an API for supplying your own Store and Forward or quarantine implementation. That extension capability was described as future work, with 8.3.5 named only as a prioritization target rather than a committed release, so build today's migration on the exposed adapter and bridge contracts.

What breaks in Kotlin code after the Java conversions? #

HistorianProvider is now a Java record and HistorianExtensionPoint a Java abstract class, and the documented API signatures stayed compatible through both conversions — only call sites that leaned on Kotlin-specific interop features need adjusting, so let the first rebuild name them.

A Java-only module sees nothing in this section. A module with Kotlin sources compiles them against the converted classes and treats failures at those call sites as interop adjustments rather than as the storage-engine problem from the first section. The two failure classes look similar in a build log but have different fixes: one adds or overrides a method on the provider, the other rewrites a call that assumed Kotlin class semantics where a record or a Java abstract class now sits.

How do you verify the module before it goes back on the gateway? #

Verify six things before the module returns to a gateway: the artifact resolves at 8.3.3 or later, imports compile unchanged, getStorageEngine() comes from the adapter or your override, the provider registers under its historian name, one known value round-trips, and Kotlin call sites compile.

Check Where you see it Passing result
Dependency resolution Gradle dependency output historian-gateway resolves at the intended 8.3.3-or-later version
Imports Compiler or IDE The com.inductiveautomation.historian.gateway imports resolve with no package rewrites
Interface contract Provider class getStorageEngine() comes from the adapter or the explicit override
Provider registration Gateway startup diagnostics The provider loads under its intended historian name, plant-history in the example, with no class-loading failures
History path Module integration test One known value and timestamp store and read back through the provider
Kotlin interop Kotlin call sites Code touching HistorianProvider or HistorianExtensionPoint compiles after the conversions

The checks end where the migration's reach ends. The change is confined to the module's compile-time contract: stored history, query behavior and runtime settings such as the pruning and retention covered in setting historian pruning and retention for Ignition tag history behave as configured. Run the rebuilt module on a development or standby gateway before the production historian host, because a provider that fails class loading at startup takes historian functionality down with it.

The decision, then, is short. A legacy provider on standard Store and Forward: extend LegacyTagHistoryProviderAdapter, delete compensating bridge code, rebuild on 8.3.3 or later, prove one round trip. A provider that owns its storage behavior: keep implementing TagHistoryProvider and return the engine from an explicit getStorageEngine() bound to the registered context and name. A build that still fails after the right one of those two paths: check which artifact Gradle resolved before editing a single import.

Questions asked

Does the 8.3.3 change affect history data my provider already stored?

No. The removed default method is a compile-time interface change for module developers. Existing stored history, the provider's registered name and the runtime query path are untouched, so data written by an earlier 8.3 build stays readable after you deploy the rebuilt module. Runtime behavior such as pruning and storage location is configuration, not part of this interface.

Why does the configuration form for my custom historian ignore its @DefaultValue annotation?

That symptom is unrelated to the getStorageEngine() migration. The annotation sets the default a configuration form shows, which lives in the configuration layer, while the migration concerns the storage-engine binding in the provider class. Changing getStorageEngine() will not alter it. Verify the form behavior against your specific Ignition version and raise it with the vendor's support channels if it persists.

What is HistorianModule used for in a migrated module?

HistorianModule is the abstract base class for gateway module hooks that provide historian functionality in 8.3.3. Call HistorianModule.get(context) to retrieve the instance, then getHistorianManager() on it to reach the HistorianManager, the gateway-side abstraction for historian functionality. Use it when a module needs gateway-side access beyond its own provider implementation.

Do I need HistorianUtilities in my module?

Only if your code converts between legacy and modern query formats or manages query flags. HistorianUtilities bundles those static helpers so a migrated provider does not maintain duplicate conversion code. If the provider delegates querying through the SDK interfaces and never converts formats, nothing in this migration requires touching it.

Keep reading

  • How-to

    Expose only approved Ignition tags to an external historian

    No — on Ignition 8.1 an authenticated OPC UA client browses everything, and the gateway will not run a second UA server. Republish only the approved tags through a separate server such as Node-RED with the Ignition Node-RED module, firewall Ignition's own endpoint, or move to 8.3 role-based access.

    Edge computing and IIoT

  • How-to

    Backfilling PI from an existing plant historian

    Split the historian-to-PI backfill into four independent stages — extract, intermediate store, external compression, destination load — and qualify throughput with a measured pilot. Rows divided by elapsed seconds, not tag count, sets the schedule: 12,000 tags from 2020 at 500 rows/s is about 203 days. Check the native Historian 2023 replication route before writing pipeline code.

    Edge computing and IIoT

  • How-to

    Expose historian latest values over OPC UA or MQTT

    Yes — connect an integration gateway to the historian's classic I/O Server over SuiteLink (application name aahiosvrsvc, topic TagName) and publish the current values as OPC DA and MQTT. After a historian restart the I/O Server and the Live table return nothing until the source sends a new value, so a true last-known-from-disk read needs T-SQL or the historian SDK.

    Edge computing and IIoT