Word Application Scope not taking variable path

Hi All,

I am unable to assign a variable Path to Word Application scope. Below is the mentioned error. How do I fix this ?

@tilarapiyush

Please check the filename of word file or put the file name you passed in in_OutputFolder

Debug the process in immediate panel or put log message whether your filename contains unwanted symbols

Hi @tilarapiyush

Make sure your file path does not contain the special characters. check the below image.

image

Hope it helps!!

Hi @tilarapiyush

Can you show us what is value in the variable in_OutputFolder

When I pass file name directly instead of variable it is not showing error. But this filepath is variable and changes for every file. Hence I need to assign a variable to it.

Hi @tilarapiyush

Can you share sample docx name ?

Regards

@tilarapiyush,

Suffix .docx to your file name

It should be "Data\Output\Boo1.docx"

Thanks,
Ashok :slight_smile:

It’s simply like Statistics_1 . No prohibited characters are being used.

Issue is that is is not accepting variable/argument. It is only taking hardcoded value.

Hi @tilarapiyush

Then your path must be like Data\Output\Statistics.docx. It seems your extension is missing in your variable

image

Regards

@tilarapiyush

The word doc ends with .docx
Sample image with input file
image

Issue is that is is not accepting variable/argument. It is only taking hardcoded value.
I am not able to run the xaml as it is facing validation error due to this issue.

Does it help if you upgrade/downgrade Word activity package version?

1 Like

Hi @tilarapiyush

Click on Open Advanced Editor and pass the variable where you have stored the file path. Make sure your file path is "Data\Output\Statistics.docx".

Regards

Downgrading the package worked, thank you.

ohh that’s seems a bug then.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.