Encoded data length exceeds RWF length. Price contribution
Hello guys. Need you help, with price contribution. Here is the situation:
<!-- Outgoing Reactor message -->
<!-- java.nio.channels.SocketChannel[connected local=/172.23.0.3:56500 remote=contrib1-emea1.platform.refinitiv.com/52.51.64.48:443] -->
<!-- Thu Nov 19 17:14:00 UTC 2020 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<GENERIC domainType="SYSTEM" streamId="3" containerType="MSG" flags="0x19 (HAS_EXTENDED_HEADER|HAS_SEQ_NUM|MESSAGE_COMPLETE)" seqNum="80" dataSize="65">
<extendedHeader data="0100"/>
<dataBody>
<POST domainType="MARKET_PRICE" streamId="6" containerType="MSG" flags="0x62 (HAS_POST_ID|POST_COMPLETE|ACK)" postId="79" postUserId="0" postUserAddr="0.0.0.0" dataSize="43">
<dataBody>
<UPDATE domainType="MARKET_PRICE" streamId="6" containerType="FIELD_LIST" flags="0x08 (HAS_MSG_KEY)" updateType="0" dataSize="14">
<key flags="0x02 (HAS_NAME)" name="IMSF3INAV=LEVL"/>
<dataBody>
<fieldList flags="0x08 (HAS_STANDARD_DATA)">
<fieldEntry fieldId="393" data="4039 6031 26E9 78D5"/>
</fieldList>
</dataBody>
</UPDATE>
</dataBody>
</POST>
</dataBody>
</GENERIC>
<!-- Incoming Reactor message -->
<!-- java.nio.channels.SocketChannel[connected local=/172.23.0.3:56500 remote=contrib1-emea1.platform.refinitiv.com/52.51.64.48:443] -->
<!-- Thu Nov 19 17:14:00 UTC 2020 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<GENERIC domainType="SYSTEM" streamId="3" containerType="MSG" flags="0x19 (HAS_EXTENDED_HEADER|HAS_SEQ_NUM|MESSAGE_COMPLETE)" seqNum="80" dataSize="112">
<extendedHeader data="0100"/>
<dataBody>
<ACK domainType="MARKET_PRICE" streamId="6" containerType="NO_DATA" flags="0x22 (HAS_TEXT|HAS_NAK_CODE)" ackId="79" nakCode="DENIED_BY_SRC" text="Encoded data length exceeds RWF length Fid Id [393] [Failed to apply update. Cache build failed]" dataSize="0">
<dataBody>
</dataBody>
</ACK>
</dataBody>
</GENERIC>
Here is the code:
FieldList nestedFieldList = EmaFactory.createFieldList();
val inavValue = inav.getTargetNavT1().setScale(INAV_SCALE, HALF_EVEN).doubleValue();
nestedFieldList.add(EmaFactory.createFieldEntry().doubleValue(INAV_FIELD_ID, inavValue));
UpdateMsg nestedUpdateMsg = EmaFactory.createUpdateMsg()
.streamId(postStreamId)
.name(inav.getEtp().getRic())
.payload(nestedFieldList);
val id = ++postId;
final PostMsg payload = EmaFactory.createPostMsg()
.streamId(postStreamId)
.postId(id)
.domainType(EmaRdm.MMT_MARKET_PRICE)
.solicitAck(true)
.complete(true)
.payload(nestedUpdateMsg);
consumer.submit(payload, loginStreamHandle);
That`s the current situation. Previously I was preparing field like that:
nestedFieldList.add(EmaFactory.createFieldEntry()
.realFromDouble(INAV_FIELD_ID, inav.getTargetNavT1().setScale(INAV_SCALE, HALF_EVEN).doubleValue())
);
With that code no errors happened, but we was told that we are sending zeros.
Someone can please tell the correct way to send price as double?
Tagged:
0
Best Answer
-
Hello @dkamburov
- What are the version of EMA Java and Java SDK that you are using?
- Which component (ADH Cache, RCC, ATS, etc.) that the application aims to contribute data to?
The "Encoded data length exceeds RWF length" message is generated from the infra backend. The message means the posted value is exceeded PRIMACT_1 (FID 393) field length specification.
You can find more detail of how to contribute data with the following resources/example:
- EMA Consumer - Posting data to Contribution Channel tutorial (for RCC)
- Contributing your data to Refinitiv article (for RCC)
- EMA Java examples ex340_MP_OnStreamPost and ex341_MP_OffStreamPost (for generic OMM Post message)
0
Answers
-
I will correct my question. I am searching for a correct way of price contribution and the price contains decimal plates.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛