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.