Forum Discussion
Web Content - Access Method - WWW-Authenticate header doesn't contain a valid authorization URI
There is something changed since 5th April, the API data sources are complaining with same error message-WWW-Authenticate header doesn't contain a valid authorization URI.
Is there a solution to fix this error. It shows up when you go for Organizational Authentication.
Found a work around for this, which would be hepful and would transition from APIs to Sharepoint-
1. Add the Microsoft form to the "Form Group Name" Forms Group.
This can be done by opening the forms home page, scroll to bottom and click on "All My Forms". On the next page, click on ellipses and choose "Move".( We'll first try to copy the form and responses, and will then see how it goes.)
2. After the form is moved, Open the form again from "All My Forms" Page, and then Open responses in excel, Go to File Menu -> Info-> Copy Path.
3. Change the source in the pbix to the new SharePoint web link.
- MaryF4 years agoAdvocate II
Many thanks Pranay, that worked for me.
For others, I've created a more detailed Step-bystep guide. Note this is for connecting to Forms and assumes you have SharePoint online:
- Go to SharePoint and create a site, I called mine My Forms
- Go back to Forms scroll to the bottom of the page, click on All My Forms on right hand side
- On the form you need you notice an ellipsis (…) at bottom right, click on move to Group
- You should see your recently created site, select it and the form will move to that area
- Go back to your Forms landing page and you'll see your form, now when you click on it & go to responses choose Open in Excel
- From Excel online, go to File | Info | Open in Desktop App - this will download a copy.
- From the copy go to File | Info | Copy Path E.g., https://mysharepoint.sharepoint.com/sites/MyForms/Shared%20Documents/NameOfForm.xlsx?web=1
- Now in Power BI create a new query, this time from Web and paste in the content from your clipboard | IMPORTANT Remove the ?web=1 part
- You may need to sign in again, but this time you should see the content of your form, which will go on to include any new responses.
- LPE4 years agoNew Member
Hello MaryF,
Thank you for this super clear guide. I tried it out and do not receive the same connection error but I dont see the values in the table anymore. Did I miss something in the URL content that would allow me to get the content of the forms?
Thanks for your help 🙂
- MaryF4 years agoAdvocate II
Hi there LPE
When you download the workbook (as per step 6) was there data in that file? Also did you remove the ?web=1 from the end of the URL? If yes to both, then I can't see why you don't see it via Power BI. Sorry I can't be of more help.
Mary
- jstovall4 years agoRegular Visitor
We tried this with a test form but we're still running into the same authentication issues.
Update - so I got this this method to work via the sharepoint folder connection (I missunderstood the instructions) but it changed the link to the original form which stinks and I haven't tried this yet with the actual survey responses so there may be other challenges to consider. I'm just frustrated by the abrupt nature of the change, lack of acknowledgement by MSFT, and general lack of a BI data connector for Forms, necessistating all these work arounds.
Second update: So Anonymous's solution of moving the form to a group works great (the old forms link automatically redirects so no need to deploy a new URL). you'll have to modify your power query to shift the source from a Web Connect to a SharePoint folder. We had to rebuild our transformation steps but that was pretty straight forward and we didn't run in to any other issues.
- Anonymous4 years agoNot applicable
Good day.
I tried the above steps and I still run into the same issue.
- Anonymous4 years agoNot applicable
I found another work around.
- Open the Form data in excel desktop
- Then click on Info and copy URL
- To test copy the link and Power query (excel or Power BI) , then connect data to web and log in.
- To refresh your existing report, copy the link open Power BI - Power query , navigate to the source and update the source link eg
Excel.Workbook(Web.Contents("insert link"), null, true)
and then you can log in again and your report should be back to normal