Hello,
we have a very strange problem when executing an SSIS package with the SQL Agent.
The package has the following tasks for an Excel file:
1. Check file in the source path.
2. Copy file to the destination path.
3. Open file in the destination path.
4. Rename first worksheet.
5. Save File.
6. Import file.
When executed with the SQL Agent, tasks 1-5 are processed successfully.
An error is generated at step 6. If the package is executed in SMSS, all six tasks are completed successfully.
The permissions on the source and destination paths are the same; otherwise, the SQL Agent would not be able to copy, open, modify, and save the file.
Thanks in advance for your help.
SQL Server = 2017
Visual Studio = 2022 with the latest SSIS integration


on paths are the same; otherwise, the SQL Agent would not be able to copy, open, modify, and save the file.