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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Grzy7316
Frequent Visitor

New-PowerBIReport ignoring Timeout

I am trying to use the Power BI powershell Module to upload a power BI report to the service. 
I am running the following command 

New-PowerBIReport -Path "/Users/username/git/Data_PowerBI/PBI_DATA_MODEL.pbix" -Name PBI_DATA_MODEL_Upload -Workspace $Workspace -Timeout 999

but am getting the error 

New-PowerBIReport: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.

 

Why is the powershell module ignoring my timeout argument ? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Grzy7316 

Try to add "$" before Timeout functio in your code

...-$Timeout = 999

Here are some blogs, I hope they could help you.

For reference: 

Microsoft Power BI Cmdlets for Windows PowerShell and PowerShell Core

Creating A Timeout Feature In Your PowerShell Scripts

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
ManuelW
Helper I
Helper I

Dear Community,

 

I got an similar error when I call the New-PowerBIReport Command. 
The Command abort after 100 seconds with the code: 

ManuelW_1-1665752254206.pngManuelW_2-1665752258511.png

ManuelW_3-1665752312739.png

 

The timeout parameter does not work even if you just set it to 5 seconds and force a timeout.

@Anonymous Your solution with the $ even dont work in my case. 

 

Thanful for a hint 🙂 

 

 

I never was able to get this issue resolved. We ended up scrapping our import model & rebuilding as a direct Query model  , but at least it let us cut down how much we were spending on capacity 

Hi @ManuelW,

 

I have the same issue.

I tried the Timeout parameter from the New-PowerBIReport Command but it seems it is not taken into account. I still get the "The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.' error.

 

Did you find a solution ?

 

Best Regards

Hi @Cedv4 , Unfortunately, I have never found a solution either;

Anonymous
Not applicable

Hi @Grzy7316 

Try to add "$" before Timeout functio in your code

...-$Timeout = 999

Here are some blogs, I hope they could help you.

For reference: 

Microsoft Power BI Cmdlets for Windows PowerShell and PowerShell Core

Creating A Timeout Feature In Your PowerShell Scripts

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.