View Issue Details

IDProjectCategoryView StatusLast Update
0008459CTT UA Scripts1 - Script Issuepublic2023-05-12 14:17
ReporterBernd Edlinger Assigned ToBernd Edlinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.03.503 
Summary0008459: Error in Base Information Value As Text/002.js
Description

Using Compliance Test Tool V1.04.11-01.00.501

I see a test failure in this script.
Error Read.Response.ResponseHeader.ServiceResult is Bad: BadNothingToDo (0x800f0000)
Error Test.Execute() encountered an unexpected error:
messagResult of expression 'parentItem' [undefined] is not an object.

Wirestark suggests that the ReadRequest's NodesToRead array is a NULL array,
and the server response is of course BadNothingToDo.

TagsNo tags attached.
Files Affected

Activities

Alexander Allmendinger

2023-05-03 07:59

developer   ~0019268

I checked the scripts and it should correctly be skipped, if no matching nodes are configured. I also tested it on my machine where it works fine.
I suspect it only happens in a specific configuration, could you share your settings file or a screenshot of it so I see the configured nodes?

Alexander Allmendinger

2023-05-12 13:07

developer   ~0019344

Issue is in line 24 of the script. _parentsOfValueAsTextProperty[0] is the actual NodeId not a MonitoredItem in the CTT, therefore .NodeId is not defined which results in parentItem being undefined as well. By removing the .NodeId property access it will use the actual NodeId to create the MonitoredItem and the script will be run.

var parentItem = MonitoredItem.fromNodeIds( _parentsOfValueAsTextProperty[0] )[0];

Paul Hunkar

2023-05-12 14:17

administrator   ~0019346

reviewed change in call, agreed to change, closed issue

Issue History

Date Modified Username Field Change
2022-11-25 07:18 Bernd Edlinger New Issue
2023-01-26 17:01 Paul Hunkar Assigned To => Alexander Allmendinger
2023-01-26 17:01 Paul Hunkar Status new => assigned
2023-01-26 17:02 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2023-05-03 07:59 Alexander Allmendinger Assigned To Alexander Allmendinger => Bernd Edlinger
2023-05-03 07:59 Alexander Allmendinger Status assigned => feedback
2023-05-03 07:59 Alexander Allmendinger Note Added: 0019268
2023-05-12 13:07 Alexander Allmendinger Status feedback => resolved
2023-05-12 13:07 Alexander Allmendinger Resolution open => fixed
2023-05-12 13:07 Alexander Allmendinger Note Added: 0019344
2023-05-12 14:17 Paul Hunkar Status resolved => closed
2023-05-12 14:17 Paul Hunkar Fixed in Version => 1.03.503
2023-05-12 14:17 Paul Hunkar Note Added: 0019346