Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Get-RsFolderContent" not working !!! #423

Open
RManjunathan opened this issue Mar 14, 2024 · 1 comment
Open

"Get-RsFolderContent" not working !!! #423

RManjunathan opened this issue Mar 14, 2024 · 1 comment

Comments

@RManjunathan
Copy link

RManjunathan commented Mar 14, 2024

Do you want to request a feature or report a bug? - bug

What is the current behavior?
Getting exception while trying to execute Get-RsFolderContent command

Method invocation failed because [System.Int32] does not contain a method named 'ListChildren'.
At C:\Program Files\WindowsPowerShell\Modules\ReportingServicesTools\0.0.8.0\Functions\CatalogItems\Get-RsFolderContent.ps1:85 char:17
$Proxy.ListChildren($Item, $Recurse)
CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : MethodNotFound

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
$Recurse=1
Get-RsFolderContent -ReportServerUri "serverurl" -RsFolder "/" -Recurse $Recurse

What is the expected behavior?
to view the list of reports

Which versions of Powershell and which OS are affected by this issue? Did this work in previous versions of our scripts?
Name Value


PSVersion 5.1.17763.5458
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.5458
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Pls find the below screenshot where i tried with all different parameter combination & their respective exception message

tempsnip

@RManjunathan RManjunathan changed the title Issue in executing "Get-RsFolderContent" "Get-RsFolderContent" not working Mar 14, 2024
@RManjunathan RManjunathan changed the title "Get-RsFolderContent" not working "Get-RsFolderContent" not working !!! Mar 14, 2024
@joshfrias
Copy link

The Recurse parameter is a switch. Why are you assigning the value 1 to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants