question

Upvotes
Accepted
3 0 1 3

Exception Type='OmmInvalidUsageException', Text='Failed to rsslElementEntry.encode() while encoding rssl elementlist. Reason='INVALID_DATA''

Hello I am trying to use batch to request TREP data using ema api.

I request 9000 Rics in batch mode. I am running into this exception. Can you advise please?

Below my config file:

I tried setting the property GuaranteedOutputBuffers to 10000 and then to 100000.

<?xml version="1.0" encoding="UTF-8"?>
<EmaConfig>


    <ChannelGroup>
        <ChannelList>
            <Channel>
                <Name value="Channel_1" />
                <ChannelType value="ChannelType::RSSL_SOCKET" />
                <GuaranteedOutputBuffers value="100000"/>
		<Host value="xxxxxxx" />
                <Port value="14002" />
            </Channel>
        </ChannelList>
    </ChannelGroup>


    <ConsumerGroup>
    <DefaultConsumer value="cunsumer1"/>
    <ConsumerList>
        <Consumer>
            <!-- Name is mandatory-->
            <Name value="cunsumer1"/>
            <!-- Channel is optional: defaulted to "RSSL_SOCKET+localhost+14002"-->
            <!-- Channel or ChannelSet may be specified -->
            <Channel value="Channel_1"/>
            <XmlTraceToStdout value="0"/>
            <XmlTraceToFile value="1"/>
            <Logger value="Logger_2"/>
        </Consumer>
    </ConsumerList>
</ConsumerGroup>


</EmaConfig>
elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apiOMM
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
Accepted
25.3k 87 12 25

Hi @badie.saada

There is a payload size limit on a Batch request - please see this related post

What is the maximum number of RICs in an EMA batch request?

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
3 0 1 3

Thank you for your answer.

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.