IMD SolutionComputing LibraryShop main store

Troubleshooting

Why MyLittleHistorian needs the SDK API token update

Edge computing and IIoT Published 7 min read

Short answer

The stopped viewer is an authentication failure: DataMailbox access now requires an API token. The current SDK release of MyLittleHistorian supports the token, so update to that release and configure it through its documented mechanism, moving request parameters into the POST body. DMBoxViewer has no documented token path, so verify each installation separately or migrate its retrieval.

On this page
  1. Why did my DataMailbox viewer stop returning data?
  2. Does MyLittleHistorian support the API token?
  3. Why does a request still fail after I set the token?
  4. How should I store and rotate the API token?
  5. Does DMBoxViewer support the API token?
  6. How do I prove the fix end to end?
  7. What is the decision for each viewer?
  8. Questions asked

The failure is authentication, not lost data: the DataMailbox path your viewer reads now expects an API token, and a client with no place to put one sends a request that is refused before any tag value is read. The fix is a release change, not a settings change: the current SDK release of MyLittleHistorian supports the API token, so redeploy the viewer from that release and configure the token through the mechanism it documents. DMBoxViewer has no documented token capability, so a display built on it must be verified against the vendor material or migrated. One detail catches most hand-built readers after the update: with token authentication, request parameters belong in the POST body, not the URL query string.

Why did my DataMailbox viewer stop returning data? #

The viewer stopped working because authentication changed on the service side, not because data disappeared: a client that cannot present an API token sends credentials the DataMailbox API no longer accepts, and the request is refused before a single tag value is read.

Two facts carry different weights. The symptom is what you observe: a viewer that filled its tables for months now returns nothing, and neither tool as installed offers a field for a token. The specification is the vendor's: the current SDK release of MyLittleHistorian is documented to read the DMWeb API with an API token, which makes the token the intended credential on this path and dates every older installed build as predating it.

That ordering drives the troubleshooting order. Authentication sits in front of networks, drivers, ODBC links and the historian itself, so make one request authenticate again before you investigate anything behind it. An authentication change on the client side does not move or delete the stored history either; the synced data sits on the DataMailbox side, waiting for a read your client is no longer allowed to make.

Does MyLittleHistorian support the API token? #

Yes: the current SDK release of MyLittleHistorian is documented to support the API token, which makes updating to that release the documented fix for every MyLittleHistorian-based display that stopped working when token authentication arrived.

MyLittleHistorian ships with the SDK, so the fix is a redeploy from the current SDK release rather than a checkbox somewhere in the old installation. After redeploying, configure the token through the mechanism that release documents. The sources name no version number, no menu path and no property name, so treat the DMWeb API developer documentation on the vendor's developer portal and the release notes of the version you install as the only authority for where the token goes — generically, an authentication setting beside the account credentials it accompanies.

Scope the claim the way its documentation does. Token support in the current SDK release of MyLittleHistorian says nothing about the older builds still installed on other machines, on a technician's laptop or on a customer's server. Every installed copy needs the release check, not only the one in front of you.

Why does a request still fail after I set the token? #

Because token authentication on the DMWeb API rejects URL query strings: parameters are considered unsafe there, so a request that still carries its parameters in the URL fails even with a valid token, and the fix is to move every parameter into the POST body.

Token authentication changes how a request is built, not only which secret it carries. A call that still carries the account, the tag list or the time window in the URL is refused even with the token correctly configured.

This decides the rewrite for every hand-built reader on the path — a Python service, a .NET application, a script inside the SCADA host. Build the call as a POST, place the token where the API documentation for your release puts it, and move every parameter into the POST body. Updating the SDK release fixes the shipped viewers; this step fixes the scripts around them, and it is the step most often skipped, which is why a plant can update MyLittleHistorian and still see failures elsewhere on the same account.

How should I store and rotate the API token? #

Treat the API token as a live password for the DataMailbox account: keep it in the client machine's credential store or the service account's secret storage, never in a script, a URL, a screenshot or a shared spreadsheet.

The POST-body rule doubles as the security argument: parameters in a URL end up in proxy logs, command-line history and server access logs, which is exactly why token authentication forbids them. Keep the token out of those same places — out of scripts kept under version control, out of command lines, out of the screenshots sent to a colleague.

Rotate the token through the vendor's portal mechanism whenever it may have been copied — a departed contractor, a shared workstation, a laptop that left the plant. Record the rotation date next to the SDK release identifier you noted during verification, so the credential and the build stay matched in your notes. That single line in the maintenance log turns the next authentication change on this path from a surprise into a scheduled update.

Does DMBoxViewer support the API token? #

No token capability is documented for DMBoxViewer: neither a token-compatible release nor any configuration method appears in the vendor material for it, so an existing installation must not be assumed to work, and it cannot be configured into compliance.

Absence of documentation is weak evidence in general and strong evidence for a deployment decision: no one should put a customer-facing display on an undocumented assumption. The verification that would clear DMBoxViewer has to come from the vendor's own material — a token-capable release or a documented token setting for the build you run. Until one of those exists, the migration plan, not the waiting list, is the responsible path.

Read a working installation correctly. If DMBoxViewer still fetches data today, that means the token requirement has not yet reached that account path; it is a countdown to the cutover, not a clean bill of health. Use the remaining time to move those displays, not to argue the tool is compatible.

How do I prove the fix end to end? #

Verify with one known tag in one known window, then walk the whole customer path, because a successful login is not a confirmed data read and a confirmed read is not a correct display.

Run the check on numbers you already trust. Pick one tag whose value you know independently of the viewer — for example, a temperature tag that read 42.5 °C at 08:00 UTC on the test day. Request the window from 07:45 to 08:15 UTC, a 30-minute window around the known sample. A tag logging at a 60-second interval — the example interval here — should return about 30 samples in that window: 30 min × 60 s/min = 1,800 s of history, and 1,800 s ÷ 60 s per sample = 30 samples. Thirty rows mean the read is reaching stored history; a single row means the client is fetching only a latest value, a different retrieval mode rather than a fault.

Then walk the list:

  • The same request that failed before the update now authenticates and returns data.
  • The known tag comes back as 42.5 °C stamped 08:00 UTC, not zero and not an empty frame.
  • A second, unrelated tag also matches, so the tag mapping is right and not one lucky point.
  • The customer-facing display renders that value; a green connection icon is not a data check.
  • The SDK release identifier you deployed is written down where the next authentication change can be matched to it.

What is the decision for each viewer? #

Update MyLittleHistorian to the current SDK release and configure its token; migrate every DMBoxViewer-based display to that token-capable viewer or to another client the vendor documents for tokens — nothing in DMBoxViewer's favor justifies waiting.

Client on the DataMailbox path Documented token status Decision
MyLittleHistorian API token supported in the current SDK release Redeploy from that release and configure the token through its documented mechanism
DMBoxViewer No token-capable release or setting documented Verify against the vendor material or migrate the retrieval path
Your own script or service Token accepted only with POST-body parameters Rebuild the call as a POST with every parameter in the body

Once retrieval works again, the customer-facing side has lighter options than a desktop viewer: you can expose historian latest values over OPC UA or MQTT directly from the historian. If that points you toward MQTT, read first what an MQTT broker does and does not store as queryable history, because a broker is not a replacement for the stored history the viewer was reading.

Whichever client carries the path, the commit stands: nothing reaches a customer display until one known tag, one known value and one known timestamp return through the token-authenticated read.

Questions asked

Where do I enter the API token in MyLittleHistorian?

The sources confirm token support in the current SDK release but name no screen, property or command for it. Install the current SDK release, then use the token mechanism that release documents; the DMWeb API developer documentation on the vendor's developer portal is the authority for where the token belongs on that client.

Should I wait for a DMBoxViewer update instead?

No token-compatible DMBoxViewer release is documented, so waiting is a bet on an unannounced change. The documented working path is the current MyLittleHistorian SDK release: migrate the retrieval now and leave the customer display untouched, so only the data source behind it changes.

Do the gateways need any configuration change?

Nothing in this failure points at the gateways: the break sits between the viewer and the DataMailbox, where the API token is now required. Leave the gateway sync configuration alone, and while you verify the fix, confirm the devices still upload, so you do not chase two faults at once.

Is there a newer token-compatible viewer I can download?

The only token capability these sources document is in the current MyLittleHistorian SDK release itself. Before writing your own client against the DMWeb API, check the vendor's developer documentation for newer samples, and test any candidate with one known tag and timestamp before it faces a customer.

Keep reading

  • Troubleshooting

    Why an ASP Historian to PI Web API connection test fails

    A failed historian to PI Web API connection test is almost never a network fault. Replication sends OMF requests to the PI Web API, so the test passes only when OMF services are enabled there and the configured authentication method, Basic or Kerberos, is allowed. Send a GET from the replication host, read the SMC and PI Web API logs, then enable OMF and the authentication method before retesting.

    Edge computing and IIoT

  • Explainer

    Why PI SDK needs a real PI Server endpoint for cloud tests

    No. No public PI Server accepts direct PI SDK connections on port 5450, so a cloud address alone never yields a read-only test endpoint. Use the managed VLE included with a paid PI Developers Club membership, deploy a licensed PI System on Azure or AWS, or build new code on AF SDK — and put the read-only boundary in the server-side identity, not the client code.

    Edge computing and IIoT

  • Comparison

    Canary historian export paths: MQTT publisher or API read

    Canary gives you two confirmed ways to move historian data out: the Publisher service, which pushes real-time values to MQTT or Kafka as Sparkplug B or JSON, and the Read API, which an external client calls to pull stored data. An outbound OPC UA server is not a confirmed option.

    Edge computing and IIoT

Process Historian idle after SP2 UPD3 update