question

Upvotes
Accepted
1 1 1 2

RFA Post Msg update data Error

I am using RFA post msg to update data.

The item I need to update is really existing.

When I use the example code "StarterConsumer_Post" .

I always get the error message [500] Unknown Item

I don't know how to fix it

Please Help!!

treprfarfa-apipost
quote.png (72.3 KiB)
postmsg.png (58.6 KiB)
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

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

JPY3MFSPD=TFCB is a real Elektron RIC. I assume that you have added this RIC to ATS as a real-time record. After adding this RIC to ATS, I got the same error when testing this RIC with StarterConsumer_Post.

        FieldEntry [  4237] QUOTE_TYPE
        FieldEntry [  4305] NEWSTM_MS
        FieldEntry [  4737] P_C_IND1
        FieldEntry [  5357] CONTEXT_ID          2713.0000
        FieldEntry [  6401] DDS_DSO_ID          4118
        FieldEntry [  6410] BR_LINK2
        FieldEntry [  6480] SPS_SP_RIC          ".[SPSDCA"
        FieldEntry [  8635] RCS_AS_CL2
********************** INFO ************************ INFO **********************
2018/05/04 15:39:35.022 INFO
    -> Submit Post Msg with Msg MarketPrice seq#: -1 post id: 2
2018/05/04 15:39:35.122 TRACE <- Received MMT_MARKET_PRICE on-stream AckMsg from Provider:

    AttribInfo received:
    name        : JPY3MFSPD=TFCB
    nameType    : 1
    serviceName : API_ATS1_4
    AckId       : 2
    SequenceNo  : not received
    Received TextFlag
    Status text : [500]: Unknown Item
    Received NackCodeFlag
    Nack code    : 2

You need to change fields’ expression of this record in ATS to make it work. For example, the StarterConsumer_Post example posts two fields (RDNDISPLAY and TRDPRC_1). Therefore, you need to change the expression of these fields to STATIC_CONTRIB[].

After changing, the example can post data to ATS properly.


ats.png (167.7 KiB)
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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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