Hi All,
I’m using the new system.historian.queryRawPoints function introduced in 8.3, worked fine in 8.3.1 and 8.3.2, but in 8.3.3 it seems not to function with historical tag paths anymore?
I keep getting no data:
Power charts and historical binding does work.
Thanks,
Leonard
1 Like
Are you in trial mode? If the license expires, the historian will not return any data points.
No, defiantly not in trial mode, still had like an hour left.
You might upgrade to v8.3.4 as I believe there's a fix in there for a problem similar to what you're mentioning.
I think @michael.flagler is referring to this release note within 8.3.4. The fix in question dealt with historical paths which included a drv reference, and so I’m not confident taking that version will resolve your issue. I’m directing someone with more experience in this space toward this thread.
Hello Leonard, I would expect system.historian.queryRawPoints to still work with your example script on 8.3.3. The fact you’re getting an empty set returned indicates that the tag path can’t be found. Can you confirm that the tag still exists and is storing specifically to the ‘Core’ historian?
Another thing to try is to edit the pen in the Power Chart and compare the historical path listed there to what you’re trying in the script. I would expect the version listed in the Power Chart to work.
Thanks for this Apadilla,
So it seems that it does not work with the old drv syntax:
This does not work,
histprov:Core:/drv:default:default:/tag:default/Sine/Sine0
but the following as referenced by the Power Chart does:
histprov:Core:/sys:ignition-acf47f0e7b73:/prov:default:/tag:sine/sine0
Should the old syntax still be supported?
Support for the drv syntax was broken in 8.3.3 but has been restored in 8.3.4.
I upgraded to 8.3.4, but still seem to have the same issue?
The tag path listed has duplicate “default” tag providers
histprov:Core:/drv:default:default:/tag:default/Sine/Sine0
Could you try something like this?
histprov:Core:/drv:gatewayName:default:/tag:Sine/Sine0
So
['histprov:Core:/drv:default:default:/tag:Sine/Sine0']
Does not work, but replacing default with the gateway name for the drv works:
['histprov:Core:/drv:Ignition-acf47f0e7b73:default:/tag:Sine/Sine0']
Im sure in the past you could pass default for the drv name?
The expected format is histprov:HistorianName:/drv:GatewayName:TagProvider:/tag:TagPath. This is how 8.1 paths work too.
The problem was an earlier version of 8.3 incorrectly assumed the local gateway name when using drv. So drv:default:default became drv:localGatewayName:default in the backend when the history lookup occurred.
This wasn’t an issue when returning local history but was when attempting to return history from remote gateways. For this reason we cleaned up the logic and again require the gateway name to be explicit after the drv. This is why the same path is failing for you now because with the new logic it’s looking for a gateway named ‘default’ with tag provider ‘default’ which doesn’t exist.