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 / 'Populate_a_Microsoft_...
Power Automate
Unanswered

'Populate_a_Microsoft_Word_template' inputs at line '0' and column '0': 'The template language function 'json' parameter is not valid.

(0) ShareShare
ReportReport
Posted on by

Hi I have a flow where by people answer questions on MS Forms and it saves it into Word. Some of the questions have numerous answers to it. With the help of users in here I have been able to remove the '[]' from multichoice responses and for it to not fail if the question is skipped or branched over. 

 

The issue i think I am facing now is if the multichoice question - only one choice is chosen then its failing. I am using  if(empty(json(outputs('Get_response_details')?['body/r06ac0a9ab07d4da58b1d3c320484f67d'])),null,join(json(outputs('Get_response_details')?['body/r06ac0a9ab07d4da58b1d3c320484f67d']), decodeUriComponent('%0D%0A'))) at present but I am getting an error that states: Unable to process template language expressions in action 'Populate_a_Microsoft_Word_template' inputs at line '0' and column '0': 'The template language function 'json' parameter is not valid. The provided value 'The LEV system will be tested at intervals not exceeding 14 months by a competent person.' cannot be parsed: 'Unexpected character encountered while parsing value: T. Path '', line 0, position 0.'. Please see https://aka.ms/logicexpressions#json for usage details.'.

 

Any ideas or solutions please?

 

 

clarkyb_0-1682620227994.png

 

Categories:
I have the same question (0)
  • Unknown geen idee Profile Picture
    1,757 on at

    Dear clarkyb,

     

    There could be various things wrong here ... but difficult to figure out what exactly.

    My first thoughts are:

    • Instead of "if(empty(json(outputs('Get_response_details')?['body/r06ac0a9ab07d4da58b1d3c320484f67d'])),null,join(json(outputs('Get_response_details')?['body/r06ac0a9ab07d4da58b1d3c320484f67d']), decodeUriComponent('%0D%0A')))" can you try "if(empty(outputs('Get_response_details')?['body/r06ac0a9ab07d4da58b1d3c320484f67d']),null,join(outputs('Get_response_details')?['body/r06ac0a9ab07d4da58b1d3c320484f67d'], decodeUriComponent('%0D%0A')))"?
    • It could be that the value/field you are trying to retrieve is empty or cannot be retrieved, which in some functions gives an error like ".... inputs at line '0' and column '0': ". You could test this by ensuring that you have a value, maybe by hardcoding it in the expression.
    • Overall, in shaping the right expressions, I have found that ChatGPT is a great help ... also with wrong expressions. 

     

    Hope the suggestions help,

    Happy flowing,

    Koen

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard