question

Upvotes
Accepted
7 2 3 5

使用实时行情RTSDK CPP Linux,连接到RTO成功,但是有时无法得到refresh的结果

已经配好了private link,但是发现有时可以得到订阅的实时行情refresh的结果,有时什么都不能收到。使用相同的application,相同的账号,订阅相同的RIC,在机器A上(使用proxy,没有打通private link)没有问题,在机器B上(打通了private link)有时候会收不到任何实时行情,但有时候又可以收到。请问有人知道这个可能的原因吗?谢谢!

EmaConfig使用的是Consumer_4,success.txt和fail.txt是在机器B上同样的程序运行了两次产生的不同结果,success.txt中最后两行说明成功refresh了数据,fail.txt中说明没有任何反应,也没有收到数据。


1. EmaConfig.xml:

<Consumer>

<Name value="Consumer_4"/>


<!-- ChannelSet specifies an ordered list of Channels to which OmmConsumer will attempt to -->

<!-- connect, one at a time, if the previous one fails to connect -->

<ChannelSet value="Channel_4"/>

<RestEnableLog value="1"/>


<Logger value="Logger_1"/>

<Dictionary value="Dictionary_1"/>

<XmlTraceToStdout value="0"/>

</Consumer>

<Channel>

<Name value="Channel_4"/>

<ChannelType value="ChannelType::RSSL_ENCRYPTED"/>

<CompressionType value="CompressionType::None"/>

<GuaranteedOutputBuffers value="5000"/>

<!-- EMA discovers a host and a port from RDP service discovery for the specified location

when both of them are not set and the session management is enable. -->

<Location value="us-east"/>

<EnableSessionManagement value="1"/>

<EncryptedProtocolType value="EncryptedProtocolType::RSSL_SOCKET"/>

<!-- ObjectName is optional: defaulted to "" -->

<ObjectName value=""/>

</Channel>




2. success.txt:

--- REST REQUEST ---


<!-- Time: 1:23:23:825 -->

URL: https://api.refinitiv.com/auth/oauth2/v1/token

HTTP method POST

HTTP header data:

Accept : application/json

Content-Type : application/x-www-form-urlencoded

HTTP body data: grant_type=password&username=GE-A-00515443-3-7804&client_id=17fcf22002bd4fbe849fa189b266e305b9157c71&scope=trapi.streaming.pricing.read&takeExclusiveSignOnControl=true

Request timeout: 90


--- REST RESPONSE ---


<!-- Time: 1:23:24:242 -->

HTTP header data:

Date : Wed, 13 Oct 2021 05:23:24 GMT

Content-Type : application/json

Transfer-Encoding : chunked

Connection : keep-alive

Content-Encoding : gzip

X-Amzn-Trace-Id : Root=1-61666d4b-1fb28dbd6e8dc7c51ae7fd49

X-Served-By : region=us-east-1; cid=677eb9aab6654a5183cab694fe6e6b6d

X-Tr-Requestid : e7e3a1f7-2148-4bd3-9c24-9c87686a9dd7

HTTP body data: { "access_token":"eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiTEZSMzJLczFfRmt6Nm9oYUJ3Mk8yM09xalZRbzNPWnVyQUpPZUpwZkpDRllEX0FmVUdQby1xNDlzWl8xM2pWZ2h6dkxUWlBvZnRFTmR4eW9NenNZSUc1VW53QWo1M0IxMmFGeHJSUTZncm1vMDRuMjNidnE3N0lnT2lCbmNHSVpPdkhFZ1FuQjNtTFhSQ0RabUVqZVlGTnlXOS01UTBvNUxaa0M0QU90dHp3OXU0QVpBNERva285UDNpTGExeXRIeWpUeVp1SGdVSHpDbE12QVd3ZHJzeVBzVkFLbEZ2SE5xTHk1RHh6UjhKdk91VzFJTjNxTEp1TDM5YTdtZFQ3OVYwOXdsNEEyNDVCN0xwTm5JR1pjZ0hBaU9rakZzaWsyWHd5SE1Gbm04Yk9WWTFnVlk2UVExTE1PcElpeG15d2wtWkZTMGp3SHZHZVhEM2UxT0k0M1MyQnpiQ3cyMHhzSjJtZGN2NHZzenZ4N2NmeGFkZkNFaW9hTXEtcnR4RVNCXCIsXCJpdlwiOlwibXBhaGZtbnZZWmNVdlU4OVwiLFwicHJvdGVjdGVkXCI6XCJleUpoYkdjaU9pSkJWMU5mUlU1RFgxTkVTMTlCTWpVMklpd2laVzVqSWpvaVFUSTFOa2REVFNJc0lucHBjQ0k2SWtSRlJpSjlcIixcInJlY2lwaWVudHNcIjpbe1wiZW5jcnlwd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CQPefF-JoAluqTvWaA1krvPNNftszjRZQ", "refresh_token":"5c559b9b-e5c2-460e-a193-89219ac1cd85", "expires_in":"600" , "scope":"trapi.streaming.pricing.read", "token_type":"Bearer" }

Protocol version: HTTP/1.1

HTTP status code: 200


--- REST REQUEST ---


<!-- Time: 1:23:24:242 -->

URL: https://api.refinitiv.com/streaming/pricing/v1/?transport=tcp

HTTP method GET

HTTP header data:

Authorization : Bearer eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiTEZSMzJLczFfRmt6Nm9oYUJ3Mk8yM09xalZRbzNPWnVyQUpPZUpwZkpDRllEX0FmVUdQby1xNDlzWl8xM2pWZ2h6dkxUWlBvZnRFTmR4eW9NenNZSUc1VW53QWo1M0IxMmFGeHJSUTZncm1vMDRuMjNidnE3N0lnT2lCbmNHSVpPdkhFZ1FuQjNtTFhSQ0RabUVqZVlGTnlXOS01UTBvNUxaa0M0QU90dHp3OXU0QVpBNERva285UDNpTGExeXRIeWpUeVp1SGdVSHpDbE12QVd3ZHJzeVBzVkFLbEZ2SE5xTHk1RHh6UjhKdk91VzFJTjNxTEp1TDM5YTdtZFQ3OVYwOXdsNEEyNDVCN0xwTm5JR1pjZ0hBaU9rakZzaWsyWHd5SE1Gbm04Yk9WWTFnVlk2UVExTE1PcElpeG15d2wtWkZTMGp3SHZHZVhEM2UxT0k0M1MyQnpiQ3cyMHhzSjJtZGN2NHZzenZ4N2NmeGFkZkNFaW9hTXEtcnR4RVNCXCIsXCJpdlwiOlwibXBhaGZtbnZZWmNVdlU4OVwiLFwicHJvdGVjdGVkXCI6XCJleUpoYkdjaU9pSkJWMU5mUlU1RFgxTkVTMTlCTWpVMklpd2laVzVqSWpvaVFUSTFOa2REVFNJc0lucHBjQ0k2SWtSRlJpSjlcIix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Llagd89PhO_kJPko7btuowufY-GNwlv6lAZi6vCQPefF-JoAluqTvWaA1krvPNNftszjRZQ

Accept : application/json

HTTP body data:

Request timeout: 90


--- REST RESPONSE ---


<!-- Time: 1:23:25:150 -->

HTTP header data:

Date : Wed, 13 Oct 2021 05:23:25 GMT

Content-Type : application/json

Content-Length : 282

Connection : keep-alive

Access-Control-Allow-Headers : authorization,content-type,x-tr-correlationid

Access-Control-Allow-Origin : *

Content-Encoding : gzip

X-Amzn-Trace-Id : Root=1-61666d4c-658700da360d35c4120113a2

X-Served-By : region=us-east-1; cid=37aa5090295147899c136fde03dadbd0

X-Tr-Requestid : 44e97312-cc74-441f-9849-59503f248ef8

HTTP body data: {"services":[{"port":14002,"location":["ap-southeast-1a"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1a","ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a","eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a"],"transport":"tcp","provider":"aws","endpoint":"amer-1-t1.streaming-pricing-api.refinitiv.com","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a","us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"amer-3-t1.streaming-pricing-api.refinitiv.com","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"amer-2-t1.streaming-pricing-api.refinitiv.com","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a","us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]}]}

Protocol version: HTTP/1.1

HTTP status code: 200

loggerMsg

TimeStamp: 01:23:25.178

ClientName: ChannelCallbackClient

Severity: Success

Text: Received ChannelUp event on channel Channel_4

Instance Name Consumer_4_1

Connected component version: ads3.4.2.L1.linux.tis.rrg 64-bit

loggerMsgEnd


--------------------------Consumer Start ------------------------------

status

refresh



3. fail.txt:

--- REST REQUEST ---


<!-- Time: 23:29:11:429 -->

URL: https://api.refinitiv.com/auth/oauth2/v1/token

HTTP method POST

HTTP header data:

Accept : application/json

Content-Type : application/x-www-form-urlencoded

HTTP body data: grant_type=password&username=GE-A-00515443-3-7804&client_id=17fcf22002bd4fbe849fa189b266e305b9157c71&scope=trapi.streaming.pricing.read&takeExclusiveSignOnControl=true

Request timeout: 90


--- REST RESPONSE ---


<!-- Time: 23:29:11:848 -->

HTTP header data:

Date : Wed, 13 Oct 2021 03:29:11 GMT

Content-Type : application/json

Content-Length : 1867

Connection : keep-alive

Content-Encoding : gzip

X-Amzn-Trace-Id : Root=1-61665287-592e95e8139407b917cda8d7

X-Served-By : region=us-east-1; cid=e3a6d998fd504be09f0ccd338d833791

X-Tr-Requestid : 05fb78ad-8e6e-4e99-b88a-f1406a940594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WdEdUI2WXN0ZmpyZjdVa1AxUjhTampwMWhnMDd6N1ZzTTlrNldVV2x4NHN5Q0NCXzk5aG5pOXhVeThseU1Bc0d0Z2oza1JvV29NSVh3bU1pS3dcIixcImhlYWRlclwiOntcImtpZFwiOlwiYXJuOmF3czprbXM6ZXUtd2VzdC0xOjg5ODA4NDk4NDg3NzprZXkvNmE4NjU5MmYtMzYxNC00ODE2LTljNDMtODExYmVmZGE2ZDYwXCJ9fV0sXCJ0YWdcIjpcImRHSHRVaXJsQ2tzcXVjMkl5VzZzaUFcIn0iLCJyczEiOiIwZmZhMTZjOWQ3ZjlhMzU1NGY0NjE4NjRmNTY1M2YzODY0ZTNmYzIzIiwiYXVkIjoiMTdmY2YyMjAwMmJkNGZiZTg0OWZhMTg5YjI2NmUzMDViOTE1N2M3MSIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuY2lhbS5yZWZpbml0aXYuY29tL2FwaS9pZGVudGl0eS9zdHNfcHJvZCIsImV4cCI6MTYzNDA5NjM1MSwiaWF0IjoxNjM0MDk1NzUxfQ.I_UKdbdM3Zx2dCZ8sN8zJMGpfrJ1tYWr_fwzlVMC8hyBGnLpFeorrXVbJtWGJ9coEgUR7uUXRqOZAVSWXSMlH79XagtSW7LhP4hEoX_3ScqfVLFpAN0GWa-tJY2Sxtnz79_OEMyev7MkiBOaIBfCPOp3jwMCAk2R6NMeHe8Vz6bDDgSl3l5vXscL4qxI5FjuJtkaAv37hCizoYwI6hBQ8qRX67Sdzs3ge2wnPu8S0728mC9WNWQJ-NDDk4fpAoDW1YUXcoSwfklmd0uDEszC5cGmVLbAga4mcRG1t7iRKbH0gZ0kmlhZpMwzG542UaPbejYY-NawGwB3eD65nF2C8g", "refresh_token":"7867d169-fb0c-443b-8f32-ebf98bda4316", "expires_in":"600" , "scope":"trapi.streaming.pricing.read", "token_type":"Bearer" }

Protocol version: HTTP/1.1

HTTP status code: 200


--- REST REQUEST ---


<!-- Time: 23:29:11:848 -->

URL: https://api.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QVM0d0VRUU1adkFRMkR0dnMzc3AwbEZ0QWdFUWdEdUI2WXN0ZmpyZjdVa1AxUjhTampwMWhnMDd6N1ZzTTlrNldVV2x4NHN5Q0NCXzk5aG5pOXhVeThseU1Bc0d0Z2oza1JvV29NSVh3bU1pS3dcIixcImhlYWRlclwiOntcImtpZFwiOlwiYXJuOmF3czprbXM6ZXUtd2VzdC0xOjg5ODA4NDk4NDg3NzprZXkvNmE4NjU5MmYtMzYxNC00ODE2LTljNDMtODExYmVmZGE2ZDYwXCJ9fV0sXCJ0YWdcIjpcImRHSHRVaXJsQ2tzcXVjMkl5VzZzaUFcIn0iLCJyczEiOiIwZmZhMTZjOWQ3ZjlhMzU1NGY0NjE4NjRmNTY1M2YzODY0ZTNmYzIzIiwiYXVkIjoiMTdmY2YyMjAwMmJkNGZiZTg0OWZhMTg5YjI2NmUzMDViOTE1N2M3MSIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuY2lhbS5yZWZpbml0aXYuY29tL2FwaS9pZGVudGl0eS9zdHNfcHJvZCIsImV4cCI6MTYzNDA5NjM1MSwiaWF0IjoxNjM0MDk1NzUxfQ.I_UKdbdM3Zx2dCZ8sN8zJMGpfrJ1tYWr_fwzlVMC8hyBGnLpFeorrXVbJtWGJ9coEgUR7uUXRqOZAVSWXSMlH79XagtSW7LhP4hEoX_3ScqfVLFpAN0GWa-tJY2Sxtnz79_OEMyev7MkiBOaIBfCPOp3jwMCAk2R6NMeHe8Vz6bDDgSl3l5vXscL4qxI5FjuJtkaAv37hCizoYwI6hBQ8qRX67Sdzs3ge2wnPu8S0728mC9WNWQJ-NDDk4fpAoDW1YUXcoSwfklmd0uDEszC5cGmVLbAga4mcRG1t7iRKbH0gZ0kmlhZpMwzG542UaPbejYY-NawGwB3eD65nF2C8g

Accept : application/json

HTTP body data:

Request timeout: 90


--- REST RESPONSE ---


<!-- Time: 23:29:12:368 -->

HTTP header data:

Date : Wed, 13 Oct 2021 03:29:12 GMT

Content-Type : application/json

Content-Length : 282

Connection : keep-alive

Access-Control-Allow-Headers : authorization,content-type,x-tr-correlationid

Access-Control-Allow-Origin : *

Content-Encoding : gzip

X-Amzn-Trace-Id : Root=1-61665287-6bf424ea28b3593f21156ae0

X-Served-By : region=us-east-1; cid=37aa5090295147899c136fde03dadbd0

X-Tr-Requestid : 437d7727-e764-4c8a-80d2-77e03900efd6

HTTP body data: {"services":[{"port":14002,"location":["ap-southeast-1a"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1a","ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a","eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a"],"transport":"tcp","provider":"aws","endpoint":"amer-1-t1.streaming-pricing-api.refinitiv.com","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a","us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"amer-3-t1.streaming-pricing-api.refinitiv.com","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"amer-2-t1.streaming-pricing-api.refinitiv.com","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a","us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]}]}

Protocol version: HTTP/1.1

HTTP status code: 200

loggerMsg

TimeStamp: 23:29:12.396

ClientName: ChannelCallbackClient

Severity: Success

Text: Received ChannelUp event on channel Channel_4

Instance Name Consumer_4_1

Connected component version: ads3.4.2.L1.linux.tis.rrg 64-bit

loggerMsgEnd


--------------------------Consumer Start ------------------------------


treplinux
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.

Upvotes
Accepted
38.1k 71 35 53

@Xueying

If it happened randomly, it could be a problem on the server-side.

When it failed, the log showed that I could connect to the server properly.

Text: Received ChannelUp event on channel Channel_4
Instance Name Consumer_4_1
Connected component version: ads3.4.2.L1.linux.tis.rrg 64-bit

You may try to change the location to ap-southeast or eu-west to verify the problem.

<Location value="ap-southeast"/>

Moreover, you can enable tracing in the EMA to verify data.

<XmlTraceToStdout value="1"/>


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.

Hello @Xueying

You can find more details regarding the EMA C++ logging/tracing from the "EMA C++ Logging" and "XML Trace" sections of the Enterprise Message API (EMA) - Configuration Overview article.

Hi @wasin.w , in the log file, I see

Channel IPC descriptor = 12

What does 12 mean here? I ran the Cons 113 demo and the descriptor is 11 instead of 12. The Cons113 worked just fine and did not have any problem. I wonder does the IPC descriptor indicate something wrong?

Hi @Jirapongse , I tried ap-southeast and the problem still exists.

I added

  1. <XmlTraceToStdout value="1"/>

and I only subscribed SPY.NB for testing. In the success case, in the end of the log, I got

1634190829033.png

However, in the failure case, I did not see the content about SPY.NB at all.

The log ends here

1634190802786.png






1634190802786.png (63.3 KiB)
1634190829033.png (75.2 KiB)
Upvotes
11.5k 16 7 10

Hello @Xueying

The Channel IPC descriptor is the Socket InterProcess Communication (IPC) file-descriptor-based I/O that the API uses for making a network connection with the server. The number value should not relate to the issue.

Could you please give us more detail about the application and environment that encounters the issue?

  • The version of EMA C++ (or RTSDK) that you are using
  • OS/platform
  • Compiler version

Additionally, the false case (1634190802786.png) picture does not contain the outgoing request message (see example below). Can you give us more logs?

request-msg.png


request-msg.png (136.6 KiB)
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.

Hi @wasin.w , we are using RTSDK-2.0.1.L2.linux.rrg on Red Hat 7.9.

g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

cmake 3.10.3


There is no outgoing message showing in the false case. The picture I present is the very end of the log, namely, nothing shows up after "-----Consumer Start-----".

Upvotes
38.1k 71 35 53

@Xueying

From the tracing, you got the dictionary. You can use the XmlTraceToFile configuration instead of the XmlTraceToStdout configuration to trace messages to a file.

<XmlTraceToFile value="1"/>

You may reduce the file size by loading the dictionary from local files by using the following configurations.

        <Dictionary>
            <Name value="Dictionary_2"/>
            <DictionaryType value="DictionaryType::FileDictionary"/>
            <RdmFieldDictionaryFileName value="./RDMFieldDictionary"/>
            <EnumTypeDefFileName value="./enumtype.def"/>
        </Dictionary>

Moreover, you can enable the verbose log to see more information.

        <Logger>
            <Name value="Logger_2"/>
            <LoggerType value="LoggerType::File"/>
            <FileName value="emaLog"/>
            <LoggerSeverity value="LoggerSeverity::Verbose"/>
        </Logger>

Please share the trace and log files when the application succeeded and failed.

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.

Hi @Jirapongse , where can I find RDMFieldDictionary and enumtype.def ?

@Xueying

They are in the \Cpp-C\etc folder.



Got it.

For success log:

emaLog_23904.txt

EmaTrace_1634200854082.txt

Show more comments
Click below to post an Idea Post Idea