We're updating the issue view to help you get more done. 

Import "Element 'description': This element is not expected."

Description

When exporting the current profile in providence, it cannot be imported back again.

The XSD validation throws the following error (for every list item entry):

```Schemas validity error : Element 'description': This element is not expected.```

The exported profile XML contains an empty node: "<description/>", but the current "/install/profiles/xml/profile.xsd" has no rule for this field in "listItemLabels > label".

Maybe something like this missing?
<xs:element name="description" type="xs:string" minOccurs="1" maxOccurs="1"/>

Environment

None

Activity

Show:
Christian Widerström
July 31, 2018, 1:44 PM
Edited

We have added the validating line for "description" and can thus pass the XML check via xmllinit. However, the CA installer does not accept the corresponding XSD and continues to raise validation errors. However, xmllinit can not find any more.

We have exported from a CA 1.7.6 to a CA 1.7.6, both with up-to-date git level.

Christian Widerström
August 1, 2018, 3:15 AM

minOccurs="0" does the trick (not minOccurs="1"). The correct codeline has to be:

<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>

CA is now installing the profile. Hope for the best.

Peter Bubestinger
August 1, 2018, 3:45 AM
Edited

Now it works
The problem was that I didn't add the "minOccurs" attribute.

Now I've copied the following line from another position in the XSD (elementLabels, line #168):

<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>

Fixed

Assignee

Seth Kaufman

Reporter

Peter Bubestinger

Labels

None

Components

Affects versions

Priority

Blocker
Configure