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 Action 'Get_file...
Power Automate
Suggested Answer

Error Action 'Get_file_content_using_path' failed

(0) ShareShare
ReportReport
Posted on by 2
Hi, 
 
I am attempting to create a flow, where, form responses are saved to a SharePoint list, the flow keeps failing at the final stage of retrieving the attachment from the form responses and adding them to the list item. I can confirm the folder path is accurate. I see that the flow has picked up the 3 attachments I included my test however I receive the following error:
 
 
Error
Action 'Get_file_content_using_path' failed:
Unable to process template language expressions in action 'Get_file_content_using_path' inputs 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 'Object'. Please see https://aka.ms/logicexpressions#json for usage details.'.
 
Hoping someone could assist. 
 
Thanks. 
Categories:
  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at
     
    Can you please show us what you are passing the input to that action? As it is in Apply to each, the correct format will be something like items('Apply_to_each_1')?['FieldName']
     
    make sure you are passing it correct and you can also check by placing compose action before to file content action and check is that returning correct output?
     
    If I have answered your question, please mark it as the Answered. If you like my response, please give it a Like.
     
    Regards,
    Srini
  • Gwynn Profile Picture
    35 on at
    I suspect there is an issue with your parameters. Most probably you are using wrong Dynamic content. 
    Unfortunately provided information is not enough to determine or resolve it. 

    As a workaround you can try to use:

    Get Files (Properties only) with Filter Query - 
    FileLeafRef - is a hidden parameter which consists of Filename.Fileformat (example: Document.PDF)
     
    After which you can use Get file content with identifier from Get Files (properties only).

    Hope this helps. 
  • Suggested answer
    DG-29110403-0 Profile Picture
    2 on at
    Hi Everyone, 
     
    Thank you for your feedback, I am very new to Power Automate and identified my error, while I had specified the file path I had not selected a file from the folder. Once I corrected this the flow worked perfectly. 
     
    Thanks again. 
     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard