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
Unanswered

Unable to process template language expressions in action

(0) ShareShare
ReportReport
Posted on by 2

Hello all! Im hoping I could get some guidance on an issue Im facing. I hope this is a simple oversight on my part but I'm using a flow from https://sharepointnomad.wordpress.com/2020/06/29/office-365-storage-utilization-alerts-with-a-power-automate-workflow/

 

This flow sets tenant storage alerting for Sharepoint by parsing the admins page json for certain parameters. Those parameters are converted into integers and with some simple div converted to a more easily readable number. I have this flow working in my lab but in prod its fails with the following error.

 

Unable to process template language expressions in action 'Initialize_intTenantStorageMB' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

 

I make sense of why this works in one tenant and not the other. The only smoking gun I have is that prod is multi geo tenant and the json being parsed has multiple identical fields (TenantStorage for Europe, TenantStorage for Asia, etc...) that int values are being initiated from. Any help would be appreciated.

I have the same question (0)
  • catlabs Profile Picture
    2 on at
    Re: Unable to process template language expressions in action

     

    Parsed JSON

    catlabs_0-1677691802143.png

    catlabs_3-1677691996687.png

     

     

     

    Appending value to string variable

    catlabs_1-1677691812409.png

     

    Initializing int variable (this is the failed step). I have a similar step that succeeds when I remove this step...Also, I dont believe I need to use a compose here as it all works in my lab.

    catlabs_2-1677691830659.png

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

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

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard