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-sdkrrtema-apielektron-message-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.

Upvotes
Accepted
38.1k 71 35 53

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 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea