WEB-530011 Error
When using the Adobe Campaign Data API I have a long running query that eventually seems to time out with this error "WEB-530011 Service temporarily unavailable.". Is there a system setting that controls when this error is returned? I cannot find it in the docs anywhere.
This timeout happens when I run a query that needs to hit a large Message Center table and take a small 1% sample of the email addresses in that table - since there is too much data to return (> 25M records). This is the query - it is designed to returns the count of sends by delivery label by address:
<urn:sessiontoken>$sessionToken</urn:sessiontoken>
<urn:entity>
<queryDef schema="nms:broadLogEventHisto" operation="count">
<!-- fields to retrieve -->
<select>
<node expr="@address" groupBy="true"/>
<node expr="[delivery/@label]" groupBy="true"/>
<node expr="count(@id)" alias="sends"/>
</select>
<where>
<condition expr="@eventDate>='2017-06-01'"/>
</where>
<having>
<condition expr="sha1_mod(digest(@address, 'sha1'), 100)=1"/>
</having>
</queryDef>
</urn:entity>
Is there a more efficient way to randomly sample 1% of the email addresses? I tried moving the hashing of the email address inside the where and having blocks. I would like to be able to do this from the API side rather than having to go into Adobe Campaign and run the query in a workflow since I am building data automation that I want to control from outside of Campaign. I am on Adobe Campaign v7.
Any ideas?
Matt