Report a errors

Oct 28, 2011 at 7:38 PM

Windows 2008R2 SP1. When I try to generate a report I receive this error even with the demo report::

PAL v2.0.8 (http://www.codeplex.com/PAL)
Written by: Clint Huffman (clinth@microsoft.com) and other contributors.
Last Modified: 09/09/2011 22:27:02
The information and actions by this tool is provided "as is" and is intended for information purposes only. The authors and contributors of this
tool take no responsibility for damages or losses incurred by use of this tool.

Your locale is set to: Russian (Russia)
WARNING: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL with the following error
message and a brief description of what you were trying to do. Thank you.
The variable '$global:currentThread' cannot be retrieved because it has not been set.
At C:\Program Files\PAL\PAL v2.0.8\PAL.ps1:5049 char:26
+     $global:currentThread <<<< .CurrentCulture = $usenglishLocales
    + CategoryInfo          : InvalidOperation: (global:currentThread:Token) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : VariableIsUndefined

C:\Program Files\PAL\PAL v2.0.8>

Nov 15, 2011 at 8:36 AM

same error for me too:

---------

The variable '$global:currentThread' cannot be retrieved because it has not bee
n set.
At D:\tool\PLA 2\PAL.ps1:5049 char:26
+     $global:currentThread <<<< .CurrentCulture = $usenglishLocales
    + CategoryInfo          : InvalidOperation: (global:currentThread:Token) [
   ], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : VariableIsUndefined

---------

my running OS is on disk H while i have another OS on disk C.

just try to run it on other PC with only 1 OS, it is ok. 

 

Coordinator
Nov 19, 2011 at 10:19 PM

Does it work if you run it under an English locale?

The Microsoft Chart Controls are assumed to be installed on the C:\ drive, so you might need to open up the PAL.ps1 file and look for the reference to the chart controls DLL and change it to the correct installation path.

Nov 28, 2011 at 3:15 PM
Edited Nov 28, 2011 at 3:21 PM

Hello, experienced the same problem (PAL 2.08 x86, non-english locales). SOLUTION: Same error and correction was reported before, Please refer to the Thread "Force to have en-US locales" under http://pal.codeplex.com/discussions/245080, user jojodis (dated  Oct 4, 9:52). The variable $global:currentThread is actually undefined, but you may correct this by adding the following line to the script PAL.ps1 (~line 70 ):

$global:currentThread = [System.Threading.Thread]::CurrentThread 

Apr 22, 2015 at 7:56 AM
Same thing happened again with 2.7.2 and running under an English locale (according to Control Panel).
W7 was Dutch in the past but I changed that two years ago.
Previous PAL versions never found that to be an issue.
John.