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

Set-RsRestItemDataSource fails to update linked datasources for Dataset #427

Open
jaganmohann246 opened this issue Aug 22, 2024 · 0 comments

Comments

@jaganmohann246
Copy link

Do you want to request a feature or report a bug?
A bug report
What is the current behavior?
If a dataset is configured with a linked datasource, updating the datasource of the DataSet throws an error.
Message is "Error: Cannot validate argument on parameter 'RsItemType'. The argument "DataSet" does not belong to the set "PowerBIReport,Report" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again."
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Need to add 'DataSet' in validateSet in


What is the expected behavior?
Updating ValidateSet in above line will fix this error.
Which versions of Powershell and which OS are affected by this issue? Did this work in previous versions of our scripts?
Not working in v5.1. Not sure of any working versions.

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

1 participant