XOG error CMN-0013: Value for attribute 'odf_obs_fin_dept' is out of range when Department OBS attribute for the Project Object has a default value

Document ID : KB000047609
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:
XOG error encountered
CMN-0013: Value for attribute 'odf_obs_fin_dept' is out of range
when Department OBS attribute for the Project Object has a default value

Steps-To-Reproduce:

1. Go to Administration > Objects > Project > Attributes > Department OBS
2. Set a default value (e.g.: /Corporate/IT for the demo content)
3. Create a new project from PPM. It will have the default value for the Department OBS
4. Xog-read the project
5. Xog-write the project, unmodified 

Expected: XOG code returns "SUCCESS"

Actual: XOG code returns "FAILURE", also <ErrorInformation><Severity>FATAL</Severity><Description>Project Object insert failed</Description><Exception><![CDATA[CMN-0013: Value for attribute 'odf_obs_fin_dept' is out of range.]]></Excep

Cause:

If the "Department OBS" Project object attribute has a default attribute, xog will fail when using code containing a reference to the OBS Department. 

A simple use case is just trying to read and then write (update, unmodified) a project, but it also applies to a new project creation, or modified XOG code.

The reported defect is CLRT-80586
and is resolved in PPM 15.1

Workaround:
Remove default value in Department OBS attribute