SAP Knowledge Base Article - Public

2916055 - Feature permission block will accept only one status

Symptom

Feature permission block multiple statuses cannot be added. It will throw the error which would be similar as follows : 

Errors Validating Recruiting Template:
org.xml.sax.SAXParseException; lineNumber: 4297; columnNumber: 26; The content of element type "feature-permission" must match "(description?,role-name+,status)".

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

When you have a Job Requisition XML template with a feature permission block with multiple statuses as follows :

<feature-permission type="offerApproval">
<description><![CDATA[Test the feature]]></description>
<role-name><![CDATA[R]]></role-name>
<role-name><![CDATA[T]]></role-name>
<role-name><![CDATA[G]]></role-name>
<status><![CDATA[Offer]]></status>
<status><![CDATA[Ready to Hire]]></status>
<status><![CDATA[Hired]]></status>
</feature-permission>

But when you upload the XML you will face a very similar error as mentioned below : 

Errors Validating Recruiting Template:
org.xml.sax.SAXParseException; lineNumber: 4297; columnNumber: 26; The content of element type "feature-permission" must match "(description?,role-name+,status)".

Cause

We have received confirmation form the Product Management team also on this, that in the feature permission block only one status is allowed and multiple statuses cannot be added.

Resolution

For the above example mentioned, if you would like to give the feature permission for three statuses like 'Offer, 'Ready to Hire' and 'Hired' you will have to create three different blocks. For example : 

<feature-permission type="offerApproval">
<description><![CDATA[Test the feature]]></description>
<role-name><![CDATA[R]]></role-name>
<role-name><![CDATA[T]]></role-name>
<role-name><![CDATA[G]]></role-name>
<status><![CDATA[Offer]]></status>
</feature-permission>

Similarly you will have to create another two permission blocks with status as Ready to Hire and Hired.

See Also

https://help.sap.com/viewer/8477193265ea4172a1dda118505ca631/1911/en-US/a559160f74c7499f9eeb206de4dbc115.html

Keywords

feature-permission, Job Requisition XML template, multiple status, org.xml.sax.SAXParseException , KBA , LOD-SF-RCM-JOB , Job Postings & Requisitions , Problem

Product

SAP SuccessFactors Recruiting 1911