Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Excluding non engaged subscribers from email delivery

elisag19795522
Level 2
Level 2

Hello,

I want to send a delivery excluding everyone who has not opened an email in the last 180 days. When adding into a query the delivery, it only allows me to select deliveries one by one, I cannot select all, nor I can select a date range.

What is the easiest way to achieve this?

Thanks,

1 Accepted Solution
elisag19795522
Correct answer by
Level 2
Level 2

I've tried this and it looks like it worked:

1858933_pastedImage_0.png

View solution in original post

6 Replies
elisag19795522
Level 2
Level 2

Hi,

When doing that, I get the following errors:

21/11/2019 16:37:44

query1

WDB-200001 SQL statement 'INSERT INTO wkf61230670_1_1 (iId) SELECT DISTINCT N0.iRecipientId FROM NmsRecipient N0 WHERE ( EXISTS (SELECT 1 FROM NmsBroadLogAppSubRcp N1 WHERE (N1.iProfileId = N0.iRecipientId) AND ((((N1.iStatus = 1) AND (N1.tsEvent >= DaysAgo(180) AND N1.tsEvent < GetDate())) AND ))) OR EXISTS (SELECT 1 FROM NmsBroadLogRcp N1 WHERE (N1.iProfileId = N0.iRecipientId) AND ((((N1.iStatus = 1) AND (N1.tsEvent >= DaysAgo(180) AND N1.tsEvent < GetDate())) AND ))) ) AND ((N0.iRecipientId > 0 OR N0.iRecipientId < 0))' could not be executed.

21/11/2019 16:37:44

query1

PGS-220000 PostgreSQL error: ERROR: syntax error at or near ")" LINE 1: ... >= DaysAgo(180) AND N1.tsEvent < GetDate())) AND ))) OR EXI... ^

SatheeskannaK
Community Advisor
Community Advisor

I just did it again and got the 3results. When i did query against delivery logs status sent and event date corresponds to last 180days gave me 10 results and after adding tracking logs doesn't exists condition brought down the count to 3. Verified the profiles and they didn't open any emails received. Also hope you have set the target and filtering dimension as profile.

You may try adjust the event date from 180days to something else and see how that works.

Screen Shot 2019-11-21 at 11.21.26 AM.png

Thanks!

elisag19795522
Level 2
Level 2

I tried again narrowing the query, like below:

1856929_pastedImage_0.png

And still got the following error:

1857722_pastedImage_1.png

Do you know what the error means?

Thanks

SatheeskannaK
Community Advisor
Community Advisor

Do you have any deliveries that are in sent state between the dates you choosen? and If you have any delivery then try to choose one specific delivery (change the criteria from event date to delivery label) and see whether you're getting some count without any error. Just to see if that works.

elisag19795522
Correct answer by
Level 2
Level 2

I've tried this and it looks like it worked:

1858933_pastedImage_0.png

View solution in original post