Skip to main content
May 13, 2020 2:41 PM UTC
Solved

QueryPropertyHistory Service does not show values

Hi,

 

Via MQTT the property "Speedometer" gets every 10 seconds a new value which is in json format. All the other properties have a subsciption to the "Speedometer" property and so they change their values every 10 seconds too.

 

When I run the Service QueryPropertyHistory no values are displayed. The Thing and its template have a Value Stream and all the properties are persistent and logged. 

May 14, 2020 10:16 AM UTC

Then try to add your MQTT user to Administrators group temporarily -- if that works, then you just need to find where you missed some access rights. Adding debug statements to your subscriptions and monitoring Application and Script logs for errors should help you with identifying the culprit.

 

If nothing seems to help -- try to grant your MQTT user as much permissions as possible (for example, full access on collections level) until it works, and then start to take them away until it breaks -- this approach works well for me when I'm stuck with permissions.

 

/ Constantine

17 replies

May 14, 2020 7:32 AM UTC

Hello @Lenn,

 

I'm sorry for a stupid question, but I have to ask it -- you run this service on the thing with those properties, don't you? Not on the value stream itself.

 

Regards,
Constantine

LennAuthor
May 14, 2020 7:38 AM UTC

Hi Constantine,

 

yes I run it on the thing

May 14, 2020 7:56 AM UTC

And do you specify any parameters?

Jun 24, 2020 6:44 PM UTC

Hi @Lenn.

 

If one of the previous responses allowed you to resolve your issue, please mark the appropriate one as the Accepted Solution for the benefit of others with the same issue.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon