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

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,091)