Issues with the system.tag.storeTagHistory() in 8.3

Hi everyone,

I’ve recently migrated projects running on 8.1 to 8.3 and noticed that there has been a few breaking changes and I’m stuck on this particular fault message. In essence, I’m running value changed script on a tag that uses system.tag.storeTagHistory() in the following manner:

def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents):

historyProvider = ‘name_of_the_historian’

tagProvider = ‘name_of_the_provider’

paths = [tagPath]

values = [currentValue.value]

system.tag.storeTagHistory(historyProvider, tagProvider, paths, values)

Whenever this script is triggered, I see a warning with the message: SF Engine 'name_of_the_historian' does not accept data 'DefaultPersistentFlavor{signature='history_set', systemType=Tag History}' and also no data is inserted into the database.

Does anyone know what causes this message to appear? Didn’t have this problem with 8.1 but it started happening when I migrated to 8.3

Many thanks in advance.

I just saw in the document that system.tag.storeTagHistory() has been removed and replaced with system.historian.storeDataPoints()

I tried using the new system.historian.storeDataPoints() but it keeps spitting out a message

Bad_Failure(“Failed to normalize all data points”)

has anyone one seen this fault before?

paths = [‘histprov:historyDB:/sys:sys_name:/prov:provider_name:/tag:test_a’]

values = [1]

timestamps = [system.date.now()]

system.historian.storeDataPoints(paths, values, timestamps)

I tried following the example syntax#2 in the documentation but it doesn’t seem to want to work :confused: