question

Upvotes
Accepted
43 1 0 1

Do we need to clear the dictionary when the session is reconnected again?

I am running the ETA tutorial4 overnight. The app exited due to an error as follows:

"Received Dictionary Response: RWFFld

Decoding Dictionary failed: Duplicate definition for fid 1.

rsslReactorDispatch() failed: Unknown return code -1 from callback.

Exiting."

What's the best practice to prevent this error? To clear the dictionary before decoding the response? Or just simply discard it?

Thanks.

elektronrefinitiv-realtimeelektron-sdkrrteta-apielektron-transport-apiconnection
icon clock
10 |1500

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

Upvotes
Accepted
38.1k 71 35 53

I got the same problem when the application reconnected.

The code could be similar to the VAConsumer example in the Elektron SDK package.

The VAConsumer deletes the loaded dictionary when the connection is up.

We will update the ETA tutorial4 to handle this problem.


vaconsumer.png (45.5 KiB)
icon clock
10 |1500

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

Upvotes
43 1 0 1

Thanks, Jirapongse.

Not sure how often the dictionary is modified/updated. We may just discard the new response, and keep using the existing dictionary.

icon clock
10 |1500

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

Upvotes
20.3k 73 10 20

Hi @ayan@jump

The data dictionary files are typically updated approx 4-6 week intervals, to add or amend field and enum definitions.

There is a risk that if you use an outdated dictionary to decode a payload with a new field, your application coud throw an exception.

icon clock
10 |1500

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

Upvotes
43 1 0 1

Thanks, Umer.

We will update the dictionary every day. Just hope that there is no intra-day update.

icon clock
10 |1500

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

Click below to post an Idea Post Idea