# SD0031

**URL:** <https://forum.certara.com/t/sd0031/196>\
**Category:** SDTM\
**Created:** [February 18, 2011, 9:28am UTC](https://forum.certara.com/t/sd0031/196 "2011-02-18T09:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinc](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@martinc](https://forum.certara.com/u/martinc)\
**Post date:** [February 18, 2011, 12:08pm UTC](https://forum.certara.com/t/sd0031/196/1 "2011-02-18T12:08:53Z")

</div>

Just to follow up on this, I’ve had a look in the config for this rule in v1.2 and I think:

Test=“%Domain%STDTC != ‘’ @or %Domain%STRF != ‘’”

should perhaps be:

Test=“%Domain%STDTC != ‘’ @or %Domain%STRF != ‘’ @or %Domain%STRTPT !=‘’”

It looks like this test does not support the use of --STRTPT/–STTPT

---

<div class="post-metadata">

**Author:** ![martinc](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@martinc](https://forum.certara.com/u/martinc)\
**Post date:** [February 18, 2011, 9:28am UTC](https://forum.certara.com/t/sd0031/196/2 "2011-02-18T09:28:00Z")

</div>

Hi,

I am getting this warning for the CM domain:

"Start date expected when end date provided

SD0031: Identifies records that violate the condition [Start Date/Time of Observation or Start Relative to Reference Period is not null], limited to records where [End Date/Time of Observation or End Relative to Reference Period is not null]"

The rows that are provoking it look typically like:

cmstdtc  
cmendtc 2004-10-11/2005-04-12  
cmstrtpt BEFORE  
cmenrtpt  
cmsttpt 2003-10-23 10:15:33  
cmentpt

So basically we have an definite end date/time (as an interval) but the start is relative to a time point. If the end date/time is also relative to a time point, e.g.

cmstdtc  
cmendtc  
cmstrtpt BEFORE  
cmenrtpt ONGOING  
cmsttpt 2003-10-29 10:48:47  
cmentpt 2005-10-04 14:46:27

then the warning is not triggered.

This looks wrong to me - am I missing something?

Thanks for any help,

Martin
