Skip to main content
Support

KB Article #178471

What is the best way to update uniqueID files?

Problem

We have a requirement to update the unique ID files (x12id.unq, b2bi_uniqueid, edifactid.unq)

When we are updating from command line or editor these files are getting corrupted and throw below error in Integrator traces.

"UNIQUE.GETCURRENTID: read error on file "/opt/app/axway/share/data/unique/x12id.unq": Stale file handle"

Resolution

Enveloping HME keeps the unique id files opened at runtime (for performance purpose). Making any change directly in the file could cause corruption or duplicate control numbers.

You can change the control number sequence from UI in the outbound agreement on run time. There is change button available in UI against the control number generator parameter for both Interchange and group.

Its recommended to avoid changing manually the unique id files directly on the filesystem. In case there is specific requirement to change it directly in the file, you can do it when the TE is stopped (in this way all the HME's are stopped).