piacepoint.SendDataToPI = true; //reset the senddatatopi to true
double day = (double)pipoint.Data.Summary(StartDateTime, EndDateTime, ArchiveSummaryTypeConstants.astTotal, CalculationBasisConstants.cbEventWeighted).Value;
piacepoint.ExeTime = StartOfPrevious[(int)aggTime.Day]; // for Aqs needs to be start of day not end of day
piacepoint.ArcMode = DataMergeConstants.dmReplaceDuplicates;
I have the code block listed above which works perfectly some of the time.
For example I try to process a month to calculate daily totals by summarising 15 min totals
I get all the values for the month, great perfect it works.
I think change the underlying 15 min values
I try to run the process again and I get 1 tag updated and the substituted value is ticked.
I run the process a third time and get 10 out of the 30 days processed.
Or I might run the recalculation process and get 0 values updated.
I know the values need updating, if I delete the daily values and run the calculation, values are calculated which are different to the ones that were deleted.