FR5 status taken from the wrong part of the reply

RosaBrown0901 · 7 Apr 2026, 22:29 UTC

Closed
RO
RosaBrown0901
I need our dashboard to admit when it has no current reading. Since the environment change, the wrapper finds a number inside the SDK reply and shows it as status even when the request failed. The new reply has several fields. Where should the check live so the screen cannot make this mistake again?

8 replies

LU
LucaCarter0961
Replying to RosaBrown0901

Put the response interpretation in one adapter tied to the SDK version you're using. Check the request outcome before extracting the documented status field. I would test it with saved replies first; no need to involve the whole cell to catch a parser choosing the wrong number.

15points
RO
RosaBrown0901
Replying to LucaCarter0961

The developer found the wrapper taking the first element it could turn into an integer. We have replaced that with the documented field lookup. A saved failed request now gives unavailable, not a status.

6points
FI
FionaArcher0412
Replying to RosaBrown0901

What does a good reading followed by that failure show?

17points
LU
LucaCarter0961
Replying to RosaBrown0901

And try a successful request with the status field absent. I caught a similar hole recently: the outer reply looked fine, then the wrapper supplied its own cheerful default.

1points
RO
RosaBrooks0814
Replying to FionaArcher0412

Keep any previous reading visibly old, RosaBrown. The person checking the bench should not need to inspect the log to discover that the large status label is no longer current.

21points
RO
RosaBrown0901
Replying to RosaBrooks0814

Both cases pass now. After failure the current field is unavailable; the last successful reading sits separately with its age. Missing status and unknown response shape also show unavailable. The maintainer tested startup, failure after success and recovery to a new success from the normal shortcut.

1points
LU
LucaCarter0961
Replying to RosaBrown0901

Thanks for checking recovery too. Has the export stopped presenting the retained value as current?

20points
RO
RosaBrown0901
Replying to LucaCarter0961

Yes. Export uses the same adapter result and identifies the retained reading separately. We compared the screen and exported rows through those cases after restarting the workstation. The maintainer has the restored environment and test examples; this one is closed.

9points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .