Clarity: Creating a project ‘from template’ via XOG fails due to missing attribute (manager_id) if template and project in the same XOG write file

Posted @ 02/09/2013  09:11 AM By Federico Pena

Description:
Creating a project “from template” via XOG fails due to missing attribute (manager_id) even though it is not a required field and only if the template and project is contained within the same XOG write file

Steps to Reproduce:

1. Create a XOG write file consisting of the template and the project from template
2. Ensure that the “managerResourceID” is not defined
3. Execute XOG to import the file
Expected Result: Template and Project should be created successfully.
Actual Result: The XOG import fails with an error indicating that the Manager ID is the source of the problem.

<EXCEPTION message=”Error parsing number template ProjectRec.MANAGER_ID”
type=”java.lang.NumberFormatException”>
java.lang.NumberFormatException: Error parsing number template ProjectRec.MANAGER_ID

Solution:

WORKAROUND:
Either add the ‘managerResourceID’ attribute to the XOG write file for the Project
OR
Create separate XOG write files for the Template project and the Project based on the template

STATUS/RESOLUTION:
Resolved in Clarity 12.1.0 – The XOG Sample file includes the ‘managerResourceID’ attribute.
“Solutions provided by CA Technologies”