question

Upvotes
Accepted
20 1 1 2

Failing get FX Prices using RFA

Since yesterday our software that retrieves FX prices using RFA is failing with next exception:

Exception Info: ThomsonReuters.RFA.Common.InvalidUsageException

Stack:

at ThomsonReuters.RFA.Common.InvalidUsageException.ThrowInvalidUsageException(Int32, Int32, StateEnum, StatusCodeEnum, ThomsonReuters.RFA.Common.RFA_String)

at ThomsonReuters.RFA.RDM.RDMFieldDictionary.GetFidDef(Int16)

at FXService.client.BaseClient.processMarketPrice(ThomsonReuters.RFA.Message.RespMsg, Int64)

at ThomsonReuters.RFA.SessionLayer.OMMItemEvent.NotifyNativeEvent(ThomsonReuters.RFA.Common.ClientEventClosure, rfa.common.Event*)

at <Module>.ThomsonReuters.RFA.SessionLayer.Unmanaged.UnmanagedEventClient.processEvent(ThomsonReuters.RFA.SessionLayer.Unmanaged.UnmanagedEventClient*, rfa.common.Event*)

at ThomsonReuters.RFA.Common.EventQueue.Dispatch()

at FXService.ReutersClient.<.ctor>b__10_0()

at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

at System.Threading.ThreadHelper.ThreadStart()

RDMFieldDictionary has been changed?

Thanks.

treprfarfa-api
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
7.6k 15 6 9

@gcorretge

RFA will throw the InvalidUasageException when it can't find the definition of the fid id which application passes to the method GetFidDef. In this case, the data that the application received from the data feed may contain new fid/field. You can add a try-catch block to get more details from the InvalidUsageException class.

The RDMFieldDict you are using may not up to date. You may need to update the data dictionary files (RDMFieldDef and enumtype.def) to latest version and you can download it from Software Download page and search for "TREP Template Service pack".

icon clock
10 |1500

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

Click below to post an Idea Post Idea