HR-DL
July 11, 2022, 5:42pm
1
Getting this when trying to create a page for a script.
Here’s my param block:
param (
[Parameter(Mandatory = $true)]
[ValidateSet(‘data.domain.com ’)]
[String]$Domain,
[Parameter(Mandatory = $true)]
[String]$EmailTo
)
What am I doing wrong? Page loads as seen in screencap:
Product: PowerShell Universal
Version: 3.1.
HR-DL
July 12, 2022, 3:56pm
2
Is there a log or something I can look at?
adam
July 12, 2022, 4:19pm
3
Just to be clear: Are you trying to call this script from a Page or a Dashboard ?
adam
July 12, 2022, 9:19pm
5
Ok. Are you using the script as the data source?
And can you press F12 to see if there are any JavaScript errors when trying to load the page?
HR-DL
July 13, 2022, 1:56pm
6
Script as data source. @adam
adam
July 13, 2022, 3:16pm
7
Have you run this script before? I’m just curious what the previous job’s output looks like.
I’ll open an issue for this though. It shouldn’t be throwing that error.
HR-DL
July 13, 2022, 4:01pm
8
Running it from the Script page runs it fine. Completes with no errors. @adam
I have this same issue with PowerShell Universal version 2.12.2 and 2.10.2. Removing DataSourceType=“script” DataSource=“script name here.ps1” from the XML will somewhat proper render the page.
adam
July 15, 2022, 12:09am
10
I’ll get a fix in for this into 3.1.3
1 Like