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:
I have the same question (0)
  • Srini007 Profile Picture
    3,467 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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard