# AD0246: CNSR is present but both ADT and ADTM are not present.

**URL:** <https://forum.certara.com/t/ad0246-cnsr-is-present-but-both-adt-and-adtm-are-not-present/770>\
**Category:** ADaM\
**Created:** [April 21, 2015, 3:22pm UTC](https://forum.certara.com/t/ad0246-cnsr-is-present-but-both-adt-and-adtm-are-not-present/770 "2015-04-21T15:22:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsalkeld](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jsalkeld](https://forum.certara.com/u/jsalkeld)\
**Post date:** [August 31, 2015, 10:29pm UTC](https://forum.certara.com/t/ad0246-cnsr-is-present-but-both-adt-and-adtm-are-not-present/770/1 "2015-08-31T22:29:45Z")

</div>

Is the rule that EITHER ADT or ADTM need to be present rather than both needing to be present? Times may not be collected.

---

<div class="post-metadata">

**Author:** ![mdigian](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mdigian](https://forum.certara.com/u/mdigian)\
**Post date:** [October 28, 2015, 7:36pm UTC](https://forum.certara.com/t/ad0246-cnsr-is-present-but-both-adt-and-adtm-are-not-present/770/2 "2015-10-28T19:36:00Z")

</div>

This will be fixed in the next version. It should only require ADT or ADTM. You can fix AD0247 yourself by modifying the rule config to use parens and an @OR clause instead of @AND as in

AD0247: CNSR is populated but AVAL, STARTDT and one of [ADT, ADTM] are not populated

test = AVAL != ‘’ @and STARTDT != ‘’ @and (ADT != ‘’ @or ADTM != ‘’)

For AD0245, this may have to be split back out as 2 separate checks which is unfortunate.

**AD0245** : CNSR is present,then STARTDT and **one of** (ADT **or** ADTM) must be present

---

<div class="post-metadata">

**Author:** ![JWeber](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@JWeber](https://forum.certara.com/u/JWeber)\
**Post date:** [May 12, 2016, 1:49pm UTC](https://forum.certara.com/t/ad0246-cnsr-is-present-but-both-adt-and-adtm-are-not-present/770/3 "2016-05-12T13:49:02Z")

</div>

Is it possible to update rule AD0246 to allow for either STARTDT or STARTDTM to be present? We have a dataset that relies on times. We have only defined STARTDTM and ADTM in the dataset. This should be permissible.

---

<div class="post-metadata">

**Author:** ![np](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@np](https://forum.certara.com/u/np)\
**Post date:** [April 21, 2015, 3:22pm UTC](https://forum.certara.com/t/ad0246-cnsr-is-present-but-both-adt-and-adtm-are-not-present/770/4 "2015-04-21T15:22:42Z")

</div>

Hi, i have variable ADT (but no ADTM) in the ADAM TTE dataset but still get this error.

Thanks.
