intercap

Missing AFElement query pattern error

Discussion created by intercap on Nov 26, 2013
Latest reply on Nov 26, 2013 by David Hearn

We're trying to compile an tool built a year or two ago by a contractor, but keep getting the following error:

 

 

 

"Error 1 Could not find an implementation of the query pattern for source type 'OSIsoft.AF.Asset.AFAttributes'.  'Join' not found.  Consider explicitly specifying the type of the range variable 'newAttributes'. C:\Users\klehman\workspaces\IUE\IUEtoPIAF\IUEtoPIAF_Logic\IUEtoAFConverter.cs 627 60 IUEtoPIAF.Logic "

 

 

 

Here's the line that generates the error:  Does anyone have any suggestions about why the "join" pattern is failing?

 

private void MergeElement (AFElement oldElement, AFElement newElement)

 

{

 

...

 

var attributesToUpdate = from newAttributes in newElement.Attributes join oldAttributes in oldElement.Attributes on newAttributes.Name equals oldAttributes.Name select new { newAttributes, oldAttributes };

 

 ...

 

}

 

Does anyone have any suggestions about why the "join" pattern is failing?

Outcomes