Method invocation failed because [System.Char] doesn't contain a method named 'substring'.

Sep 14, 2012 at 11:42 AM

Hi All,

I'm trying to run the report but am getting the following error.

Does anyone have any ideas as to why??

WARNING: Please post errors or problems with this tool to the PAL web site
located at with the following error message and a
brief description of what you were trying to do. Thank you.
Method invocation failed because [System.Char] doesn't contain a method named '
At C:\Program Files\PAL\PAL\PAL.ps1:1165 char:29
+     If ($sCounterPath.substring <<<< (0,2) -ne "\\")
    + CategoryInfo          : InvalidOperation: (substring:String) [], ParentC
    + FullyQualifiedErrorId : MethodNotFound

Sep 17, 2012 at 1:25 PM

The issue is now fixed.  There was a problem with the perf mon template i created (i previously imported it from one server with a named instance to another server with a default instance).  Because i hadn't got the default server name quite right in the template the output wasn't in the correct format (the values didn't come under the header correctly - it was hugely offset).

Once i had fixed the perf mon template the PAL tool generated the report without any issues.

Sep 18, 2012 at 5:47 AM

Thanks for posting that you fixed it, Chris.