View Issue Details

IDProjectCategoryView StatusLast Update
0007769CTT UA Scripts1 - Script Issuepublic2022-08-25 03:09
ReporterOctavia Stan Assigned ToArchie Miller  
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Summary0007769: Aggregates (Any CU) Err-005.js script error at line number 1350
Description

For the aggregates that do not support non numeric aggregates like Average, the script Err-005.js cannot execute because it does not load the historical data and in HAAggregateHelper.js at line 1350 the
var startTime = testItems[ 0 ].FirstValueInHistory.SourceTimestamp; FirstValueInHistory is undefined and throws an exception.

Steps To Reproduce
  1. Open a CTT Server project and connect to a OPC UA Server that supports Average aggregate
  2. Configure at least one node in NodeIds-Static-HA Profile-Aggregates (tested with integer or double)
  3. Execute script Aggtegates\Average\Err-005.js

the script fails with Error
Test.Execute() encounted an unexpected error:
message:Result of expression 'testItems[ 0 ]' [undefined] is not an object.
lineNumber:1350
sourceId:234161624
fileName:./CTT/1.4.9.398/SoftingUASampleServer/library/ServiceBased/AttributeServiceSet/HistoryRead/HAAggregateHelper.js
expressionBeginOffset:53734
expressionCaretOffset:53748
expressionEndOffset:53768
name:TypeError

TagsAggregates, HA
Files Affected

Activities

Archie Miller

2022-04-28 22:23

administrator   ~0016653

Requires validation checks.

Checking the rest of the file for similar issues.

Issue History

Date Modified Username Field Change
2022-02-23 16:51 Octavia Stan New Issue
2022-02-23 16:51 Octavia Stan Tag Attached: Aggregates
2022-02-23 16:51 Octavia Stan Tag Attached: HA
2022-02-25 16:54 Paul Hunkar Assigned To => Archie Miller
2022-02-25 16:54 Paul Hunkar Status new => assigned
2022-04-28 22:23 Archie Miller Status assigned => confirmed
2022-04-28 22:23 Archie Miller Note Added: 0016653
2022-08-25 03:09 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts