Page 1 of 1

Using date field in target group definition fails

Posted: Mon Jan 10, 2011 2:49 pm
by greetchen
Hi,
I am quite new with open emm, using version 6.1. I would like to send out a mailing to a date-based target group (ideal would be creation_date or change_date but I am also open to creating and additional date field as reference).

However, when I set up a target group using change_date = sysdate (or current_timestamp - I tried both) I do not get any recipient returned.

Same happens in the recipient search - no result found when searching for change_date = sysdate or current_timestamp. I am sure there is data, when I search with change_date = 20110111 I get recipients returned (same thing with all other date fields).

I do not think my system date is set wrong, when creating a user he gets a correct creation date. Can anybody help? According to the user guide this should be so easy...

Thanks
greetchen

Posted: Mon Jan 10, 2011 3:37 pm
by maschoff
Could you describe a specific example we can check and reproduce?

Posted: Mon Jan 10, 2011 3:59 pm
by greetchen
Sure. I even use two options in the example.
Have defined a custom field LWO-date with data type= date.

Create new recipient manually with name, first name, email address and LWO date = 10 Jan 2011
Save
Profile Data displays as follows:
Creation_date = 10 Jan 2011
Change_date = 10 Jan 2011
LWO_date = 10 Jan 2011

Go to Recipient Overview -- Search.
Enter Search criteria:
a) creation_date = 20110110 - find 3 recipients, among them my test candidate
b) same result with change_date and LWO_date

c) creation_date = sysdate : Nothing found to display
d) change_date = sysdate: Nothing found to display
e) LWO_date = sysdate Nothing found..
f) creation_date = current_timestamp Nothing found ... etc.

hope that helps. thanks for the quick reply
greetchen

Posted: Tue Jan 11, 2011 11:40 am
by greetchen
By the way - I just checked the same thing on the public demo version on http://demo.openemm.org:8080 and found the same behavior there.

So my first assumption that something with my database settings could be wrong seems not to be the issue.

Posted: Tue Jan 11, 2011 7:32 pm
by maschoff
Ok, we will look into that!

Re: Using date field in target group definition fails

Posted: Fri Jan 21, 2011 9:45 pm
by maschoff
OK, I had a look at the user manual, page 67 ff: Please use now() instead of sysdate or timestamp and try again (sysdate is used by Oracle).

Re: Using date field in target group definition fails

Posted: Mon Jan 24, 2011 11:50 am
by greetchen
:oops: I should really have had a thorough look into that manual (instead of reading books and blogs...).
Thank you so much, I am really happy that I got this work now !!!
Greetchen