Hi everyone!
I'm building a flow to convert some csv files on my One Drive folder to the xlsx format.
I tried to use the method of DamoBird365: https://www.youtube.com/watch?v=9J6ThPWGaG0 , which consists in calling an excel script that we can found here : https://docs.microsoft.com/en-us/office/dev/scripts/resources/samples/convert-csv.
But when i run it, it get this error:
Can someone help me resolving this error, or creating an other flow to achieve this?
For more details on my flow:
The File Content part is used to generate an empty excel file.
I can provide other informations if necessary.
Thank you in advance
Solved! Go to Solution.
If you can’t get this script working, you can always try the CSV to Dataset template: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191
It does everything inside Power Automate without premium connectors and it can handle several CSV parsing issues like commas, line breaks, or arrays within the data.
Also if you have a larger CSV that may take a while to re-post to an Excel table, then you can use these new batch actions:
@DamoBird365 please chime in if you have more insights on this one, but based on the error message you shared, it seems the script failed at this line:
And as I can see from the sample code, the "sheet" object (which got complained as undefined) comes from workbook.getWorksheet("Sheet1"). So can you double check whether there is indeed a worksheet called "Sheet1" in this workbook?
If you can’t get this script working, you can always try the CSV to Dataset template: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191
It does everything inside Power Automate without premium connectors and it can handle several CSV parsing issues like commas, line breaks, or arrays within the data.
Also if you have a larger CSV that may take a while to re-post to an Excel table, then you can use these new batch actions:
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
70 | |
22 | |
18 | |
17 | |
13 |
User | Count |
---|---|
126 | |
37 | |
30 | |
28 | |
26 |