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 /
avatar image
Question by Lars-at-Addicticks · Dec 26, 2017 at 04:58 PM · javaRFAJ

Dictionary Id 0 (zero) vs 1 (one)

I load local file field dictionary, latest and greatest. Dictionary file looks like this in the header:

...
! Copyright Thomson Reuters 2017
!
!tag Filename  RWF.DAT
!tag Desc      RDF-D RWF field set
!tag Type      1
!tag Version   4.20.30
!tag Build     006
!tag Date      19-Oct-2017
!tag DictionaryId 1
!
...

(note the 'DictionaryId' tag)

With this I would expect FieldDictionary#getDictId() to return 1 after a successful load. But it doesn't!!

Here's a minimal example:

public class DictIdCheck {
  public static void main(String[] args) {
    FieldDictionary fDict = FieldDictionary.create();
    System.out.println("Dictionary Id, before load (getDictId()) : " +  fDict.getDictId());
    FieldDictionary.readRDMFieldDictionary(fDict, args[0]);
    FieldDictionary.readEnumTypeDef(fDict, args[1]);
    System.out.println("Dictionary Id, after load (getDictId()) : " +  fDict.getDictId()); 
    System.out.println("Dictionary Id (property 'DictionaryId') : " + fDict.getFieldProperty("DictionaryId"));
  }
}

which returns:

Dictionary Id, before load (getDictId()) : 0
Dictionary Id, after load (getDictId()) : 0
Dictionary Id (property 'DictionaryId') : 1

I'm using RFA Java 8.1.0.L1 (latest and greatest)

Is this behavior intentional or is it a bug ?


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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Pimchaya.Wongrukun · Oct 16, 2019 at 09:56 AM

Hello @Lars-at-Addicticks

The RFA Java 8.1.2.L1 package includes a fix of this issue.

You can download the package from Downloads of Robust Foundation API (RFA) · Java .


fixedversion.png (20.6 KiB)
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.

avatar image
REFINITIV
Answer by Pimchaya.Wongrukun · Dec 27, 2017 at 04:52 AM

Hello @Lars-at-Addicticks

Based on my test, it seems that FieldDictionary.getDictId() in RFA Java returns the value from a tag named "Id" not "DictionaryId" . My dictionary file added !tag Id 2:

!tag Filename  RWF.DAT
!tag Desc      RDF-D RWF field set
!tag Type      1
!tag Version   4.20.28
!tag Build     001
!tag Date      02-Feb-2017
!tag DictionaryId 1
!tag Id 2

The output from running your given source code and the input is my dictionary file:

Dictionary Id, before load (getDictId()) : 0
Dictionary Id, after load (getDictId()) : 2
Dictionary Id (property 'DictionaryId') : 1

It is possible that this is RFA Java bug because RFA C++ returns DictionaryId's value using a similar method.

This problem is needed to be investigated in depth to confirm if this is RFA Java bug or not from the development team. Hence, I have created a new case on behalf of you. It is case 06159302. Once I get any response from the development team, I will let you know via the email case 06159302.

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 >
12 People are following this question.

Related Questions

Error : Unable to read MFEED Data Dictionary from file.

not able to rerurn JSON aaray in RESTAPI (local host )

Java TREP UPA API - Choosing an Optimal Buffer SIze

EmaConfig.xml when using Java - problem

Using RFAJ Non-Interactive Provider to provide Record Augmentation

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges