For some reason, every automation I do using excel files is not saving the changes in the files after the execution is done. The rest of the automation works just fine, I can see each step working as they should, but when I open the file it is like nothing has been done.
The “save changes” options is checked and the “read-only” option is unchecked, so I’ve no idea why this is happening
If you use not Excel activity such as Write Cell etc. but UiAutomation : Click, Keyboard shortcut etc, auto save won’t work. Please explicitly save workbook or use Excel activity like Write Cell at the end of the scope.
Does this occur in Studio or Assistant? If latter and try to modify xlsx file via relative path, file which exists under c:\users\[username]\.nuget\packages\[packagename]\[version]\lib\net461 (or net6.0-windows7.0) will modified.
Can you try to check the above path and/or use absolute path?
This has happen to me before, but this is the most recent project. Right now I’m doing the “Excel Automation With StudioX” course, the empty values are the ones where the input would be the column inserted by the first activity, but it doesn’t save.
I could save it manually to finish the automation, but I want to fix the issue.
Verify that the changes are actually being made in the Excel file. You can use the “Write Line” activity to print the values of variables or cells to the Output panel, or use the “Message Box” activity to display them on the screen, to check that the changes are being made correctly.
Ensure that the “Save” activity is included in the automation flow and that it is being executed correctly. Make sure that all the required parameters are being set correctly, such as the file path, file format, and overwrite option.
From this screenshot it shows you are telling the bot what to write but have not told it where to write. If you look at the red alerts you can see that there are errors. In the vlookup you have not defined the range.