on 07-08-2013 11:00 PM
Hi All,
I set up the MII connection with PCo to OSISoft PI and tested the notification process, and it works perfectly. But when I am trying to execute the SQL query in SAP MII Workbench, error message is thrown, like "OLEDB Query error [com.sap.xmii.Illuminator.logging.LHException: Exception [QueryTypeNotSupportedException] - Exception of type 'SAP.Manufacturing.Connectivity.Query.QueryTypeNotSupportedException' ]. BTW, the tag query is working perfectly.
Would you please advice? Thanks a lot.
Regards,
Natallia
Hi
The OSI-Pi queries to historian via ODBC are written in a different way than the regular T-SQL queries to a regular database.
SELECT pointsource, COUNT(*)
FROM pipoint..classic GROUP BY pointsource
SELECT COUNT(*) FROM piarchive..picomp2
WHERE tag = 'sinusoid' AND time >= BOM('*')
SELECT time, value, annotations
FROM piarchive..picomp2
WHERE tag = 'mytag' AND time >= 't' AND annotated = TRUE
More example queries can be found in the PI OLEDB manual, Compendium of SQL Statements.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Natallia,
You could create PCo Query in MII when you have already connected the PI server to PCo.
Just create a PCo Connector pointing to the agent that is running on PI system in PCo.
Regards,
Rohit Negi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.