What is your goal?
my goal is to just fill out a microsof word template, accessing its key and setting its value but I cannot make it works!
What is the problem & what have you tried?
I’ve tried the very few options possible (but for 2 hours) like setting the name of the filled ot file (from documentation it seems a new file should be created) and setting the key but nothing seems to work. It seems Microsoft Word Templates cannot access the template file, even if OneDrive does. By the way, screenshot from Microsoft Word Templates - Apps Documentation seems different form what I’ve got (mainly in the first two rows where the input file is selected)…
Error messages or input/output bundles
InvalidConfigurationError
Invalid docx file.
Create public scenario page
Edited:
changed OneDrive get a file with OneDrive download a file as per @mszymkowiak suggestion: accessing the file problem seems solved but cannot updating Word file accordingly to key values yet
Hey Michele,
can you show a screenshot of how the module is configured?
Hello @Michele,
Welcome to the Community!
Get a File =/= Download a file. This module is not downloading content of the selected file so you cannot map it properly to “Templates” module.
- As a result of the above, you are mapping
Name to a field that is expecting Data. Meaning you are providing a filename (a few text characters) to a field which is expecting file content (binary).
Please change/add a Download a file module and map it into the Template module. It should solve your problem.
Also- to save you some time- please toggle on Advanced settings and check if yout delimiters are configured properly.
1 Like
thanks for your welcome! I am really thrilled to start my automation journey and thanks for your precious help! It means a a lot.
Following your suggestion:
-
I changed the “get a file” module with the “download a file module” and it seems I can now access the file in the Microsoft Word Templates (MWT) module
-
I’ve checked the advanced settings and both the module and my .docx file use same syntax, i.e. {{ }}
SO I don’t get the previous error (accessing file) no more and everything seems to run smoothly BUT regardless, my .docx file was not modified accordingly to my will.
Looking at the image below, towards the end it is written: “All data was processed but the data …”
My Word Template (“tempMicrosoft.docx”) is just a document with: “{{name}}” in it; nothing else (see below)
My MWT is configured as below.
Moreover, I cannot access the value field even if I run the “OneDrive/ download a file” module just before the MWT so I had to map manually “name” in the key string. I am expecting I should be able to retriev the “keys” in the template file but it doesn’t seem the case.
This is how my OneDrive module is configured
What is the “Data” parameter in the Output bundle by the way? it seems the cause of my problem, doesn’t it?.
Hi @Stoyan_Vatov ! yeah sorry, just made a detailed reply to @mszymkowiak after your comment and editing my topic accordingly.