Console icon indicating copy to clipboard operation
Console copied to clipboard

Script fails when calling GetBrokenLinks and items has Scripted Datasource

Open michaellwest opened this issue 7 years ago • 1 comments

Steps to Reproduce the Problem

Add field with scripted datasource. image

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

image

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:

michaellwest avatar Apr 15 '18 22:04 michaellwest

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Jun 13 '24 02:06 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Jul 13 '24 02:07 github-actions[bot]

Fixed with adb429cb08adf55f438168d1f6ad0ad8c6c832c3.

AdamNaj avatar Jul 25 '24 14:07 AdamNaj