Changing digital state set and archive data

Discussion created by rmarcell on Jan 2, 2010
Latest reply on Jan 4, 2010 by spilon

I'm programmatically changing the digital state set for a tag that already has archive data and then trying to change the archive data to states in the new state set. What I'm finding is that the code of the new state value appears to be used to update the archived value but it's "looked up" in the old state set giving an erroneous (or certainly unexpected) name value. Presumably the StateSet ID is stored with the archived code value (when the digital state set is deleted I see this id displayed in PI SMT so I'm fairly certain that's what's happening under the covers). Is there any way to change the value of the StateSet ID in the archive?