I just updated to the latest version. I have a UDTable pulling from SQL that was working before, but now I get the following error:
Cannot read property ‘version’ of undefined
I have turned on debug logging and do not find this error at all. In the debug logging I do see the table data being successfully loaded, but the table never appears because of this error.
Any ideas what might be causing this error or how I might troubleshoot it?
I hadn’t thought of changing the framework, but did find if I changed my framework to 3.2.0 that it works (but, like you, doesn’t work with 3.2.1 or 3.2.4).
I apologize, I wasn’t very clear. I meant that I’m not even able to add an old framework to my frameworks. When I click “Add Framework” and enter all the information needed the framework is not added.
I have noticed the same with the “latest” version of UniversalDashboard.
If I create my own pscustomobject and populate it with content, it will show the error above.
If I put the “get-service” for example in to a variable and show this through new-udtable, the content will show as expected.
Not sure how you can fix it other than going back to the previous version of the Universaldashboard framework where it works as it should.
can one of you guys create a hashtable with his content and test this, this error is shown when the column doesn’t render anything, does all of your columns have content?
do you have columns that use the -Render property or all of the columns are basic?
what im thinking is the first time the table rendered your $userlist is empty and it make the table crashes, i need to repreduce this some how to take deeper look.
i hope i can do this in this weeken.
btw if you try using other data source does it work ?
yes, as mentioned in my example above, if I use for example get-service and display that content it shows as expected, so maybe it has to do with how the object is created ? (If I go down one version in the dashboard framework, it works fine.)