web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem with running W...
Power Automate
Answered

Problem with running Word as a variable

(0) ShareShare
ReportReport
Posted on by 37

Hi everyone,
I'm having trouble indicating the variable that is the path to the Word file to be opened. I've tried various ways, but I'm making a mistake somewhere.

The first element of the flow is the custom form. It selects which subflow to run. Here, everything works correctly.
The corresponding selection starts the subflow, which starts by selecting the World file to be analysed. This is where the problem arises. An error appears that the file was not found.

I tried the change in Run word program:

  • %CustomFormDataW['Wordinput']%
  • %CustomFormDataW.Wordinput%
  • %CustomFormDataW['Wordinput'].data%

I've run out of ideas ;/

PA_Error.png
I have the same question (0)
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AlexPower 

    I understand. It seems that Power Fx was enabled(Its preview feature) when you created your flows. To resolve this issue, please disable it and recreate your flow from scratch and follow the same syntax as mentioned above. it will work now.

    Deenuji_0-1715087307112.png

     

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • AlexPower Profile Picture
    37 on at

    @Deenuji Very quickly response 😉

    Thank you, this could be a good option, but not in this case.

    I use Power Fx in other sections of my flow. I cannot give it up

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AlexPower 

     

    I would not recommend to use power fx enabled flow for any live projects as it has so many limitations and current supporting datatype not much clear on MS document. Please refer below:

    Deenuji_0-1715089385761.png

     

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/power-fx#known-issues-and-limitations 

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Verified answer
    kinuasa Profile Picture
    801 Most Valuable Professional on at

    @AlexPower wrote:

    I use Power Fx in other sections of my flow. I cannot give it up


    Please try it:

    =CustomFormDataW.Wordinput

     

  • AlexPower Profile Picture
    37 on at

    @kinuasa 

    It worked! 

    The file has been opened and can be further processed, e.g. by reading data from the Word.

    Thank you for help @kinuasa , thank you @Deenuji .

     

    I have another idea for getting around this error. Automatically convert docx documents to PDF and then read the data. But this is not needed at the moment.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AlexPower 

     

    Btw, I have another work around as well. Transform the custom object into JSON, then utilize a scripting language such as PowerShell or .NET to extract the necessary key values. And at the end of the day, I appreciate your unwavering attitude never to give up.

     

    @kinuasa - You're consistently impressive! I'm not sure how I overlooked testing this syntax, but it's been a good learning experience for me as well.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard