Write-RsRestCatalogItem Doesn't Add Description to Report

Robert Davidian 41 Reputation points
2022-09-07T01:48:51.85+00:00

I'm trying to add an RDL using the Write-RsRestCatalogItem call to an existing SSRS site. The report gets added but I noticed that if I pass in a description, it doesn't get added to the ReportServer catalog. Calling Write-RsCatalogItem with a description adds the description just fine.

### This doesn't add the description to the ReportServer catalog  
Write-RsRestCatalogItem -WebSession $sessionDest -ReportPortalUri $DestinationURI -Path "$localRDLPath\$($r.Name).rdl" -RsFolder $RDLFolder -Description $r.Description -ErrorAction Stop  
          
### This adds the description to the ReportServer catalog  
Write-RsCatalogItem -ReportServerUri $DestinationURI -Path "$localRDLPath\$($r.Name).rdl" -RsFolder $RDLFolder -Description $r.Description -ErrorAction Stop  
   
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,798 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,571 Reputation points Microsoft Vendor
    2022-09-08T04:46:48.857+00:00

    Hi,

    Are your using the ReportingServicesTools module? If so, you can try to remove the "-Verbose:$false | Out-Null" at the end of the Invoke-WebRequest line from the Write-RsRestCatalogItem.ps1 and see if there are any clues in the return value.

    https://www.powershellgallery.com/packages/ReportingServicesTools/0.0.7.2/Content/Functions%5CCatalogItems%5CRest%5CWrite-RsRestCatalogItem.ps1

    Best Regards,
    Ian Xue

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful