Failing get FX Prices using RFA

gcorretge
gcorretge Newcomer

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.

Tagged:

Best Answer

  • @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".