Page not displaying

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.

Is there a log or something I can look at?

Just to be clear: Are you trying to call this script from a Page or a Dashboard?

Page. @adam

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?

Script as data source. @adam
image

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.

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.

I’ll get a fix in for this into 3.1.3

1 Like