Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

  • Unknown geen idee Profile Picture
    1,755 on at
    Re: 'Populate_a_Microsoft_Word_template' inputs at line '0' and column '0': 'The template language function 'json' parameter is not valid.

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492