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

How to convert CSV to Excel then add to SQL Server in Power Automate (FLOW)

Hi, 

   I'm working on a flow that saves an email attachment to file system, then loads the data within the file into SQL Server table. 

I've gotten the flow to save the file into the file system successfully, however, the file that saves is a CSV format, and the Flow is looking for an excel

error says: Unable to open excel file. File may be corrupted. Please use Excel to recover the file and try again

 

Is there a way I can convert it to excel, or maybe somehow parse the data from within the csv file? See below

error flow.png

4 REPLIES 4
efialttes
Super User III
Super User III

Hi!
Did you consider following this procedure?
https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/import-csv/td-p/440472
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi, Thanks for your response. I tried the link you sent, but that didn't get me all the way. Although there is detailed information, it misses out on crucial details, like how to initialize json strings. They skipped that part and went towards the end. Do you have any other suggestions on how to accomplish this?

Hi!

Sorry I don't. But please note the link also contains an example Flow in zip format you can download and import, so I guess inside it you will have all the details you miss.

https://powerusers.microsoft.com/jgvjg48436/attachments/jgvjg48436/MPA_Cookbook/17/4/csvtextimport-w...

 

Hope this helps!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



I'll give that a shot. Thanks

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,950)