Unable to update Max % Load in Assignments using XOG
search cancel

Unable to update Max % Load in Assignments using XOG

book

Article ID: 240557

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

Trying to update Max % Load attribute data from Assignments using XOG client using the below XML but getting an error msg.

[Error] :1:1: unexpected attribute "PRESTMAX"
 Invalid attribute in input document. Please remove all instances of attribute from document elements and try again.
 [Element : Task, Attribute : PRESTMAX ].

Xog write file:

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">
<Header action="write" externalSource="NIKU" objectType="project" version="15.4.1.115"/>
<Projects>
<Project name="AAC Nomenclature Search" projectID="PJ096075">
<Tasks>
<Task name="Test Task AP" outlineLevel="1" PRESTMAX="100" taskID="00453962">
<Assignments>
<TaskLabor resourceID="GN071437" prestmax="50">
<CustomInformation>
       <ColumnValue name="c_expected">4</ColumnValue>
</CustomInformation>
</TaskLabor>
</Assignments>
</Task>
</Tasks>
</Project>
</Projects>
</NikuDataBus>

Environment

Release : 15.9.3

Component : Xog

Resolution

The Max % Load attribute is found in the Project > Tasks > Tasks - Assignments page
- The application displays Max % Load as a percent value (%).
- When importing/exporting via XOG in the XML need to define an integer for Max % Load attribute.
- The XML Tag name = "estMax". In the Clarity database the column name = "prestmax".
- Per the nikuxog_project.xsd file, the attribute name is not = to the Xog attribute or db column.
<!-- prEstMax -->
      <!-- xs:attribute name="estMax" type="xs:float" -->