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 for 'When item o...
Power Automate
Unanswered

Error for 'When item or file is modified'

(0) ShareShare
ReportReport
Posted on by 2

When a specific column is changed, I created the following flow, but it's still not working!

 

Flow is as follows:

Expression used in *since field: "sub(int(item()?['{VersionNumber}']),1)"

 

Jassel_Zumaya_0-1702494404349.png

 

 

I get the following error in 2nd step "get changes for an item or a file (properties only)":

Invalid Template

Unable to process template language expressions in action 'Get changes for an item or a file (properties only)' 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.'.

 

No idea how to solve!

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Jassel_Zumaya ,

     

    sub(int(item()?['{VersionNumber}']),1) is wrong, the expression should be:

     

    sub(int(triggerOutputs()?['body/{VersionNumber}']),1)
     
    In addition, you need to set the id parameter of the action.
    vbofengmsft_0-1702516819972.png

     

     
    Best Regards,
    Bof
  • Jassel_Zumaya Profile Picture
    2 on at

    No luck. I am still getting the same error.

     

    I've added the ID* and updated the expression.

    It automatically added an "apply to each," to the "get changes for an item or a file" function, but still did not work. 

     

     

     

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard