Skip to main content
Question

Word Package Issue

  • November 30, 2025
  • 1 reply
  • 19 views

Forum|alt.badge.img+1

I’m facing an issue while opening a .docx file using the Word package in Automation Anywhere.
When I assign the file path through a string variable or file-type variable, the document does not open.
However, if I provide the same path directly in the File Location field, the file opens without any issue.

Could you please help me understand why the path works when entered directly, but not when passed through a variable?. Then tell me how do I need to provide a dynamic path.

Thanks,
Dinesh

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • December 2, 2025

@Dinesh C Not sure what you’re doing differently than me, but I have no problems.

The first action is the path hard-coded. This works, as it works for you.

The second action is me setting the same file path to the $sFilePath$ variable. 

The third action is me using the $sFilePath$ variable in the Desktop File option of Word: Open. This also works.