Transaction Group writing -1 instead of Latched Value

i have a transaction group returning data from a view in database writing to PLC tags. i'm using one tag to line up the correct row to return from the view in the update/select area The TG writes the columns into four different tags. all the data in the Latched Value column of the TG are returned correctly, but i have one tag that writes to a -1 value instead of the returned string value, that is displayed in the Latched Value. running the data from a query always returns the correct string. I have tried using the TRACE and DEBUG in the loggers and there is no warnings or errors in anything i can see. Any ideas?

Make sure all of your values to record are placed into their respective tags BEFORE the trigger bit is set, not at the same time.

If its not already, put your transaction group into 'Read' mode instead of 'Subscribe'. That will make it force a new read request for all the values when the trigger fires.

Otherwise its using the values currently in the OPC tags when the trigger fires.

my trigger for the TG is on a tag change. "only evaluate when values have changed". this is the same tag i'm using to line up my returned row

no change to behavior when changing from SUBSCRIBE to READ

Ah I read fast, you are doing db -> PLC, the above change is more for PLC -> DB.

Have you confirmed the tag in the PLC is of string type, and has enough length to hold the string you are sending it? Is the Ignition tag set to be a string as well? Is the tag in the transaction group pointed at the correct field/column?

db view data type: varchar(150)
Ignition tag data type: String
PLC data type: String (82 Characters)
TG DataType column is set to String

max string length coming from the view is 50 chars

Are you sure that nothing on the PLC is writing into that string? The fact that the latched value has the correct value makes me think the value is getting overwritten very quickly on the PLC side.

nothing writes to this tag from the PLC.
this tags' only function is to get the data in the plc from sql. then it is copied to a separate tag before we can do any manipulation to the data. only reference to this tag is within the AOI. This has been working flawlessly for several months, and just recently started doing this.

for reference i'm running v8.1.43

Transaction Group Trace is showing the write is not the same as the source data (latched value).
image

That's strange. My only other though is its using the default value, but for a string that should an empty string, not -1.

At this point its beyond anything I've run into. If its a time critical thing I would consider submitting a ticket to support. This forum is not an official support venue.

If not, then hopefully someone has seen this behavior before.

it's gotta be a bug in this version. i might try upgrading. if that doesn't fix it i'll put in a ticket. thanks for the replys

i saw this in the 8.1.47 release notes. my tags aren't configured for alarms, but worth a shot, sounds similar.