Hello Surajkumar,
In ESR, elements in data type definition can either have data type assigned to them, or sub-elements, but not both at the same time. In the given example, an element 'Comments' already has sub-element ('Attachment'), thus it cannot be assigned a data type and cannot be assigned a text value. In order to resolve this issue, you shall review data type definition and:
- Introduce additional element as a sub-element of 'Comments' - for example, 'Comment', that will not have any subsequent child elements and will be assigned the required text value, or
- Bring the element 'Attachment' one level up so that it becomes sibling element for 'Comments' - when done so, the element 'Comments' will not have any sub-elements and can be assigned data type and corresponding required value.
Regards,
Vadim