Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

could not load data for this visual

 

I am experiencing two different errors while using direct query method in power bi desktop for same visual. same works in app.powerbi.com.

 

Please provide your suggestion what may causing these issues.  Is this due to my internal network error?. 

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Anonymous 

    For timeout error, you may have to try different duration to test the connection timeout. See details here - https://docs.microsoft.com/en-us/powerquery-m/sql-database


    Example:
    Source = Sql.Database("Servername", "tablename", [option1, option2, ConnectionTimeout=#duration(0, 0, 20, 0)])
    or
    Source = Sql.Databases("Servername", [option1, option2, ConnectionTimeout=#duration(0, 0, 20, 0)])

     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.

     

     

     

7 Replies

  • Anonymous , Are you using cloud database, which you have access to on power bi service and not on desktop?

     

    What is a database and how are you connected with it.

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak I am using sql server database, its not working properly with desktop direct query mode. same works fine after I published and using that in app.powerbi.com

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Anonymous Difficult to say. I have seen issues like this that are solved by closing all copies of Desktop locally and then reopening. Otherwise, You could check the Issues forum here:

    https://community.powerbi.com/t5/Issues/idb-p/Issues

    And if it is not there, then you could post it.

    If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

  • Hi Anonymous ,

     

    If you are trying to connect to a database like SQL Server using Directquery mode, try adding something to your time-out area like 120. This sould help with the timeout issue.

    Thanks,

    Pragati

    • Anonymous's avatar
      Anonymous
      Not applicable

      Pragati11  I tried this but no use. Still its throwing same timeout error for some of visuals. 

       

       

      • Pragati11's avatar
        Pragati11
        Icon for Super User rankSuper User

        Hi Anonymous ,

         

        What is the value in this card visual?

        Is there a calculation that you are using? If yes can you share what calculation it is?

         

        Thanks.

        Pragati

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous 

    For timeout error, you may have to try different duration to test the connection timeout. See details here - https://docs.microsoft.com/en-us/powerquery-m/sql-database


    Example:
    Source = Sql.Database("Servername", "tablename", [option1, option2, ConnectionTimeout=#duration(0, 0, 20, 0)])
    or
    Source = Sql.Databases("Servername", [option1, option2, ConnectionTimeout=#duration(0, 0, 20, 0)])

     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.