# ERROR: DD0023

**URL:** <https://forum.certara.com/t/error-dd0023/283>\
**Category:** Define.xml\
**Created:** [April 16, 2012, 6:15pm UTC](https://forum.certara.com/t/error-dd0023/283 "2012-04-16T18:15:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [April 16, 2012, 7:12pm UTC](https://forum.certara.com/t/error-dd0023/283/1 "2012-04-16T19:12:00Z")

</div>

Hi!

1. Refer to the CRT\_DD Specs 1.0.0 (define.xml standard) Section 2.1.3.1 (p.18) table.

2. See an example from Section 2.1.2.5 (p.15):

\<CodeList OID=“CodeList.AESER”

Name=“AESER”

DataType=“text”

SASFormatName=“$AESER”\>

No

Yes

Regards,

Sergiy

---

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [April 16, 2012, 7:16pm UTC](https://forum.certara.com/t/error-dd0023/283/2 "2012-04-16T19:16:00Z")

</div>

1. OID 2. Name 3. DataType 4. SASFormatName 5. CodeListItem 6. ExternalCodeList 7. CodedValue 8. def:Rank 9. Decode 10. TranslatedText 11. xml:lang 12. Dictionary 13. Version (Taking into account a Child Elements hierarchy)

---

<div class="post-metadata">

**Author:** ![ntikoo](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@ntikoo](https://forum.certara.com/u/ntikoo)\
**Post date:** [April 16, 2012, 9:10pm UTC](https://forum.certara.com/t/error-dd0023/283/3 "2012-04-16T21:10:55Z")

</div>

Hello Sergiy.

Thanks for your response.

I have the codelist element and its attributes in the same order as in the CRT\_DDS V1.0. Same applies to the itemgropdef and itemdef elements which are the other 2 areas where i am getting an ERROR.

Please see the layout of my define.xml file.

def:AnnotatedCRF

ItemGroupDef for all the datasets.

\<ItemGroupDef…\>\<ItemRef…\>

ItemDef for all the variables.

\<ItemDef…\>

All Complutational Algorithms are listed here.

def:ComputationMethod\</def:ComputationalMethod\>

All Codelists are listed here.

\<CodeList…\>

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* →

\<def:ValueListDef OID=“ValueList.VS.VSTESTCD”\>

\</def:ValueListDef\>

Thanks,

Nalin

---

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [April 16, 2012, 9:30pm UTC](https://forum.certara.com/t/error-dd0023/283/4 "2012-04-16T21:30:37Z")

</div>

It’s difficult to find what is wrong without seen the entire document content. You can email your define.xml to me (sergiy () [opencdisc.org](http://opencdisc.org))

5.2.1. Global Element Order

1. ODM

a. Study

i. GlobalVariables

1. StudyName

2. StudyDescription

3. ProtocolName

ii. MetaDataVersion

1. def:AnnotatedCRF

a. def:DocumentRef

1. def:SupplementalDoc

a. def:DocumentRef

1. def:leaf

a. def:title

1. def:ComputationMethod

2. def:ValueListDef

a. ItemRef

1. Include

2. ItemGroupDef

a. ItemRef

b. def:leaf

i. def:title

c. def:ValueListRef

1. ItemDef

a. CodeListRef

1. CodeList

a. CodeListItem

i. Decode

1. TranslatedText

b. ExternalCodeList

---

<div class="post-metadata">

**Author:** ![ntikoo](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@ntikoo](https://forum.certara.com/u/ntikoo)\
**Post date:** [April 16, 2012, 9:47pm UTC](https://forum.certara.com/t/error-dd0023/283/5 "2012-04-16T21:47:59Z")

</div>

Thanks, Sergiy. This table helped resolve the issue. I had the wrong order for def:ComputationalMethod & def:ValueListDef

Nalin

---

<div class="post-metadata">

**Author:** ![ntikoo](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@ntikoo](https://forum.certara.com/u/ntikoo)\
**Post date:** [April 16, 2012, 6:15pm UTC](https://forum.certara.com/t/error-dd0023/283/6 "2012-04-16T18:15:23Z")

</div>

Hello.

I am new to the define.xml and xml in general and not sure what this error means. i have included 3 datasets with a total of 67 variables and 25 codelists into my define.xml which i am validating using OpenCDISC.

Please see the “Issue Summary” tab below:

| 

Source

 | 

Rule ID

 | 

Message

 | 

Severity

 | 

Found

 |
| 

DEFINE

 |
| | 

[DD0023](http://www.opencdisc.org/#'Rules'!A23)

 | 

Element ‘CodeList’ in wrong order within Define.xml

 | 

Error

 | 

25

 |
| | 

[DD0023](http://www.opencdisc.org/#'Rules'!A23)

 | 

Element ‘ItemDef’ in wrong order within Define.xml

 | 

Error

 | 

67

 |
| | 

[DD0023](http://www.opencdisc.org/#'Rules'!A23)

 | 

Element ‘ItemGroupDef’ in wrong order within Define.xml

 | 

Error

 | 

3

 |

Thanks,

Nalin
