web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Action 'Create_HTML_table' failed error received when the action is running successfully

(1) ShareShare
ReportReport
Posted on by 132

Hi all,

 

I built a Flow that's working perfectly but I'm receiving the below error message regarding failed attempts at creating an HTML table. The Create HTML table action is running successfully though. 

 

I narrowed it down to this item in my Parse JSON step

 },
            "[Standard_Deviation_on_Tasks_per_Week]": {
                "type": "number"
            },
 
and am handling it with this: 
formatNumber(coalesce(item()?['Standard_Deviation_on_Tasks_per_Week'],'0','N1'))
 
but still receive the error.

 

Action 'Create_HTML_table' failed: The execution of template action 'Create_HTML_table' failed. The column values could not be evaluated: 'The template language function 'formatNumber' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'. 

 

bchager6_0-1720209598145.png

 

I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    52,836 Super User 2025 Season 2 on at
    Re: Action 'Create_HTML_table' failed error received when the action is running successfully

    Hi @bchager6 

     

    Sorry I just have to say it... If it was working perfectly, you wouldn't have an error or be here 😉 

     

    A few things.

     

    1. You formatting of the expression is incorrect check this out (and there are other issues)

     

    You wrote
    So lets break this apart
    You making it look like the '0' and the 'N1' are part of the coalesce which is incorrect 
    
    formatNumber(
     coalesce(item()?['Standard_Deviation_on_Tasks_per_Week'],'0','N1')
    )
    
    
    It should be written like thi
    formatNumber(
     coalesce(item()?['Standard_Deviation_on_Tasks_per_Week'],'0'),'N1'
    )
    
    Next you have another issue.
    formatNumber expects a number, but in your coalesce, if the property is blank you are passing a string of '0' instead of 0
    
    Which means you need to use the int expression function to convert it to an actual number, before formatNumber gets it or return 0.
    
    Either way if the property isn't an int then you need to do this
    
    formatNumber(
     int(coalesce(item()?['Standard_Deviation_on_Tasks_per_Week'],'0')),'N1'
    )
    
    or maybe its a decimal or something.
    
    

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • bchager6 Profile Picture
    132 on at
    Re: Action 'Create_HTML_table' failed error received when the action is running successfully

    @FLMike Thanks for the info!

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard