function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jigglypufflyjigglypuffly 

Retrieve Marketing Cloud SOAP API SendEvent - Read Timeout

I want to be able to retrieve all sendevents from the date range and the subscriber list specified, however, I always get read time out when I do this in Prod. (Works fine in lower region.) How can I improve the architecture so that I can get all of the sendevents I need?
 
<?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <env:Header>
            <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <UsernameToken>
                    <Username>XXX</Username>
                    <Password>XXX</Password>
                </UsernameToken>
            </Security>
        </env:Header>
        <env:Body>
            <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
                <RetrieveRequest>
                    <ClientIDs><ClientID>XXX</ClientID></ClientIDs>
                    <ObjectType>SentEvent</ObjectType>
                    <Filter xsi:type="ComplexFilterPart">
                        <LeftOperand xsi:type="SimpleFilterPart">
                            <Property>EventDate</Property>
               		   <SimpleOperator>between</SimpleOperator>
               		   <DateValue>2020-05-30T03:00:00.000Z</DateValue>
               		   <DateValue>2020-06-29T02:59:59.999Z</DateValue>
                        </LeftOperand>
                        <LogicalOperator>AND</LogicalOperator>
                       
                                      <RightOperand xsi:type="SimpleFilterPart">
	                                <Property>SubscriberKey</Property>
                            		  <SimpleOperator>IN</SimpleOperator>
                                     <Value>x@gmail.com</Value>
                                     <Value>C_x_y</Value>
                                     <Value>C_x1_y1</Value>
                                     <Value>C_x2_y2</Value>
                                     <Value>t</Value>
                                     <Value>dd@d.com</Value>

                                      </RightOperand>
                         
                    </Filter>
                    <Properties>SendId</Properties>
                    <Properties>BatchId</Properties>
                    <Properties>TriggeredSendDefinitionObjectID</Properties>
                    <Properties>EventType</Properties>
                   
                </RetrieveRequest>
            </RetrieveRequestMsg>
        </env:Body>
    </env:Envelope>

 
AbhishekAbhishek (Salesforce Developers) 
Hi,

It would be better if you post this query on the Success - Salesforce Marketing Cloud page. so the experts on MC can help:

https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000001pQ5CAI

Thanks.
SImmySImmy
You can increase the timeout . Are you using Http to send the request? If yes then you can easily use SetTimeout(120000).