3 Replies Latest reply on Sep 4, 2013 1:31 PM by carlos.mozo

    Error Tag Not Found during InsertPIData

    carlos.mozo

      Hi,

       

       

       

      I having problems to insert time series values in a PI Point from PI WS. I'm using InsertPIData operation:

       

      This is my request:

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pid="http://xml.osisoft.com/services/PIDataService">
         <soapenv:Header/>
         <soapenv:Body>
            <pid:InsertPIData>
               <!--Optional:-->
               <pid:events>
                  <!--Zero or more repetitions:-->
                  <pid:TimeSeries>
                     <pid:TimedValues>
                        <pid:TimedValue Path="pi:\\VALVDESPISOLANA\aps_pwr_out" Time="2013-09-03T16:43:10Z" Value="15"></pid:TimedValue>
                     </pid:TimedValues>
                  </pid:TimeSeries>
               </pid:events>
               <pid:duplicateSwitch>InsertDuplicate</pid:duplicateSwitch>
            </pid:InsertPIData>
         </soapenv:Body>
      </soapenv:Envelope>

       

      I'm receiving this response:

       

      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
         <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <InsertPIDataResponse xmlns="http://xml.osisoft.com/services/PIDataService">
               <InsertPIDataResult Error="0">
                  <TimedValues>
                     <TimedValue Path="pi:\\VALVDESPISOLANA\aps_pwr_out" Time="2013-09-03T16:43:10Z" Status="-2147219675: Failed to update events on the server. [-5] Tag Not Found"/>
                  </TimedValues>
               </InsertPIDataResult>
            </InsertPIDataResponse>
         </s:Body>
      </s:Envelope>

       

      I can't understand this situation because I've just created the Pi Point "aps_pwr_out" and the user I'm using to connect with PI through PI WS has the piadmin role that cans read and write this PI Point.

       

      This is the capture of archive editor:

       

      1854.SMT.png

       

      Please, could anybody help me to solve this problem?

       

      Thank you in advance

        • Re: Error Tag Not Found during InsertPIData

          Can you retrieve a value from the PI Point with PI WS, even though it is Pt Created, or do you get the same error message. If you can isolate it to InsertPIData it is easier to diagnose; InsertPIData takes a different code path than GetPIArchiveData (for example). Tag not found might be an incorrect error message.

           

          Is your PI Server in a UTC time zone? What happens if you specify "*" for your time through InsertPIData?

            • Re: Error Tag Not Found during InsertPIData
              hanyong

              I agree with Rhys about trying to retrieve values from the point via PI Web Services and see if the issue is isolated to the InsertPIData method. Another possibility that I think can cause this behavior is security. Not sure what kind of security setup you have for the PI Web Services, but PI Web Services can be authenticated or trusted as a user without read access to the PI Tag, causing it to "not find" the point on the server.

               

              If this is the case, you should get the same error for other methods accessing the same point.