To be honest this behavior is very strange. The last thing, which can help is changing "DataChange" option from Value to Always. Maybe it can help in this case.
I have changed in Property of Thing the value of Data Change info to Always or On but the output of QueryPropertyHistory is the same. Empty.
Did you get the solution to this problem? I am facing the same issue and can see same Error in Application Log. I don't understand myself what is the problem with it?
We are experiencing something similar
- Subscribing to a JSON input from MQTT
- On data change, parsing the JSON and setting its content to corresponding properties
(so far this works)
after this, we want to store the data into either a stream or a value stream but we get a java exception when the MQTTSubscriber Thing is trying to write the properties. Could this be a bug in the MQTT extension? Sounds like this should be pretty basic functionality.
I think it can be related to the JSON as a data type. You can try to switch to STRING and then parse it in ThingWorx.
Make a try and let me know.
did you find solution? I do not want parsing data. I have values from device in property view, but they can not store in Value stream. If I try make subscription on anydatachange for move values to other properties then I get also error in application log. Can anyone help me please?
TWX 8.1, local installed MosquitoBroker on 1883 and MqTT extensions 2.1.0
Error Handling Publish Arrived for [DemoThing/DoorStatus] : [null]
Please, can you send me the code of subscription to take json packet from Thing MQTT Subscribe Thing and store that into properties of Target Thing.
I'm using a Thing to manage the MQTT Subscribe service and more Thing Target that contains a properties and value stream.
Thingworx has some new MQTT functionality in the 8.2 release. I think that it would be worth upgrading and testing with that version before putting too much energy into work-arounds.
but release 8.2 is still not able to download. Or do you know where is it possible? Thx Karel
I found solution on thic community. So we can close this topic.
You have to go to your ValueStream and click on ThingworxPersistenceProvider and click on View. Than you must start the AddVisibilityPermission-Service of the PersistenceProvider:
After that the ValueStream will work