Forum Discussion

RSGhelp's avatar
RSGhelp
Frequent Visitor
5 years ago
Solved

Scheduled refresh not working for web source

I'm trying to schedule a resfresh but I am getting the following error 

 

Processing error:

Web.Contents with the Content option is only supported when connecting anonymously

 

It is correct, I use basic login functionality on a source. Username/password. What steps do I need to take to connect anonymously?

The query looks like this 

 

let


Source = Xml.Tables(Web.Contents("https://secure.clockwise.info/clockwise/Mycompany/export/export.php?aktie=exporteer&cwtblexport/53/1/data.file")),
Table0 = Source{0}[Table],

etc.

 

Thanks!

 

  • I fixed this by adding [Headers =[#"Authorization"="Basic  XXXXXX"] to my source call.

    The XXXX is username:password encoded in base 64. (google it for a converter)

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    RSGhelp - That's an odd one, you say you are connecting using a username and password but the error is saying that you are only allowed to connect anonymously? 

     

    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".

    • RSGhelp's avatar
      RSGhelp
      Frequent Visitor

      Yes, I use the "basic" login functionality which uses a username and a password. The data refreshes fine in PowerBI desktop. The trouble comes when using the scheduled refresh on the app.powerbi.com. 

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        RSGhelp - I'm thinking support issue then, it's notoriously hard to troubleshoot Service refresh errors most times.

  • RSGhelp's avatar
    RSGhelp
    Frequent Visitor

    I fixed this by adding [Headers =[#"Authorization"="Basic  XXXXXX"] to my source call.

    The XXXX is username:password encoded in base 64. (google it for a converter)