PCO 2.1 and PI Historiam

Dear all,
I have MII 12.2 recently installed and also PCO 2.1.
I want to display PI Historian data through an OLEDB connection as i was doing with the UDS before.
I have defined the connection in PCO successfully as Source System. Do i need to make any additional configuration in PCO? Create an agent?
Then when i go to the MII, in order to define the data server, which type i should use? OLED or PCO connector?
If i select PCO connector, the system is asking for a URL or select a registered PCO instance and i have no idead on what to define here.
I would thank any hint as I'm absolutely new with the PCO.
Thanks

Hi Jose,
Check these help topis:
PCO Query Process:
[http://help.sap.com/saphelp_pco21/helpdata/en/46/a00344d44852b7e10000000a155369/frameset.htm]
MII 12.2 PCO Connector:
[http://help.sap.com/saphelp_mii122/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm]
Kind Regards,
Diana Hoppe
Edited by: Diana Hoppe on Jun 16, 2011 2:38 PM

Similar Messages

  • Problem with PCo 2.1 and ODBC data provider

    I am trying to connect MII 12.0 to an Aspen IP.21 data historian using PCo as the universal data server. Configuration steps so far:
    1) On the machine where PCo is installed, I have created an ODBC data source using Aspen's ODBC driver for SQL+.
    2) In the PCo management console I have configured a source system using the Microsoft OLEDB Provider for ODBC Drivers, and selected the ODBC connection that I created. I click "Test Connection" and get a successful result.
    3) In the PCo management console I have configured a destination system that points to an MII server. I put in the appropriate server/port/version/credentials, and click "Test Connection", and get a successful result.
    4)  In the PCo management console I have configured an agent instance connecting the source from step 2 and the destination from step 3.
    When I start the agent instance, I get the red box with a white X in it indicating that the connection was not successful. When I go to the error logs I see:
    Error     .     6     6076     RS1630IP21T01     Host     failed to create ConnectivityAgentProxy     General PCo Fault: The .Net Framework Data Provider for OLEDB (System.Data.OleDb) does not support the Microsoft OLE DB Provider for ODBC Drivers (MSDASQL). Use the .Net Framework Data Provider for ODBC (System.Data.Odbc)
    So, I installed the .NET data provider for ODBC to try to use that instead of the OLEDB provider for ODBC. However, when I try to reconfigure the source system, I do not see the .NET provider as one of my options. This is after a reboot, and starting/stopping all of the different PCo services.
    Any thoughts experts??

    Install PCo 2.2 on a server that has network access to your IP.21 server, and that your destination server (and SAP MII server in my case) has access to.
    In the PCo2.2 Management Console:
    In the "Source Systems" section:
    Create a source system of type "IP21 Agent"
    On the Server Settings tab, provide the server name of your IP.21 server
    In the "Agent Instances" section
    Create an agent instance, picking the source system you just created
    In the Query Ports tab, under port type, select the type of system you will be communicating to. In my case, this is SAP MII, but you may be using something different.
    Also under the query ports tab, you can enter enter a port number if you like. I just accept the default, which is 9000.
    If you are going to "pull" data from the IP.21 server, this is all you need. If you want to "push" data to a destination system from your PCo server, you will need to set it up under the Destination Systems section. In my case, I am doing a data pull, so I haven't done much with destination systems.
    Not sure what your destination system is, but in my case it is MII. For MII here are the basic steps:
    Create a new UDC data server in the MII menu under Data Services -> Data Servers.
    Set the IP address of the data server to the IP address of your PCo server.
    Set the port number of the data server to the port number you set up in the agent instance.
    Make sure the agent instance is started on your PCo server.
    Create a new business logic transaction containing a Tag query, and configure the tag query to use the new MII data server you just created to query the tag(s) you are interested in.

  • MII 11.5 and PCo 2.1 and Tag Query Error

    Hi,
    I have KEPWare OPC server configured with a single tag, and with the OPC Client open.  I have PCo 2.1 configured with a single agent, and 'legacy' ticked with port 9001.  I have a UDS connector pointing to port 9001, and a tag query in 'currentwrite' mode, and can successfully write a value from the query editor (within MII 11.5) to KEPWare, when tested directly within the MII query editor.
    However, when I call the same tag query from within an MII transaction, and set 'TagName.1' and 'TagValue.1' to the values I want, I get the following error:
    "An item with the same key has already been added. at SAP.Manufacturing.Connectivity.Protocol.Custom.PCoQueryRequestHandler.ProcessRequest(Object handler)"
    I see this error in the PCo log.
    Interesting thing is, that within the transaction editor, when I select the underlying tag query, and the editor asks to generate the XML, and I say Yes, the underlying tag query runs fine (I can see the value getting updated within KEPWare).
    I've also tried with/without subscription items in PCo, plus different settings for 'Cache Mode' in PCo, plus using fully qualified tag name (ie: channel.device.tag as KEPWare sees it), etc, but in all cases I get the above error.
    Any ideas?

    Hi Diana,
    I upgraded to PCo V2.1.4.2, still same issue.  And yes, the data server (UDC) is checked as "Writable"!!
    As mentioned, the tag query runs fine in both "Current" mode and "CurrentWrite" mode.  Only when I call the same query from a transaction do I see this error.  Excerpt from Runner Log below;
    2011-02-23 15:20:32,390 [ServletExec: request: time=1298434832343, uri=/Lighthammer/Runner]
    ERROR  Runner - [9FA68944-67CE-824D-3FA6-D96023119ECE][ERROR]:
    IlluminatorQuery: An item with the same key has already been added. TMP0794C967-0F69-8F04-568C-CD037815D1D0
    2011-02-23 15:20:32,453 [ServletExec: request: time=1298434832343, uri=/Lighthammer/Runner]
    ERROR  Runner - [9FA68944-67CE-824D-3FA6-D96023119ECE][ERROR]:
    ACTION FAILED: End Action IllumTagQuery_0 : () TMP0794C967-0F69-8F04-568C-CD037815D1D0
    If I leave the transaction Tag Query action (that calls the underlying tag query) without any assignment to TagValue.1, then there is no error, and the error as set in the aunderlying tag query is used.  But as soon as I assign values to TagValue.1 inside the transaction, I get the error.  I've tried passing a value via a local paramater etc, same issue.
    Regards
    Kevin.

  • Pco connectivity ( MII and Wonderware system) Info required

    Hi Experts,
    We're connecting MII 15.0 box to Wonderware systems using Pco 15.0 SP03 what are the configuration details/credentials/parameters required for a successful connection to Wonderware system? What are the details that we need to emphasize on from the wonderware side to ensure a successful connection?
    Regards
    Rajeev

    Hi Steve,
    Thanks for all the advice. We need only OEE related data from wonderware historian systems and therefore we have two options:
    1)    SAP Pco.
    2)    JDBC connection to their historian sql database.
    We would like to know which the best option from these two is.  As we know SAP Pco requires additional installation and configuration. Pco is having the advantage of a notification feature as well. We can keep monitor the change of value in a tag.
    But at the same time Historian tag values are stored in a SQL database which can be connected from MII. I understand that SQL database doesn’t have notification feature but still we may pull the data through a query which runs on a scheduler.
    Also, since OEE dashboard refreshes every minute, then probably the real time data that we can fetch via PCo (for eg every sec,15secs etc).. might not be that productive since OEE dashboard might not display it.
    What's your suggestion?
    Regards,
    Rajeev

  • PCo 2.1 and Proficy iFix using OPC DA

    I'm finding some interesting behavior when trying to access Proficy iFIX  HMI / SCADA with PCo 2.1 using OPC DA.
    PCo Version 2.1.0.55
    iFIX version 5.1
    SCADA OS: Windows XP Pro, SP3
    MII Version 12.1.5 Build(99)
    What happens is that when I do a tag list in a tag query, instead of getting the tags, I get the propertes of the tags in the tag list, so what I think PCo's OPC client is doing is resolving to the lowest level of the tag list, which of course would be a tags individual properties.   iFIX UDS does not exhibit this behavior.
    I've tried a variey of settings in PCo, including "Force Flat Namespace"  to no avail.   Is there an option to set how far down the tag list drills?
    Here is my setup, I know most of these settings have nothing to do with my problem but here they are for completness:
    Source System Type:  OPC DA
    OPC Server Name:  OPC Data Access 2.0 for ifix
    Specification:  DA 2.05A
    Acquistion Mode:  Synchronous
    Read Source: PCoCache
    Force Flat Namespace: False
    Synchronous Read Source: Device
    Acceptable Data Quality: Good
    Activate Items: Both
    Agent:
    No Subcription Items
    Communication: MII
    Tag Query Cache Mode:  Cache:

    What happens if you try to add some Tags using the Subscription tab on the Agent Instance? Do you get the same behavior in the OPC Browser in PCo?
    - Steve

  • Transporting PCo Setting Through Landscape

    Hello,
    We are using PCo 2.1 and MII 12.1.  We have 3 instances of each for development, staging, and production.
    In order to transport changes from one environment to another, I am using PCo's Export/Import capability.  This works ok except that, after importing, I have to manually edit the Destination System's Server Name setting to change it to point to my staging MII host instead of my development MII host.  I have the same issue going from staging to production.
    I would like to avoid the manual editing.  Is there a way around this?
    Thanks,
    Mike

    Mike,
    I belive you could just import the Agent by iteself. Instead of importing the source and destination everytime.
    Regards
    Ajay.

  • PCo 2.3 Authorization Error while connecting to MII 14.0

    Hi All,
    We are trying to connect MII 14.0(installed on HP-UX[Unix] system) with PCo 2.3 (installed on Windows 2003 R2 SP2 system). Both MII & PCo servers are on same network. When we are trying to configure the PCo details in MII Data Servers using the link(http://<PCOServerIP:Port>/PCoManagement) , its connecting and we can see the Agents created in PCo. Also when the the PCo connector is enabled in MII, the status is showing green.
    When we try to retrieve the tags using PCo Query TagRetrieveQuery, No tags shows up in MII and an error message is displayed. The MII Log shows lots of errors starting with "Authorization Error PCo". This error shows up when we are configuring the PCo details. To be exact this error shows up after entering the PCo link and clicking on Next button and entering the UserName & Password for the PCo system . Attached is the screen shot of the log error.
    The user-id for the system on which PCo is installed has administrator privileges. The Net. TCP Port sharing services is also started on the PCo server.
    Any other services need to started in the PCo server or anything we missed out? Is there any another service which needs to be activated for Web service?
    PCo is connected to OSISoft PI using PI SDK 1_3_6_364.
    We have tried applying SP's available for PCo 2.3 and still facing the same issue. In-fact we are facing more issues when we apply SP's for PCo. The tag list which shows up on PCo during Subscription Items > Browse, reduces and only few tags which are not required gets displayed in PCo.
    MII Version   : 14.0
    PCo Version : 2.3
    Any suggestions would be greatly appreciated. Thanks.

    Hi Rohit,
    Sorry for the delayed reply. I already checked by ensuring the PCoManagement host and Agent instance services are started. I can see the status as Running "green" when the PCo data server is enabled at the MII end. But the problem is, no tags shows-up in the PCoQuery TagRetriveQuery mode. The logs start with this Authorization Error PCo "You do not have permission to access the Web Service". The PCo Server user-id has local Admin rights.
    Is there any other specific service need to be activated?
    Regards,
    Jeedesh

  • Errors when Starting Agents in PCo 15.0 SP3

    We are in the process of upgrading to PCo 15.0 and are getting the following error when starting an agent.  We used the same configuration and setup using PCo 2.3 with no issue but we are having issues with PCo 15.0 SP3. This issue is happening on both DA and HDA agents.  Has anyone see this before:
    1910     Manufacturing Fault: REASON = FileNotFoundException
    Could not load file or assembly 'WebSocket, Version=15.0.3.2284, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.; SEVERITY = Fatal
    STACK TRACE:
        at SAP.Manufacturing.Connectivity.Protocol.Custom.PCoQueryListener.Start()
       at SAP.Manufacturing.Connectivity.AgentBase.InitializeProtocol()
       at SAP.Manufacturing.Connectivity.AgentBase.Start()
    Thanks,
    George

    HI George,
    Re-apply the PCo Installer, expand the list of installation items, and scroll down to Additional Components to select Websockets, and deploy. That should correct your issue.
    Regards, Steve
    Message was edited by: Steve Stubbs

  • SAP PCo 2.1 - Error Retrieving destination systems

    Hi All,
    I've configured source and destination systems successfully in PCo Mgmt console and created an agent instance.
    While creating notification under agent instance, I'm getting an error - "Error retrieving destination systems \[key not valid for use in specified state\]".
    Can anyone guide over this error ?
    Thanks and Regards,
    Sumit.

    Hi Tony,
    From your error description, I suspect that the management console is starting without administrative priviledges. Can you check and make sure you are starting the management console with administrator rights?
    You may also want to take a look at the PCo Security Guide available at [http://help.sap.com].
    Kind Regards,
    Diana Hoppe
    Edited by: Diana Hoppe on May 23, 2011 8:21 AM

  • PCo 2.2 - ECC Connection Issue

    Hello,
    We have got PCo 2.2 version. I have to call a simple BAPI from PCo agent.
    I have created new destination system of type: RFC Destination (SAP NW).
    I have followed the steps mentioned in:
    http://help.sap.com/saphelp_pco22/helpdata/en/bf/3a68c28c1f4b8190d55b3e1e85a716/content.htm
    But, I am not able to connect to ECC system. I have given application server name, SAP router, System No, Client, User Password and other details correctly. I am also getting the same error when I am creating the connection from SAP SM59 transaction.
    Please let me know if you have any clue on this.
    Thanks in advance.

    Hi Michael,
    I want to test the functionality of "RFC destination" in PCo 2.2 (and also to create an agent which use this destination for notification).
    Also, I have filled all the details on the 'Query Port' tab. But I am getting error as host 'xxx' unknown.

  • Error handling from PCO Query

    Hi,
    In my project I am integrating with a PLC through SAP PCO and OPC server.
    I am currently testing error handling if something fails on any of the involved systems.
    As a first test I stopped the agent instance that I use to read data from the PLC.
    When I try to write through the agent instance with a PCO Quaery I get no errors.
    The 'Success' attribute of the PCO Query is 1.
    The 'LastErrorMessage' attribute is empty.
    The only indication is the 'Output'which contains an error message.
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets CachedTime="" DateCreated="2015-03-19T09:58:49" EndDate="2015-03-19T09:58:48" StartDate="2015-03-19T08:58:48" Version="14.0 SP5 Patch 12 (1-okt-2014)">
         <Messages>
              <Message>PoederMagazijn/ATS PLC/General/NewDataReady_InputTypeMessage: java.net.ConnectException: Connection refused: connect</Message>
         </Messages>
    </Rowsets>
    However, the same <Message> tags are used for success messages as well. So there is no clear way to identify an error.
    Is there any other way I can be sure the PCO query was able to write and catch any errors?
    FYI: we are using PCO 2.3 and MII 14.0
    Thanks!

    A small update. I tried again by upgrading the PCO version to 15.0 But still the same.
    I did the following 2 test cases:
    Unplug the UTP cable to the PLC and write data via PCO query
    Disable the agent instance and write data via PCO query
    In both cases the PCO Query returned the following output:
    Success: 1
    LastErrorMessage: <empty>
    The only information that I get is in the results but it is not a good practice to interpret this because I don't know all the possible messages.
    Result for Case 1:
    <?xml version="1.0" encoding="UTF-8"?><Rowsets CachedTime="" DateCreated="2015-03-26T14:13:18" EndDate="2015-03-26T14:13:12" StartDate="2015-03-26T13:13:12" Version="14.0 SP5 Patch 12 (1-okt-2014)">
        <Messages>
            <Message>PoederMagazijn/ATS PLC/M1 Order Dispatch/ProductDescription: Unspecified error</Message>
            <Message>PoederMagazijn/ATS PLC/M1 Order Dispatch/ProductDescription: Operation failed</Message>
        </Messages>
    </Rowsets>
    Result for Case 2:
    <?xml version="1.0" encoding="UTF-8"?><Rowsets CachedTime="" DateCreated="2015-03-26T12:11:37" EndDate="2015-03-26T12:11:35" StartDate="2015-03-26T11:11:35" Version="14.0 SP5 Patch 12 (1-okt-2014)">
        <Messages>
            <Message>PoederMagazijn/ATS PLC/M1 Order Dispatch/OrderQuantityTarget: java.net.ConnectException: Connection refused: connect</Message>
            <Message>PoederMagazijn/ATS PLC/M1 Order Dispatch/OrderQuantityConfirmed: java.net.ConnectException: Connection refused: connect</Message>
        </Messages>
    </Rowsets>
    Please advice. I cannot provide any transaction integrity at this time. I would assume this to be one of the base principles of PCO.

  • PCo Notification not reaching MII Transaction

    Hi Friends,
    I need some help to send Pco Notification messages successfully to MII. I have created a Pco Notification Agent and created the expression as below.
    if('BA:TEMP.1'>44,  " right", "wrong")
    I tried to test the delivery manually using Notification Test Dialog. When I click on the Deliver button, destination  Transaction at MII gets invoked successfully. But I do not get any value in the input parameter of the transaction. While creating the destination I have mentioned the input parameter correctly.
    Also when click on View Sample button I get the below xml message
    <?xml version="1.0" encoding="utf-8" ?>
    - <NotificationMessage>
    - <Header>
      <Name>TestNotificationMessage</Name>
    - <Description>
    - <![CDATA[ Test Message
      ]]>
      </Description>
      <Destination />
      <CreatedDate>2014-09-04T11:57:47</CreatedDate>
      <ID>1afecce1-67d9-41aa-8296-27a5dc7c1046</ID>
      <Status>Created</Status>
      </Header>
    - <Body>
    - <Values>
    - <Expression1 type="xsd:string" quality="None">
    - <![CDATA[
      ]]>
      </Expression1>
      </Values>
      </Body>
      <Faults />
      </NotificationMessage>
    I am using PCo Version 2.3 and MII version 14.0
    Any help on this very much appreciated.
    Thanks
    Shaji

    Hi Shaji,
    The Expressions in a Notificaion Output are not evaluated against tag values until the Notification is triggered; using the Test Notification Delivery requires you to manually enter a value for each Output value to be delivered.  If you want to test your notifications you will have to start the Agent Instance and have the Trigger fire the notification.
    You can also set a Simulator Destination and have the Notification message delivered to a file in the Simulator Destination directory.  This will give you a way to examine the Notification message contents without having to use MII to capture and save it.
    Regards, Steve

  • Error while creating dataservers in MII14.0

    Hello experts,
    I am new to MII , I am facing issue while creating datasevers in MII 14.0 system. Below are the details.
    I stalled SAP MII in NW7.31 with SP 10 and i stalled PCO 2.3 in OSIsoft PI System which is run on windows.
    I created source system and destination and agent in PCo management consol. and Agent is runnign.
    After that i am trying to create PCo connector in MII system i enterd URL to the PCo instances manually http://172.168.18.34:50050/PCoManagement
    after that i am getting below error .
    [C0000A00075C1D1A00000004000011FC] Error occurred while fetching the PCo agent list; WSDL could not be found for URL http://172.168.18.34:50050/PCoManagement
    Regards,
    Surendra.

    Hi Surendra,
    First check whether the PCo Management service is running(Give the PCo Management URL in a browser and if it works there that means the service is running) and if not then go to the services of the system where PCo is installed and switch on the service.
    2. Check the Proxy configurations in MII at System Properties screen. Try adding the proxy bypass filter like *|*.*
    Also you can check this thread which also talks about the same issue.
    Cant find PCO WSDL
    Regards,
    Rohit Negi.

  • No OPC servers found on the machine specified

    Hi all,
    When i add the source system in PCo,  I get “No OPC servers found on the machine specified” message. Search is done on localhost.
    Kerservex is installed on the local machine.
    Version:
    PCo : 2.3
    KEPServerEX: 5.14
    Any help would be highly appreciated.
    Thanks,
    Shridhar..

    Hello Steve,
    I un-installed PCo, Core Components and then re-installed Core and PCo, Still not working.
    We have PCo/KepserverEx on Windows 2008 R2 Enterprise server and my domain account is in Administrator group.
    I don't find Kepware in OPCQuickClient from Edit > New Server Connection but I could open .OTC file from  File and Open.
    What could be missing?
    Thanks,
    Shridhar.

  • AUTORIZATION_ERROR_PCO

    Hello,
    I'm using SAP PCo 2.3 and trying to create a data server connection from SAP MII 14.0 SP4 through PCoConnector of type PCoConnector.
    I don’t see any data in Agents..
    All PCo Services are running..
    Logging with user which has Admin rights.
    All PCo related services are running under user account LocalSystem
    Logs:
    AUTORIZATION_ERROR_PCO
    [EXCEPTION]
    com.sap.lhcommon.exceptions.AuthorizationException: You do not have permission to access the Web service
    at com.sap.xmii.Illuminator.connectors.PCo.webserviceclient.PCoWebServiceClient.callPCoWebService(PCoWebServiceClient.java:254)
    at com.sap.xmii.Illuminator.connectors.PCo.webserviceclient.PCoWebServiceClient.getAgentInstanceMetadata(PCoWebServiceClient.java:90)
    at com.sap.xmii.Illuminator.connectors.PCo.PCoManager.getPCoAgents(PCoManager.java:56)
    at com.sap.xmii.ejb.dataservers.DataServerBean.getPCoAgents(DataServerBean.java:384)
    at sun.reflect.GeneratedMethodAccessor5015.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
    Version:
    MII: 14.0 SP4 Patch 0 (Nov 22, 2013)
    PCo: 2.300
    Any help would be highly appreciated.
    Thanks,
    Shridhar.

    Hi
    Please check if under Selected Agent Instance->Query Port tab you have checked the MII  checkbox   and provided unique port ?
    Please note that,
    If you are using an SAP MII system of release 12.2 or higher in connection with PCo, you need to select theSAP MII checkbox.
    If you are using an SAP MII system below 12.2, you need to select the MII before 12.2 checkbox.
    Kind Regards
    Dolly

Maybe you are looking for