We are using a VBScript in Automation Anywhere 360 and using VbScript to attach multiple files into a Microsoft Word document. The script runs fine for a certain number of transactions, successfully attaching files and closing Word properly. However, after reaching a certain number of executions, Word fails to close properly.
Observations:
1. Word appears to close from the front end, but when checking Task Manager, WINWORD.EXE is still running in the background.
2. The attachments are saving properly, so the issue seems to occur after the file attachments, during the closing process.
3. The script freezes after multiple runs, likely because Word is stuck in the background.
4. The issue does not happen immediately, but after several executions.