question

Upvotes
Accepted
1 0 0 0

i am getting the following error while submitting message Received event OMM_CMD_ERROR_EVENT: { state: FAILURE, code: NO_RESOURCES, text: "Error publishing OMMMsg: Invalid encoder state. Message does not have attribInfo."}

treprfarfa-apierror
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.

Upvotes
Accepted
1 0 0 0

Is this the first time you are running this code or are is this existing code suddenly generating errors? Nope it has running since ages

Is this your own code or you running an existing RFA SDK example? Nope

If an existing RFA example, have you changed the example, if so

changes? There is no change in the code in recent times

we are using the following RFA version of the library 8.1.0.L1

OMMSubscriptionHandler.txt


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.

Upvotes
24.6k 86 10 22

Hi @naeemchennai

The message indicates that OMMMSg you are trying to publish is incomplete i.e. missing the AttribInfo

However, you will need to provide some more detail so that we can help you - there is not sufficient information provided.

Is this the first time you are running this code or are is this existing code suddenly generating errors?

Is this your own code or you running an existing RFA SDK example?

If an existing RFA example, have you changed the example, if so what changes?

If you can provide the code snippet for the OMMMsg encoding and submit that would be good. Please attach the code in a text file rather than posting directly into the reply.



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.

Upvotes
24.6k 86 10 22

Hi @naeemchennai

Thanks for attaching some source code. Unfortunately, the source is primarily subscriber related and does not show any of the relevant provider code - in particular how you encode RespMsg before submitting it to the API for publishing.

One thing to note is that for Refresh type RespMsg it must include AttribInfo, whereas it is can be optional for an Update type Resp - depending on the ReqMsg specification.


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.