AnsweredAssumed Answered

AF.PI.PIException [-11019] Archive File Not Mounted

Question asked by RobBowman on May 10, 2017
Latest reply on May 11, 2017 by RobBowman

Hi,

I'm trying to update a pi point with the following c# code:

 

PIServers piServers = new PIServers();

PIServer piServer = piServers.DefaultPIServer;

piServer.Connect();

PIPointQuery whereClause1 = new PIPointQuery(PICommonPointAttributes.Tag, OSIsoft.AF.Search.AFSearchOperator.Equal,

                                                                    updateRec.PiRec1.PiRec2.Tag);

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

                    criteria.Add(whereClause1);

 

                    var piPoint = PIPoint.FindPIPoints(piServer, criteria).Single();

 

piPoint.SetAttribute(PICommonPointAttributes.Descriptor, updateRec.PiRec1.Descriptor);

AFErrors<string> errors = piPoint.SaveAttributes(PICommonPointAttributes.Descriptor)

 

After executing the SaveAttributes method, errors is populated with: "AF.PI.PIException [-11019] Archive File Not Mounted"

Can anyone please advise what I missed?

 

Thanks,

Rob.

Outcomes