Cannot index into a null array.

Oct 11, 2010 at 9:36 AM
Edited Oct 11, 2010 at 3:19 PM


After running PAL I got this error message (File title : System Overview) :

Cannot index into a null array.
At C:\Program Files (x86)\PAL\PAL v2.0.4\PAL.ps1:947 char:19
+     If ($oCSVFile[ <<<< 0] -is [System.Char])
    + CategoryInfo          : InvalidOperation: (0:Int32) [], ParentContainsEr
    + FullyQualifiedErrorId : NullArray


Server :

8 cpu - 16GB ram - IIS server - W2003 Server 64 bits -

PAL default configuration (I tried to match my server conf but still have the same error)

What I did wrong ?

Thanks for your answer


PS : I tried with IIS instead of System Overview : Its works fine .. any idea why ?

Oct 12, 2010 at 6:10 AM

PAL uses Relog.exe (part of the operating system) to convert the counter log into a CSV file unless it is a CSV file already. Eventually, the PAL.ps1 script reads the first line of the CSV file. The error indicates that the CSV file does not contain anything, so I suspect that the CSV file was not created or is corrupted. Please make sure that you are using an English-US locale when using PAL v2.x.

Feb 8, 2011 at 9:24 AM

Or instead of using en-US locale, you can adjust the PAL.ps1 script as described here ->

Feb 9, 2011 at 4:56 AM

I added the code that mafalt provided to PAL.ps1. Can you test it for me? It is available for download at:
Thank you!