# Errors running OpenCDISC to Validate Data for ADaM define.xml

**URL:** <https://forum.certara.com/t/errors-running-opencdisc-to-validate-data-for-adam-define-xml/402>\
**Category:** ADaM\
**Created:** [March 7, 2013, 3:08pm UTC](https://forum.certara.com/t/errors-running-opencdisc-to-validate-data-for-adam-define-xml/402 "2013-03-07T15:08:36Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [March 7, 2013, 4:23pm UTC](https://forum.certara.com/t/errors-running-opencdisc-to-validate-data-for-adam-define-xml/402/1 "2013-03-07T16:23:57Z")

</div>

This is a well-known issue. Download and use the latest ADaM confiig found here: [http://svn.opencdisc.org/validator/trunk/config/config-adam-1.0.xml](http://svn.opencdisc.org/validator/trunk/config/config-adam-1.0.xml)

Or you can resolve it by changing the **_Category_** attribute for AD1003 and AD1004 from Terminology to Presence. This is the root cause of the problem. For the excel reports, terminology rules carry a special meaning.

\<val:Required ID=“AD1003” **_Category_** =“Presence” … /\>

\<val:Required ID=“AD1004” **_Category_** ="Presence " … /\>

---

<div class="post-metadata">

**Author:** ![mcgranm2](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mcgranm2](https://forum.certara.com/u/mcgranm2)\
**Post date:** [March 7, 2013, 3:08pm UTC](https://forum.certara.com/t/errors-running-opencdisc-to-validate-data-for-adam-define-xml/402/2 "2013-03-07T15:08:36Z")

</div>

Hi,

I’m able to run OpenCDISC on SDTM datasets, without any problems. However, I’m experiencing difficulties running OpenCDISC to validate ADaM transport files for define.xml. I’ve tried a couple different runs: (1) running all ADaM datasets + SDTM DM + SDTM EX. (2) running just ADSL + SDTM DM + SDTM EX.

Below are the errors encountered for test (2). Are other SDTM datasets needed besides DM and EX for ADaM OpenCDISC runs? Any help you can give would be appreciated. Thanks.

Mike

java.lang.NullPointerException  
at java.util.TreeMap.getEntry(Unknown Source)  
at java.util.TreeMap.containsKey(Unknown Source)  
at org.opencdisc.validator.report.ExcelReporter.write(ExcelReporter.java:243)  
at org.opencdisc.validator.report.AbstractReporter.write(AbstractReporter.java:112)  
at org.opencdisc.validator.engine.BlockValidator$BlockTask.call(BlockValidator.java:443)  
at org.opencdisc.validator.engine.BlockValidator$BlockTask.call(BlockValidator.java:225)  
at org.opencdisc.validator.engine.BlockValidator.validate(BlockValidator.java:209)  
at org.opencdisc.validator.DefaultValidator.validate(DefaultValidator.java:419)  
at org.opencdisc.validator.gui.ValidatorClient$ProcessMonitor.run(ValidatorClient.java:1728)
