question

Upvotes
Accepted
301 7 22 30

Unexpected status received on Update message.

We get strange behavior from the RFA.NET API. After our application successfully subscribe to this RIC (Subscription sent with handle: 248094503616), it get a Refresh message with StreamState = Open | DataState = Ok. Then, we get all sorts of combinations, all for RespType = Update:

a.StreamState = UnspecifiedStreamState | DataState = Suspect

b.StreamState = NonStreaming | DataState = Ok

c.StreamState = Open | DataState = Ok

d.StreamState = Closed | DataState = Suspect

How should we handle these statuses? The biggest issue we have is on the last status: StreamState = Closed | DataState = Suspect which means that data is not valid.

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
11.3k 25 8 14

Hi,

The Update response message (RespType=Update) doesn’t support RespStatus, so retrieving RespStatus from Update response could return unexpected result. Application should not get RespStatus from the Update response. Instead, it can monitor status of item via the RespStatus of Refresh (RespType=Refresh) or Status (RespType=Status) response message.

For example, the Stale status (DataStream=”Suspect” and StreamState=”Open”) for API generally means that current data is out of date or cannot be confirmed as current. If a stale status is received even in Refresh or Status, all data of the item should be marked as stale data.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.