Forum Discussion

tegar's avatar
tegar
Frequent Visitor
2 years ago

Publish report using New-PowerBIReport and HTTPClient

Hello, 

 

Currently I using powershell for publishing the visual report and the dataset.

basicly the process is works when use function New-PowerBIReport, but it will fail if publish dataset with big size

it thrown error New-PowerBIReport : A task was canceled. After searching it caused due the limitation of HTTP Client (Default timeout 100 seconds)

I found in some article as reference to increase the timeout duration like this 

https://stackoverflow.com/questions/40431173/powershell-script-webclient-timeout-140-calling-an-ssrs-report

https://gist.github.com/markekraus/a0135d0a5f52b609eda513df4db71cab

 

but still no clue how to combine with the New-PowerBIReport function from Power BI

any suggestion and clue will much appreciate

 

Thank you

Best Regards

Tegar

1 Reply