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
Super User

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

Top Solution Authors
Users online (2,456)