cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Highlighted
Newbie

I login Thingworx7.21, but can't see data result from QueryPropertyHistory

mashup is like this pic:

无法访问QueryPropertyHistory.jpg

it is like the user with no access permission. how i can see the issue log, what is the problem? please help!

Tags (1)
8 REPLIES 8
Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Of course, I login as Administrator.

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Dongfang, is that ValueStream? There are following ways you can check if there are any errors while pulling the data

1. Check for the ThingWorx logs from the Monitoring section

2. Test that service directly to see if it does return the data as expected in the Mashup

3. While viewing the mashup you can enable the trace and see if it shows and information there, (if trace was not enabled when the page loaded, make sure to start the trace and refresh the page)

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Do you have a valuestream assigned to the KepDemo thing? Are the property(ies) set to "logged"? If you go to the KepDemo thing -> Services and click "test" button next to the QueryPropertyHistory  - what is the returned result?

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Thank you Polina! I have no a valuestream assigned.

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

The GetPropertyValues service returns the current value of your Thing properties, while the QueryPropertyHistory service returns a list of historic value of your properties, show you how they are changed over time, and these value change history is recorded in a independent entity, a ValueStream as mentioned in Polina's reply.

If you haven't bonded your KepDemo Thing to a ValueStream yet, surely the service will return empty result,

If you have bonded them, then please go to the KepDemo Thing, find out the QueryPropertyHistory service in the service list, execute it with the Test button, make sure it does have meaningful results and then test in the mashup again and update us with the result.

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Dear Ryan, Thank you for your patient explanation ! It's very useful.

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Hi dongfang dingchen​,

As the Red mark is shown in the grid; it indicates that Data is not being retured by QueryProperty history. Normally this happens when Value Stream is not assigned to the Thing.

Next Steps:

Please use following link to create a Value Stream to your Thing: PTC

Add this Value Strem in your Thing.

Then mark some Thing properties as logged as Polina mentioned.

Now make changes to the property to create history.

Now reload the Mashup to see if it works fine.

Highlighted

Re: I login Thingworx7.21, but can't see data result from QueryPropertyHistory

Dear Ankit, Thank you very much!

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!