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:
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
It looks like the syntax#1 example from the documentation is working but syntax#2 is still failing with the message Bad_Failure(“Failed to normalize all data points”)
Has anyone tested the syntax#2 and managed to get it working? It’d be good if i can use the function without having to import the modules.
to anyone who wants to use syntax#2, I changed the path format and it worked: paths = ["histprov:MSSQL:/drv:ignition-gateway:default:/tag:Tag2"] values = [10] timestamps = [system.date.now()]
Could you share exactly what the script looked like when you had issues? I tried the syntax as it was originally and it worked for me, see attached picture. Note my gateway name and historian names are used in the function
Thank you for answering the question @qpadgham , I think I might have misspelled something in the paths, following your instruction, i was able to make it work:
Quick question about retrieving the data, is it possible to view the data using Tag History binding? I am unable to retrieve any data that I inserted (tried both wide and tall):
Yes, it seems to work as I’d expect. I have the same script as before (names have slightly changed for the system and historian), and I have a Table component with the following binding on the data prop: