When writing a datatable into an excel spreadsheet (xlsx), there is sometimes an error 'Error saving file (with filepath) using exception.Message - when this occurs, it appears to remove all of the formatting and other tabs as if it is saving it as a .csv file?
Could anyone confirm what UIpath does with the excel file in this case?
When UI Path canāt find the Excel file (filename, filepath) a brand new file is created. You probably have an issue with the file path as mentionned by the error message.
To write into an Excel file, i recommend to use āAppend rangeā, you should then be able to write into an excel file already customised
I thought this may help somebody with similar errors. The way I managed to clear the error was using the āAppend Rangeā activity under āSystem>File>Workbookā instead of the āAppend Rangeā under āApp Integration>Excel>Tableā. hope this helps.