cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
newautomater
Regular Visitor

Bad Request Error

Happy 4th of July!

 

Building a flow that attempts to grab a sharepoint list weekly, convert it to a .xls file, and then email that file every Monday. I am getting the below error at the "Create file" stage. I have posted the flow below the error. Any assistance would be great

 

Bad Request - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

 

1.png2.png3.png4.png5.png6.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
tom_riha
Super User
Super User

Hello @newautomater ,

I’m not sure if you can create an .xls file as that’s a complicated file type, and also if you can use the html table as a source. 
I’d create a .csv file instead, using the ‘Create csv table’ instead of the creation of an html table. 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

2 REPLIES 2
tom_riha
Super User
Super User

Hello @newautomater ,

I’m not sure if you can create an .xls file as that’s a complicated file type, and also if you can use the html table as a source. 
I’d create a .csv file instead, using the ‘Create csv table’ instead of the creation of an html table. 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Hi there,

 

This was a good idea. I changed the Output.xls step to CSV. I left content as just file content and switched to a non-dynamic name instead of the output.xls, which didn't make a bunch of sense to me when thinking about it since the output would be an entire list. This worked for me! I've done an .xls before from html and I think some of these steps weren't exactly needed. However, this workaround came through!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,896)