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 / Error Message - Set Va...
Power Automate
Answered

Error Message - Set Variable

(0) ShareShare
ReportReport
Posted on by 75
Hi everyone - 
I am attempting to use Power Automate to auto-format a job description.  Basically a user will cut/paste the text of a job description into MS Forms and the finished product will be a formatted MS Word document (I have the premium connector).  As part of flow, I check the text of the job description for the presence of etc., i.e., and e.g. and replace them with etc, ie, and eg, respectively.  This seems to be working.  The problem comes when I attempt to set the updated VarJD variable - I get the following error: 
 
Unable to process template language expressions in action 'Set_variable_2' inputs at line '0' and column '0': 'The template language expression 'outputs('Compose_-_Replace_i.e._JD')?['_JD_outputs']?['$']' cannot be evaluated because property '_JD_outputs' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.
 
Here is a view of that portion of the flow as well as the raw output before the flow fails: 


Raw Output of Compose – Replace i.e. JD step:
"Operate machinery / equipment to ensure that seed production processes occur safely, effectively, and with quality in alignment with general procedures of the site. Interact with receiving and shipping trucks; instruct truck drivers for movement through the drive shed and plant. Lead safety programs. Using a forklift, stack bins of seed, move pallets on and off racking, using a forklift rotator where required, moving wide loads and tall loads safely. Regularly perform Forklift inspections. Control plant operations by setting up equipment from control room computer in addition to local controllers aside. Clean down equipment following appropriate safety and compliance standards. Work in a production line and wear PPE necessary for the handling of treated seed and the cleaning of equipment contaminated by treatment. Collect and process QA samples. Demonstrate knowledge of and adherence to Bayer’s Health, Safety, Environment (HSE) and Quality Assurance/Quality Control (QA/QC) standards (eg general shop floor/machine safety and operating procedures). Comply with internal procedures and support compliance with legal requirements applicable to area activities. Draw officially recognized samples (Seeds Act) and process them, or do so under supervision of an Approved Operator. Operate equipment in production sites and leverage real time data to maximize existing procedures Perform preventive maintenance and inspections; troubleshoot problems associated with equipment, processes, and systems. Support local team in all functions of seed production including processing, packaging, pollinations, and field notes. Support areas across sites in driving the adoption of continuous improvement practices and programs (5S, Lean, Six Sigma) conducive to an organized and clean work environment. Mentor new employees, perform basic maintenance of equipment, and handle basic activities in Bayer systems. Provide coaching and training to seasonal workforce, area trainees and peers supporting achievement and personal development. Adhere to LOTO when service is needed for maintenance. Utilize Focused Improvement (eg, 5WHYs) techniques to initiate process and standard work improvements. Ensure upstream activities are handled within company standards and business requirements. Cultivate partnership with key business partners to plant / field operations. Document work permits for contractors. Use SAP to support administrative procedures, documenting key readings, maintenance orders, production information. Maintain key process documentation (operating, start up and shut down procedures; standard work; process flow and instrumentation diagrams; etc). Participate in and lead meetings as needed; articulating shift objectives and allocating resources accordingly across all active production areas. Support and maintain metrics and relevant information on current Visual Management boards to drive teamwork and facilitate shift change over. Communicate effectively and professionally with Seed Partners and Tollers."
 
Any ideas as to why the flow is failing and what I can do to fix it?  I am at a loss - I have another flow built exactly the same way that is working just fine.
 
Thank you!
Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at
    @JD-03091828-0 It's hard to offer any recommendations without seeing the full logic behind your flow. In edit mode, click on each action to expand it. Upload a screenshot of your full flow.
     
    In the meantime, you might be interested in these MS Form/Power Automate tutorials:
     

    Are you looking for a way to automate creating Microsoft Planner tasks from Microsoft Form Submissions? In this Power Automate tutorial, I’ll show you how to build this flow that creates tasks in Planner each time a form is submitted.

    First, I’ll show you how to create a task using the Microsoft Form submission data. Then, I’ll show you how to place a task in a specific bucket based on a selection made in the form as well as how to assign tasks to specific users. At the end of the video I’ll show you how to handle Microsoft Form uploads and how you can attach those to your Planner Tasks.

    If you’re looking for a way to quickly create tasks from a SharePoint list or an Excel table—I already have a tutorial on how to do that. Click here to check it out.
    IN THIS VIDEO:
    ✓  How to automate creating Planner tasks from Microsoft Forms submissions
    ✓  How to differentiate between Group Forms and Personal Forms in Microsoft Forms
    ✓  How to build a flow to create tasks using Microsoft Forms data
    ✓  How to dynamically select a bucket in the Create a Task action
    ✓  How to add a task description to a Planner task
    ✓  How to use the List Buckets action in Power Automate
    ✓  How to use the Filter Array action to match form responses
    ✓  How to troubleshoot Filter Array action issues
    ✓  How to use the Condition action to handle bucket creation
    ✓  How to create a new bucket in Microsoft Planner automatically
    ✓  How to use variables to set the Bucket ID dynamically
    ✓  How to assign users to Planner tasks based on form responses
    ✓  How to add multiple users to a task using SharePoint or Excel data
    ✓  How to group actions using the Scope action in Power Automate
    ✓  How to add file attachments to Planner tasks from Microsoft Forms
    ✓  How to parse JSON output for file uploads in Power Automate
    ✓  How to handle empty file uploads in Power Automate
    ✓  How to replace the manual flow trigger with a form submission trigger
     
    ---
     
    How to Add Microsoft Form File Uploads to a SharePoint List Item
    In this Microsoft Power Automate Tutorial I’m going to cover how to add file uploads to a SharePoint list item. First, I’ll show you how to get the file name and content from the File Uploads from your Microsoft Form, then I’ll show you how to add those files to a SharePoint item.

    IN THIS VIDEO:
    ✓ Two types of MS Forms
    ✓ Where Microsoft Personal (OneDrive) Form File Uploads are Saved
    ✓ Where Microsoft Group Form File Uploads are Saved
    ✓ How to Add a File Upload Question to an MS Form
    ✓ How to get a Microsoft Form ID
    ✓ How to get a Microsoft Form Response
    ✓ How to Get the Dynamic Content Microsoft Form File Upload Content
    ✓ How to handle Single and Multiple Microsoft Form File Uploads
    ✓ How to use a Scope action to Organize and Group Your Flow Actions
    ✓ How to Get the File Content from an MS Form File Upload
    ✓ How to Collect All Files from Multiple File Upload Questions
    ✓ How to Handle MS Form Response When a File Isn’t Uploaded
    ✓ How to Attach an MS Form Single File Upload to a SharePoint List Item
    ✓ How to Attach Multiple MS Form File Uploads to a SharePoint List Item
    ✓ How to Attach MS Form File Uploads to an Email
     

     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • ammadkhan Profile Picture
    10 on at
    you have initialize a "varJD" as string.
     
    There you have added the data from your your ms forms.
     
     
    Now you are trying to replace e.g / etc., from that string.
     
    For this you are adding condition and doing this in three different steps.
     
     
    My suggestion is: 
     
    Try in your first compose without conditions
     
    Replace(msformsdataasString, 'e.g.', 'eg')
     
    Then check the string if it has worked. 
     
    If yes, the add in just one compose all your replace inside one another.
     
    Like replace(replace(outputs('ComposeActionName'), 'etc.,', 'etc'), 'e.g.,', 'eg')
     
    See the if your compose is giving you clean string with replaced values.
     
    I am not sure if you have to then initialize the variable at all.
     
    Try using the compose output directly to create word document. 
     
    Am wondering why you have to replace etc., or e.g.,? Is it not able to create word document?
    --- hope this help you.
     
     
  • Verified answer
    rzaneti Profile Picture
    4,491 Super User 2026 Season 1 on at
     
    Based on your error message, you are assigning the value of outputs('Compose_-_Replace_i.e._JD')?['_JD_outputs']?['$'] to a string variable. Based on the shared raw outputs, the value of outputs('Compose_-_Replace_i.e._JD') is a string. I would recommend you to remove the dynamic content assigned to Set variable 2 and manually enter outputs('Compose_-_Replace_i.e._JD') as expression, just to ensure that you are capturing only the outputs from the Compose - Replace i.e. JD, and nothing else.
     
     
    Let me know if it works for you or if you need any additional help!
     
    If this is the answer to your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.

    Check more Power Platform content on my website.
    Lets connect on LinkedIn.
  • JD-03091828-0 Profile Picture
    75 on at
    @rzaneti - that worked beautifully - thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 889

#2
Valantis Profile Picture

Valantis 830

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard