web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error While Converting...
Power Automate
Answered

Error While Converting .CSV to .XLSX

(0) ShareShare
ReportReport
Posted on by 9

Hi everyone,

 

I'm having some trouble in a Flow that I made which reads from a .CSV, separates all the columns, and applies each separated column into a new .XLSX file, but every time that I try and run the Flow it gives me a "out of memory error" when reading a column with a lot of text. I placed the error message at the end.

 

If anyone know what I need to do, please help.

Thanks in advance.

 

Ryzen 5 5600H

16GB Ram

500Gb SSD

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to write to Excel. ---> System.Reflection.TargetInvocationException: The target of an invocation threw an exception. ---> System.OutOfMemoryException: There are not enough memory resources to complete this operation. (Exception from HRESULT: 0x8007000E (E_OUTOFMEMORY))
 --- End of internal exception stack trace ---
 in System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
 in System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
 in System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
 in Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.ExcelActions.SetProperty(Object o, String propertyName, Object value)
 in Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.ExcelActions.WriteToExcel(Variant excelInstance, Variant startCol, Variant startRow, Variant valueToWrite, Int32 writeMode)
 --- End of internal exception stack trace ---
 in Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.WriteToExcel.Execute(ActionContext context)
 in Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

I have the same question (0)
  • yanhao Profile Picture
    22 on at

    You can try running one column at a time or think about databases

  • VJR Profile Picture
    7,635 on at

    Hello @AemaethDragon 

     

    Please try

    - Launch Excel (path of .csv)

    - Save Excel (select .xlsx in the dropdown)

     

     

  • Verified answer
    AemaethDragon Profile Picture
    9 on at

    I found the solution.

    The problem when converting - The data type of certain column in the .xlsx file didn't match with the columns that were being read from the .csv file.

    Solution - Create an empty .xlsx file and specify the data type of the columns that were giving the memory error.

     

    Thanks to @yanhao for suggesting reading each column separately, that helped in understanding the memory error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 305

#3
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

Last 30 days Overall leaderboard