Clarity: XOG in multiple instances with Override Auto-Numbering false create all instances with same information

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

Description:

XOG in multiple instances with Override Auto-Numbering false create all instances with same information. All instances are created with the information ofthe last instance in the input file.

Steps to Reproduce:

  1. In the UI create a custom object

  2. Add 2 custom attributes:

    my_string -> type string
    my_number -> type number

  3. Add those attribute in the Create and Edit views

    Set auto numbering for the ID attribute
    Attribute ID = code
    Auto-numbered checked
    add Scheme
    Set Runtime Next Number = 00000001

  4. Create 2 instances on the custom object

  5. Enter my_string and my_number. Save.

  6. Perform a XOG read of the 2 instances

  7. Modify the output xml file adding:

  8. Set 'overrideAutoNumbering' to false

    <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="13.2.0.472">
    <args name="overrideAutoNumbering" value="false"/>
    </Header>
    <!--For each instance Update instance code to null-->
    instanceCode=""
    <ColumnValue name="code">-1</ColumnValue>

  9. Modify instances information to effectively create new instance records.

  10. Specify name, my_string, my_number

  11. Use the modified xml file as input and XOG in those new instances.

Expected Result: Each instance should be created with it own data from the input file.

Actual Result: New records were inserted as expected, but the actual data is incorrect. Instances were created with data of last instance in the input file. Last instanceoverwrote data of previous instance.

Solution:

WORKAROUND:

Change the XOG write file to have unique value for "instanceCode" and "code" properties when performing a single XOG write action in multiple custom object attributes and instances.

STATUS/RESOLUTION:
Resolved in Clarity 13.3

Keywords: CLARITYKB, CLRT-72594, clarity13resolved, clarity133resolved.