2 Replies Latest reply on May 8, 2017 2:23 PM by RobBowman

    New PIPointQuery "Operator 'In' is not supported"

    RobBowman

      Hi All,

      I have the following code:

       

                  string inClause =  "61, 63, 64";

                  try

                  {

                      PIPointQuery whereClause1 = new PIPointQuery(PICommonPointAttributes.Location1, OSIsoft.AF.Search.AFSearchOperator.In, inClause);

                      PIPointQuery whereClause2 = new PIPointQuery(PICommonPointAttributes.PointSource, OSIsoft.AF.Search.AFSearchOperator.Equal, "o");

       

                      List<PIPointQuery> criteria = new List<PIPointQuery>();

                      criteria.Add(whereClause1);

                      criteria.Add(whereClause2);

       

                      var piPointsFound = PIPoint.FindPIPoints(piServer, criteria);

       

      On executing, this throws the error "Operator 'In' is not supported."

       

      How should I provide multiple values for the query of "Location1"?

      Thanks,

      Rob.