question

Upvotes
Accepted
3 0 0 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-sdkrrtema-apielektron-message-apiOMM
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
20.3k 73 10 20

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

Upvotes
3 0 0 3

Thank you for your answer.

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