Modern Time-Varying Attributes Are Not Editable/Error
search cancel

Modern Time-Varying Attributes Are Not Editable/Error

book

Article ID: 382022

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

After the TVA data is entered via XOG, users are unable to update a time-varing attribute for a custom object.

The APP logs show:

Caused by: java.lang.ClassCastException: class com.niku.xmlserver.blob.NkCurve cannot be cast to class com.niku.xmlserver.blob.FiscalCurve (com.niku.xmlserver.blob.NkCurve and com.niku.xmlserver.blob.FiscalCurve are in unnamed module of loader java.net.URLClassLoader

Resolution

There is an issue with the current XOG where elements are missing.

Here is an example XOG that has all the needed elements in order to have the TSV field editable after it is XOGed in.
The TSV can then be edited in the Modern afterwards.

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">
    <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="16.2.3.1153"/>
    <customObjectInstances objectCode="cust_sub">
        <instance instanceCode="bbb4" objectCode="cust_sub" parentInstanceCode="PRXXXX" parentObjectCode="project">
            <CustomInformation>
                <ColumnValue name="partition_code">partition10</ColumnValue>
                <ColumnValue name="odf_cncrt_parent_id">5XXXXXX</ColumnValue>
                <ColumnValue name="code">bbb4</ColumnValue>
                <ColumnValue name="odf_parent_id">5XXXXXX</ColumnValue>
                <ColumnValue name="c_demand">
                    <tsvData default="0.0" entityCode="Corporate" finish="2024-05-31T00:00:00" isFiscal="true" start="2024-01-01T00:00:00" type="value">
                        <segment finish="2024-11-02T00:00:00" start="2024-09-29T00:00:00" value="40"/>
                        <segment finish="2024-11-30T00:00:00" start="2024-11-03T00:00:00" value="32"/>
                        <segment finish="2024-12-28T00:00:00" start="2024-12-01T00:00:00" value="32"/>
                        <segment finish="2025-02-01T00:00:00" start="2024-12-29T00:00:00" value="40"/>
                        <segment finish="2025-03-01T00:00:00" start="2025-02-02T00:00:00" value="32"/>
                        <segment finish="2025-03-29T00:00:00" start="2025-03-02T00:00:00" value="32"/>
                        <segment finish="2025-05-03T00:00:00" start="2025-03-30T00:00:00" value="0"/>
                        <segment finish="2025-05-31T00:00:00" start="2025-05-04T00:00:00" value="0"/>
                        <segment finish="2025-06-28T00:00:00" start="2025-06-01T00:00:00" value="0"/>
                        <segment finish="2025-08-02T00:00:00" start="2025-06-29T00:00:00" value="0"/>
                        <segment finish="2025-08-30T00:00:00" start="2025-08-03T00:00:00" value="0"/>
                        <segment finish="2025-09-27T00:00:00" start="2025-08-31T00:00:00" value="0"/>
                    </tsvData>
                </ColumnValue>
                <ColumnValue name="c_demand_currency">USD</ColumnValue>
                <ColumnValue name="name">bbb4</ColumnValue>
            </CustomInformation>
            <OBSAssocs complete="false"/>
            <Security>
                <UserSecurity rightCode="odf_cst_cust_sub_edit" userName="example@example"/>
            </Security>
        </instance>
    </customObjectInstances>
</NikuDataBus>