Console
Console copied to clipboard
Script fails when calling GetBrokenLinks and items has Scripted Datasource
Steps to Reproduce the Problem
Add field with scripted datasource.

Create script which calls GetBrokenLinks followed by Show-ListView. Does not matter if there are any broken links. Just matters that it calls because the resolveRenderingDatasource pipeline gets called.
$item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
$item.Links.GetBrokenLinks($true)
$item | Show-ListView

There is no Runspace available to run scripts in this thread. You can provide one in the DefaultRunspace property of the System.Management.Automation.Runspaces.Runspace type. The script block you attempted to invoke was:
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 30 days since being marked as stale.
Fixed with adb429cb08adf55f438168d1f6ad0ad8c6c832c3.