Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I have a value stream and I would like to clear out the entries from the value stream.
I have tried using the purge option, but it simply does nothing as far as I can tell, even with the immediate option enabled.
Can someone please shed some light on the matter?
Solved! Go to Solution.
Hi Gauche,
When you call service PurgeAllPropertyHistory to remove all the data entried from a Thing using the Value Stream, make sure you also select the startDate and endDate, and also make sure the startDate is on the bottom and endDate is on the top, please not choose it wrongly and then execute it to see if data entries could be removed.
Could you please clarify what you mean by "does nothing"? If you have a value stream assigned to a thing, then you may run the PurgeAllPropertyHistory service from that thing, and your value stream will clear out.
Duan Gauche, Value Stream is also a Thing with Parent as Value Stream Thing Template but we do not have access to the Value Stream entries from the Value Stream Thing. The Services for Value Stream are accessible only via Things using that Value Stream Thing.
So, as Polina mentioned; we need to run the service PurgeAllPropertyHistory, PurgePropertyHistory, PurgeSelectedPropertyHistory from the Thing using the ValueStream Thing i.e. The Things where the Value Stream Property is set as our Value Stream Thing.
If you are running the Service from the Thing using the ValueStream and it still does not work; I would suggest you to check Script/Application logs if it shows any error.
Hi Gauche,
When you call service PurgeAllPropertyHistory to remove all the data entried from a Thing using the Value Stream, make sure you also select the startDate and endDate, and also make sure the startDate is on the bottom and endDate is on the top, please not choose it wrongly and then execute it to see if data entries could be removed.
Hi Anna,
Well this was embarrassing...
Thanks for the hint. I was doing it the wrong way around.