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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,895)