"Invalid value (fixed area)"

Working through this tutorial: EMA Consumer - Posting data to TR Contribution Channel (C/C++) and getting an error when posting data. The spec I'm working from specifies two fids: BID (Fid 393) and Date (Fid 875) and as a test I want to send two hard-coded values, 4.26 and 10/31/2019. Here's how the payload is created:

.payload(FieldList()
.addReal(393, 426, OmmReal::ExponentNeg2Enum)
.addDate(875, 2019, 10, 31)
.complete()))

This results in:

AckMsg
streamId="5"
domain="MarketPrice Domain"
ackId="1"
nackCode="DeniedBySource"
text="Invalid value (fixed area)"
AckMsgEnd


What does "Invalid value (fixed area)" mean? Is there a problem with one of the fields? Are there fields missing? Any ideas?





Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @jeff.birkel

    I got the same error when contributing to the value of FID 875 (VALUE_DT1).

    .payload(FieldList() 
                    .addDate(875, 2019, 11, 8)
                    .complete()))
    AppClient::onAckMsg :: AckMsg
        streamId="5"
        domain="MarketPrice Domain"
        ackId="14"
        nackCode="DeniedBySource"
        text="Invalid value (fixed area)"
    AckMsgEnd

    It works fine if I contribute only FID 393 (PRIMACT_1).

    .payload( FieldList()                          
               .addReal(393, 426, OmmReal::ExponentNeg2Enum)
               .complete() ))

    I have also subscribed to that contributed item and found that the update message contains both FID 393 and 875.

    UpdateMsg
        streamId="5"
        domain="MarketPrice Domain"
        updateTypeNum="0"
        DoNotConflate
        seqNum="59566"
        name="TRCCTEST01"
        serviceId="2115"
        serviceName="API_ELEKTRON_EPD_RSSL"
        Payload dataType="FieldList"
            FieldList
                FieldEntry fid="875" name="VALUE_DT1" dataType="Date" value="07 NOV 2019"
                FieldEntry fid="1010" name="VALUE_TS1" dataType="Time" value="03:42:58:000:000:000"
                FieldEntry fid="270" name="ACT_TP_1" dataType="Enum" value="0"
                FieldEntry fid="393" name="PRIMACT_1" dataType="Real" value="4.26"
            FieldListEnd

        PayloadEnd
    UpdateMsgEnd

    I assume that the value of FID 875 is generated by TRCC and the application is not allowed to contribute to this field.

    However, you need to directly contact the TRCC support team for confirmation. Please visit my.refinitiv.com and select the "Thomson Reuters Contributions Channel" product.

Answers

  • Yes, the support team came up with the same suggestion and it worked. Thank you for your response.