Looking for suggestions and code examples of how to trap and handle when there is no data for points ACE is referencing. Be it, point still in "Pt Created" or point that has not updated in months.
What I'm doing is pulling past months data, run calc and output result. What I've come across:
- Is that equip can be out-of-service for months at a time and does not update to PI. Point CurVal could be from June and I'm trying to pull Octobers data (does not exist).
- This is actually for new equipment, not yet placed into service, but the points exist. Being new, all points still reporting "Pt Created". I'd like to get this calc created and scheduled and not have to worry about gonig back later to add it once it comes on line.
I don't want to report "Calc Failed" in these cases, but rather write "no data available for calc", "No Data" or some equivelant System State (even I have to create/add it).
Appreciate your thoughts and ideas.