Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
chaitanyasharma
Regular Visitor

PBIRS This may be due to a connection failure, timeout or low disk condition within the database

I am able to get all the reports from the power bi report server using the https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/Reports/GetReports endpoint, i am able to download the report i want via the https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/CatalogItems/GetCatalogItem endpoint. But when i try to put the report back via https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/CatalogItems/UpdateCatalogItem endpoint i am getting the following error "An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database." 
the powershell script i am using with the update endpoint looks like so:-

 

$bytes = [System.IO.File]::ReadAllBytes($uploadItemPath);
$payload = @{
            "@odata.type" = "#Model.Report";
            "Content" = [System.Convert]::ToBase64String($bytes);
            "ContentType"="";
            "Name" = 'report name';
            "Description" = "";
            "Hidden"="False";
            "Path" = '/path/on/the/server/report name';
            } | ConvertTo-Json;

$response=Invoke-WebRequest -Uri $catalogItemsUri -Method Put -Body $payload -ContentType "application/json" -UseDefaultCredentials -UseBasicParsing | Out-Null;
         
$response=$response.Content | ConvertFrom-Json;

 

where $uploadItemPath is the path on my local machine where the rdl file is located
how should i go about resolving this issue

0 REPLIES 0

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.