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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,696)