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 / Get changes for an ite...
Power Automate
Unanswered

Get changes for an item or file failure - unknown error

(0) ShareShare
ReportReport
Posted on by 4

Hi, 

 

I am getting really stuck on an issue with the 'Get changes for an item or file' block in one of my flows. I have used this several times before without issue but for some reason this flow is failing on this part.

 

To note: I have versioning opted in on my Sharepoint list already

 

Charlie_W_0-1718145671167.png

 

The error message i'm getting is '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.'.'

 

In my Get changes for an item or file block i have it set up as follows

 

Charlie_W_1-1718145770387.png

 

The 'since' expression is set as 

sub(int(triggerOutputs()?['body/{VersionNumber}']), 1)
 
I've used this many times before without issue and have confirmed that the Version number is being included in the outputs of each flow run.
 
So i'm a little confused as to why i'm seeing this error now?
 
Any help on this would be much appreciated
 
Thanks

'

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Charlie_W 

     

    Pls verify if you are getting decimal or period in version number.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Charlie_W Profile Picture
    4 on at

    Hi @ManishSolanki 


    My version number does include a decimal.

    This seems to be the case with all my flows that include this action without having any issue though?

     

    I tried recreating the first few steps in a new flow and it worked this time but I am really confused as to why this Flow is failing, would be great to understand this so to avoid having to rebuild Flows in the future

     

    thanks

    Charlie

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard