Handling "No Data" Entries in PI System with RDBMS Interface
Learn how to manage "No Data" entries in PI System when interfacing with an RDBMS, ensuring accurate data reflection and handling NULL database values effectively.
Roshan Soni
Handling "No Data" Entries in PI System with RDBMS Interface
When interfacing with an RDBMS to pull data into your PI System, encountering "No Data" entries can be a puzzling yet crucial part of data management. Understanding why this happens and how to manage it can significantly enhance the integrity and clarity of your data analysis.
Why "No Data" Appears
When using an RDBMS interface, the presence of "No Data" in PI System typically traces back to NULL values in your source SQL database—in this case, a WinCC database. Before actual values are finalized, the table might contain placeholder NULL values. This can lead to temporary "No Data" entries in PI as the interface correctly reflects the current state of database records.
In practice, this behavior prevents outdated or unfinalized test results from being mistakenly interpreted as current data. Particularly in environments where timely data updates are critical (like industrial or operational settings), showing "No Data" until full results are available ensures a clear, accurate representation of what is known at each data point in time.
Managing the "No Data" Entries
Instead of disabling "No Input Errors," which would suppress this informative state, consider configuring the interface to replace "No Data" with actual values once they become available. This is largely managed through the Location5 parameter in your interface configuration:
-
Without /rbo or /lb flags: Set Location5 to
-1to enable the replacement of "No Data" entries with actual values when they share the same timestamp. This setting instructs the PI System to overwrite the "No Data" state with concrete data as soon as it appears in the database. -
With /rbo flag: Current configurations do not support replacement, maintaining "No Data" for strictly bound-order reads.
-
With /lb flag: This configuration allows for replacement regardless of Location5 value, facilitating flexible data overwrite capabilities at matching timestamps.
Configuring for Better Outcomes
To implement these changes effectively:
-
Understand Your Data Needs: Before setting any configurations, be clear whether your data workflows need to display interim "No Data" states or if they should always replace old data with new as soon as possible.
-
Set the Correct Location5 Parameter: Review the RDBMS interface configuration manual and adjust the Location5 parameter based on your use of
/rboor/lb. -
Monitor and Verify: After configuration, monitor your PI trends to ensure data behaves as expected. Spot-check timestamps to verify that "No Data" states are correctly replaced.
By understanding and manipulating how your RDBMS interface handles NULL values and timestamps, you can greatly enhance the accuracy and utility of your PI System data.
Conclusion
Handling "No Data" scenarios in the PI System should be seen as an opportunity to fine-tune data flows and ensure system accuracy. By adjusting the Location5 settings thoughtfully, users can better align their data presentation with practical operational needs.
Tags
About Roshan Soni
Expert in PI System implementation, industrial automation, and data management. Passionate about helping organizations maximize the value of their process data through innovative solutions and best practices.
No comments yet
Be the first to share your thoughts on this article.
Related Articles
Enhancing PI ProcessBook Trends with Banding and Zones: User Needs, Workarounds, and the Road Ahead
A look at the user demand for trend banding/zoning in OSIsoft PI ProcessBook, current VBA workarounds, UI challenges, and how future PI Vision releases aim to address these visualization needs.
Roshan Soni
Migrating PIAdvCalcFilVal Uptime Calculations from PI DataLink to PI OLEDB
Learn how to translate PI DataLink's PIAdvCalcFilVal advanced calculations—like counting uptime based on conditions—into efficient PI OLEDB SQL queries. Explore three practical approaches using PIAVG, PIINTERP, and PICOunt tables, and get tips for validation and accuracy.
Roshan Soni
Understanding PI Web API WebID Encoding: Can You Generate WebIDs Client-Side?
Curious about how PI Web API generates WebIDs and whether you can encode them client-side using GUIDs or paths? This article explores the encoding mechanisms, current documentation, and best practices for handling WebIDs in your applications.
Roshan Soni