Forum Discussion

JagadishNallami's avatar
JagadishNallami
Frequent Visitor
1 year ago
Solved

Task.Delay while polling export request in PowerBI is not completed after given interval

Hi there,   I am refering the following link to export a power bi report through PowerBi api using C#. https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to#code-examples   But...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi JagadishNallami 
    Thank you for reaching out microsoft fabric community forum.
    As lbendlin metioned ,the delay might be too short and increasing the delay duration might help.  instead of 30 seconds, try using a longer delay like 300 seconds (5 minutes).
    Using  ConfigureAwait(false) is a good practice to avoid deadlocks, but it might not be sufficient if the underlying issue is related to the export operation itself.
    Ensure that you are not hitting any API rate limits. If you are making frequent requests, the API might be throttling your requests, causing delays or failures

    If you need any further assistance or have any questions, please feel free to reach us.

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

    Thank you.