UDTable not showing after upgrade -Cannot read property 'version' of undefined

I was able to reproduce the issue with PSCustomObject’s and found a solution. If anyone wants to try it, you can adjust the UniversalDashboard.MaterialUI.psm1 file in you installation directory and then the folder UniversalDashboard\Frameworks\v3.

On line 3805, change Property to Properties.

Like this:

$InputObject | Get-Member -MemberType Properties | ForEach-Object {

I’m not convinced this will resolve everyone’s issue. This bug was introduced in 3.2.4 (1.5.7) but it sounds like people have tried previous versions as well and had issues. This fix specifically resolves issues with PSCustomObject serialization. It looks like .NET objects and hashtables should work with 1.5.7. I’ve validated that PSCustomObjects, .NET objects and Hashtables work with the latest fix. Tonight’s nightly 1.5.8 build will also include this fix.

2 Likes

As an alternative I did the following in a Automated Script:

  1. Copy-paste SQL query
  2. Created a new Cache Set-PSUCache -Key "EnterKeyNameHere" -Value (Invoke-Sqlcmd) -AbsoluteExpirationFromNow ([TimeSpan]::FromHours(1))
  3. Called the Cache Key from dashboard
2 Likes