Forum Discussion

Grzy7316's avatar
Grzy7316
Frequent Visitor
4 years ago
Solved

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 ? 

5 Replies

  • Dear Community,

     

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

     

    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 🙂 

     

     

    • Grzy7316's avatar
      Grzy7316
      Frequent Visitor

      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 

    • Anonymous's avatar
      Anonymous
      Not applicable

      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

      • ManuelW's avatar
        ManuelW
        Helper I

        Hi Anonymous , Unfortunately, I have never found a solution either;