question

Upvotes
Accepted
2 0 0 2

How can I check which record could not be find using EMA ?

I have a question about I receive a status message which record couldn't be find when I register a contract. I used a for-loop to register many contracts at one time. How can I identify the message from which contract? Please help me find the answer. Thanks.

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-api
icon clock
10 |1500

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

Monitored by Jirapongse

Upvotes
Accepted
79.2k 251 52 74

You can use StatusMsg.getName() to retrieve the name of subscribed contract.

void AppClient::onStatusMsg( const StatusMsg& statusMsg, const OmmConsumerEvent& ) 
{
	cout << statusMsg << endl;		
	cout << statusMsg.getName().c_str() << endl;
	cout << statusMsg.getState().getStatusText().c_str() << endl;
}

The output is:

StatusMsg
    streamId="5"
    domain="MarketPrice Domain"
    state="Closed / Suspect / Not found / 'The record could not be found'"
    name="FA"
    nameType="1"
    serviceId="2115"
    serviceName="API_ELEKTRON_EPD_RSSL"
StatusMsgEnd

FA
The record could not be found
icon clock
10 |1500

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

Upvotes
2 0 0 2

Hi jirapongse.phuriphanvichai

Thank you so much.

I got it and have a nice day.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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