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 / Compose Error: Unable ...
Power Automate
Unanswered

Compose Error: Unable to process template language expressions in action 'Compose' 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 'Null'. Please see https://aka.ms/logicexpressions#json for usage

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

I am trying to generate a flow to send an email with an image loaded in a sharepoint column of image type, but the "Compose" step gives me the following error.

 

Francisco77_0-1702478392416.png

 

Does anyone know how it could be solved?.

 

Thanks for youre help¡.

Categories:
I have the same question (0)
  • abouchaala007 Profile Picture
    on at

    Hi@Francisco77 , could you provide the expression you are using? 

  • Francisco77 Profile Picture
    353 on at

    Hi @abouchaala007 

     

    The expresion I used is: 

     

    json(body('Send_an_HTTP_request_to_SharePoint')?['d/results']?[0]?['Foto1'])
     
    Where Foto1 is the internal name of column.
     
    Francisco77_1-1702480681922.png

     

    Thanks for youre help¡.

     

     

  • Chriddle Profile Picture
    8,691 Super User 2026 Season 1 on at

    Either the property Photo returns null or there is no property Photo or the results array is empty or not existent at all.

    Just remove the question marks from your expression and the error message will tell you.

     

    If you don't care what caused the error and just want to get rid of it, you can use:

    json(coalesce(body('Send_an_HTTP_request_to_SharePoint')?['d/results']?[0]?['Foto1'], '{}'))

    This expression returns an empty object if Photo is null.

  • Francisco77 Profile Picture
    353 on at

    Hi @Chriddle 

     

    Thanks, it doesn't actually give the error, but I have a question as to why it should return a null value if there is an associated image.

     

    Francisco77_0-1702502609244.png

    And if possible, I would also like to ask you how I can solve the problem that now generates the error in the step that follows the flow (Get File Content Using Path).

     

    Francisco77_1-1702502775076.png

     

     

    Thanks you very much¡

  • Chriddle Profile Picture
    8,691 Super User 2026 Season 1 on at

    Check if the expected property Foto1 exists in the output of "Send an HTTP request to Sharepoint".

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 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard