# AD1012 - Secondary variable is present but its primary variable is not present - doesn't work for PCHGCATy

**URL:** <https://forum.certara.com/t/ad1012-secondary-variable-is-present-but-its-primary-variable-is-not-present-doesnt-work-for-pchgcaty/1099>\
**Category:** Enhancements and Feature Requests\
**Created:** [March 17, 2017, 4:06am UTC](https://forum.certara.com/t/ad1012-secondary-variable-is-present-but-its-primary-variable-is-not-present-doesnt-work-for-pchgcaty/1099 "2017-03-17T04:06:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhang17](https://avatars.discourse-cdn.com/v4/letter/z/dc4da7/32.png) [@zhang17](https://forum.certara.com/u/zhang17)\
**Post date:** [May 2, 2018, 5:59am UTC](https://forum.certara.com/t/ad1012-secondary-variable-is-present-but-its-primary-variable-is-not-present-doesnt-work-for-pchgcaty/1099/1 "2018-05-02T05:59:05Z")

</div>

In the datasets, I have included AVALCATy/AVALCAyN and BASECATy/BASECAyN, but there is still the error message “Secondary variable is present but its primary variable is not present” and the variables were identified as BASECAy and AVALCAy. I’m very confused on this.

 ![P21 error message.png](https://us1.discourse-cdn.com/certara/original/1X/96631f9c68adda6f63157ab1d4f1e870d2d166dc.png)

---

<div class="post-metadata">

**Author:** ![Swetha\_Kalaiselvan](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Swetha\_Kalaiselvan](https://forum.certara.com/u/Swetha_Kalaiselvan)\
**Post date:** [March 17, 2017, 4:06am UTC](https://forum.certara.com/t/ad1012-secondary-variable-is-present-but-its-primary-variable-is-not-present-doesnt-work-for-pchgcaty/1099/2 "2017-03-17T04:06:25Z")

</div>

Hi,

The check AD1012 doesn’t behave as expected for the PCHGCATy. As the variable PCHGCATy is already of length 8 and the respective N variable provided would be PCHGCAyN, ADaM Validator shows PCHGCAyN does not have a primary variable, but this is not the case. Would it be possible to handle the PCHGCATy in the check AD1012?

Thanks,

Swetha
