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 / undefinedUnable to pro...
Power Automate
Unanswered

undefinedUnable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The template language function 'json' expects its parameter to be a string or an XML. The provided value is of type 'Integer'. Please see https://aka.ms/logicexpressions#json for usage de

(0) ShareShare
ReportReport
Posted on by 34

Need help please...

 

My low used to work perfectly but now it doesnt. I've tried to rebuild it but I deleted the original. I dont understand what I'm doing wrong. Its a simple flow to collect MS form responses and put them into a sharepoint list. 

 

  • I've used the forms to sharepoint flow template
  • I've followed online/video tutorials to use the apply to each action
  • I've correctly mapped all list columns to questions
  • The flow says it will work but when I submit a form response it fails with the following error:

Unable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The template language function 'json' expects its parameter to be a string or an XML. The provided value is of type 'Integer'. Please see https://aka.ms/logicexpressions#json for usage details.'.

 

How do I find column and line 0 to change the type?

 

Ben_Miller_0-1695902259896.png

 

Ben_Miller_1-1695902302898.png

 

 

apply to each failure.JPG
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,768 Most Valuable Professional on at

    Hi @Ben_Miller,

     

    The error from the screenshot is caused by the fact you are trying to convert a number (integer) value to a json type value. That json function only allows text (string) or xml type of values as input.

     

    If you want to keep this flow logic and just fix your error you could convert the number to text first before you use it in the json function. Try the below:

    json(string(triggerOutputs()?['body/resourceData/responseId']))

     

  • Ben_Miller Profile Picture
    34 on at

    Hi @Expiscornovus - thank you for your response. Unfortunately this didn't work and still getting the same error. Its strange as the flow used to work perfectly when the dynamic content was to use "List of Responses" but this no longer exists.

     

    Oddly, when I take the Get response details and create item out of the "Apply to each" - it works. 

     

    Many thanks

    Ben

  • Ben_Miller Profile Picture
    34 on at

    Hi @Expiscornovus 

     

    I've managed to solve it.

    thanks for your input. 

     

    Ben Miller

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard