Object ID autonumbering after XOG
search cancel

Object ID autonumbering after XOG

book

Article ID: 203712

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

When we XOG an object to a new environment, auto-numbering is getting reset. Is this expected?

Can this be avoided?

 

Environment

Any Clarity release

Cause

If the XOG input file includes the reference to auto-numbering as below it will be reset but if it is not in the XOG input file it does not get reset.

Resolution

On the code below note ID and Name are auto-numbered.
The ID (code) field is unique and the Name field does not need to be unique. When you XOG the object in and your auto numbering gets reset, the ID will automatically increment appropriately (as it is unique) but the name field will not, because there is no requirement for it to be unique.

<autonumbering>
                        <attributeAutonumbering autonumbered="true" code="code">
                            <schemes>
                                <scheme isActive="1" maxLength="30" partitionCode="NIKU.ROOT">
                                    <segments>
                                        <segment autoExtended="0" length="2" position="3" textValue="SR" type="TEXT"/>
                                        <segment autoExtended="1" length="8" position="5" startValue="1" type="NUMERIC"/>
                                    </segments>
                                </scheme>
                            </schemes>
                        </attributeAutonumbering>
                        <attributeAutonumbering autonumbered="true" code="name">
                            <schemes>
                                <scheme isActive="1" maxLength="30" partitionCode="NIKU.ROOT">
                                    <segments>
                                        <segment autoExtended="0" length="2" position="3" textValue="SR" type="TEXT"/>
                                        <segment autoExtended="1" length="8" position="5" startValue="1" type="NUMERIC"/>
                                    </segments>
                                </scheme>
                            </schemes>
                        </attributeAutonumbering>
                    </autonumbering>

To avoid the auto-numbering to get reset, do not include the reference to auto-numbering on the XOG input file.