Skip to content

Script fails when calling GetBrokenLinks and items has Scripted Datasource  #996

Description

@michaellwest

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:

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions