Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

'

  • Charlie_W Profile Picture
    4 on at
    Re: Get changes for an item or file failure - unknown error

    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

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Get changes for an item or file failure - unknown error

    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.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1