cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
asmarezgui Frequent Visitor
Frequent Visitor

PowerShell - deploy and Update PBIX on Report Server

Hello Community, 

 

I have used theses lines in order to deploy a pbix file on Report Server : 

 

$session = New-RsRestSession -ReportPortalUri http://lservername/Reports
Write-RsRestCatalogItem -WebSession $session -Path "C:\2019\mypbix.pbix" -RsFolder "/MyFolder"

It is working fine. 

Now, when I need to update the bix with another version , I used the same command bellow but I am getting this error : 

Write-RsRestCatalogItem : System.Exception: Failed to create catalog item: The remote server returned an error: (409) Conflict. ---> System.Net.WebException: The remote server returned an
error: (409) Conflict.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
--- End of inner exception stack trace ---
At line:1 char:1
+ Write-RsRestCatalogItem -WebSession $session -Path "C:\2019\PwC Acade ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Smiley Happy [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-RsRestCatalogItem

 

Does any one please have an idea about hte command PowerShell that could update  apbix previously on the Server please by a new version ?

 

Many thanks

Best Regards,

Asma

1 REPLY 1
cascador84 Frequent Visitor
Frequent Visitor

Re: PowerShell - deploy and Update PBIX on Report Server

Hi Asma,

same issue on my side, even if I put -overwrite option.
Did you find a solution ?

regards