UDT with tag value being paramater clears

In Ignition I have a UDT in it there is a tag that references a value in a parameter it works fine but after a couple of weeks it just goes blank and clears the value in the tag even though it is still present in the udt parameter any idea why?

Need more information. What type of tag is it? How does the tag use the parameter?

Its a string tag it is writing to and the its a straight read. The parameter is the name of a machine lets say Machine 1 and then a string tag within the UDT pulls that machine name and puts it in a string. Hopefully that makes more sense

Something must be writing to it. Make a tag change script and log the change.

The thing is the paramater doesnt change and neither does the tag value but historian shows that tag as blank. So nothing is actually changing on the tag itself but just wont record and then the only way I can fix it is by writing something else in there and then writing back the value it had originally

Confused…post 1 you said the tag value changed. Now you’re saying it doesn’t. If it’s changing in historian, how do you have the historical collection set on the tag? How are you determining the value isn’t there in historian?

Speculation - you might be querying for data that just doesn’t exist within the window of time that you’re querying against. If the tag hasn’t changed in value in the last month, and there is no periodic force-insert configured, there will be no results returned in a query for data over the last couple of weeks.

If this is the case, either change the query to always return the last known value in the historian -or- set your tag history settings to force an update periodically (weekly?).

This is what I thought but I am writing this to a csv file and i am pulling all data even if it doesnt change and it works fine for months and then randomly one day it stops. The machine name never changes by the way

My guess would be that the value has never changed so historian doesn’t log it, assuming that the historian is set up to log the tag on-change.

Why are you logging a static tag?