8 Replies Latest reply on Oct 6, 2017 9:40 PM by brettdoyle

    PIPoint.FindPIPoints not working on my dev environment


      Wondering if anyone has seen something like this before?


      Running some very simple code, I can't get the FindPIPoints function to work on my machine.


      using System;

      using System.Collections.Generic;

      using System.Linq;

      using System.Text;

      using System.Threading.Tasks;

      using OSIsoft.AF.PI;

      using OSIsoft.AF.Search;





      namespace ConsoleApp1


          class Program


              static void Main(string[] args)


                  var piServer = "Servername";



                  PIServer server = PIServer.FindPIServer(piServer);



                  IEnumerable<PIPoint> points = PIPoint.FindPIPoints(server, new[] { "sinusoid" });

                  IEnumerable<PIPoint> points2 = PIPoint.FindPIPoints(server, new[] { "sinusoid*" });

                  IEnumerable<PIPoint> points3 = PIPoint.FindPIPoints(server, new[] { "*" });









      When I search for sinusoid, it comes back with one result. Great.

      When I search for sinusoid*, I get nothing

      When I search for *, I get nothing.


      The * character does not seem to work.


      When running the same code on a different machine to access the same historian, it works fine. That tells me it is an environmental problem.


      Tried just about everything I can think of short of formatting Windows and reinstalling I even uninstalled and reinstall all the OSISoft products that are one my machine, cleared the registry, deleted all the folders I could find, etc.