Quantcast
Channel: Performance Analysis of Logs (PAL) Tool
Viewing all articles
Browse latest Browse all 913

Created Unassigned: Error when only 1 ANALYSIS exists [63918]

$
0
0
Where there is only 1 ANALYSIS, the PAL.PS1 script fails:

```
The property 'DATASOURCE' cannot be found on this object. Verify that the property exists.
At C:\Program Files\PAL\PAL\PAL.ps1:1965 char:15
+ If (@($XmlAnalysis.DATASOURCE).Count -gt 1)
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
```
This is in the function _AddCounterStatsToXmlCounterInstances_

This is becasue in the lines above the statement:
```
$XmlAnalysis = $global:oXml.XmlAnalyses.ANALYSIS[$oCompletedAnalysis.XmlNodeIndex]
```
yields no result (null object)

Viewing all articles
Browse latest Browse all 913

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>