You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the -UseBasicParsing parameter to all the calls to Invoke-WebRequest. This means that the user running commands that call this cmdlet does not need to have IE configured. This is useful if you are calling ReportingServicesTools commands from a SQL Agent job as the SQL Agent account may not have IE configured
Added try/catch to Out-RsRestCatalogItemId function to prevent errors when calling methods like Out-RestFolderContent and the folder contains items like linked reports that do not return a known extension
How to test this code:
Run Out-RestFolderContent on a folder containing a linked rdl report, it should report a warning, but run to completion
Run a script using a login that does not have IE configured (such as running via a SQL Agent job)
For example
Failed to delete folder '/SUT_GetRsRestItemDataSource_3245bde6-acd5-40c7-8602-878239f34be7': Cannot bind parameter because parameter 'UseBasicParsing' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3"
I see the issue but I am not sure how to edit someone elses PR.
You will have to create your own fork and merge his changes into your fork and send a new PR (or going manual school and do copy and paste of the changes in your fork)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request:
How to test this code:
Has been tested on (remove any that don't apply):