Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • UPA /
avatar image
Question by LarryT · Jan 06, 2016 at 01:42 AM · elektronelektron-sdkrrteta-apielektron-transport-apierror

Getting a decoding error when calling the decodeToXml of a request message

I am using UPAJ to encode a request message that contains Key Attribute with the ELEMENT_LIST data type and Payload with the FILED_LIST data type. (Mix of data type)

Before I send this message to a provider, I want to print the message in XML format but when I call the Msg.decodeToXml method, I always get the error like this.

<REQUEST domainType="129" streamId="5" containerType="FIELD_LIST" flags="0x106
(HAS_PRIORITY|STREAMING|PRIVATE_STREAM)" priorityClass="1"priorityCount="1" dataSize="28"> 
<key flags="0x23 (HAS_SERVICE_ID|HAS_NAME|HAS_ATTRIB)" serviceId="4443"
name="TRI" attribContainerType="ELEMENT_LIST"> 
<attrib> 
<elementList flags="0x08 (HAS_STANDARD_DATA)">
 <elementEntry name="ApplicationId" dataType="ASCII_STRING" data="256"/>
 </elementList>
 </attrib>
 </key>
 <dataBody>
 <fieldList flags="0x08 (HAS_STANDARD_DATA)">
 Error occurred while decoding FieldEntry, CodecReturnCode=-26
</dataBody> 
</REQUEST> 

However, this message is sent successfully to a provider and the provider can decode it correctly.

What is the meaning of this error message?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Jirapongse · Jan 07, 2016 at 08:50 PM

Msg.decodeToXml() is used to decodes all containers within the message to XML.

From the error message, it indicates that it is unable to decode the FieldEntry inside the payload of the message.

I have verified the problem and found that it is a bug in Msg.decodeToXml() in UPA Java 8.0.0.L1 and below. The development team will fix this issue in the next UPA Java release.

In conclusion, if you found this error message, it could be a bug in Msg.decodeToXml(), not in the encoding logic. You can verify this by using DecodeIterator to decode the message. If DecodeIterator can properly decode all containers within the message, you can ignore this error and use the message.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
2 People are following this question.

Related Questions

How can I use FieldList’s set definitions for payload in the MarketPrice response?

Crash in rsslFlush function in debugger

UPA rsslInitChannel fail Error (11)

Error: 1002 ripcRead() failure. system error:(10054)

rsslRead and rsslDecode functions latency spikes

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges