Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Updating file property using excel table data

(0) ShareShare
ReportReport
Posted on by 80

I've been trying to add to add a branch to a flow and cannot get the addition to work. I would like to update the file property for "Month" with the data already be extracted from the excel file. 

I'm getting a generic failed action error. Below is my flow and the error screen. Any help is appreciated. 

update month.jpg

Month error message.jpg

  • Verified answer
    ML147243 Profile Picture
    80 on at
    Re: Updating file property using excel table data

    The issue ended up being that the flow still had the excel connection in use when I was trying to update the properties. I found more details about the error in the outputs of the last failed action and it said the file was locked by me. 

     

    I ended up initializing a variable for the itemID after the " Get metadata. I then passed that information on to the child flow, where I added a Delay action and then an update file properties. 

    ML147243_0-1644346579053.pngML147243_1-1644346599763.pngML147243_2-1644346669155.pngML147243_3-1644346696474.pngML147243_4-1644346709412.png

     

  • ML147243 Profile Picture
    80 on at
    Re: Updating file property using excel table data

    @v-jefferni I'm sorry, I forgot to add my filter in the get files. I have tried many different ways to get this to work. This is what I currently have FileLeafRef eq '@{outputs('Get_file_metadata')?['body/Name']}'. It does find the file but I get the action failed error. I will try the internal ID again.

  • v-jefferni Profile Picture
    on at
    Re: Updating file property using excel table data

    Hi @ML147243 ,

     

    Actually I cannot understand the logic from your flow steps, you will update each file property based on all the excel file month column values? I suppose you would like to update file properties based on the ItemInternalId value from in the Excel and file ID in the library, then you will need to filter the files in the step Get files (property only) 2 action with filter query ID eq ItemInternalId, then for each filtered file update the properties based on the month value.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • ML147243 Profile Picture
    80 on at
    Re: Updating file property using excel table data

    @v-jefferni Is this better?

    ML147243_0-1644266113873.png@

    ML147243_1-1644266128136.png

    "type""array",
        "items": {
            "type""object",
            "properties": {
                "@@odata.etag": {
                    "type""string"
                },
                "ItemInternalId": {
                    "type""string"
                },
                "Class": {
                    "type""string"
                },
                "Date Trained": {
                    "type""string"
                },
                "Num enrolled": {
                    "type""string"
                },
                "num No-show": {
                    "type""string"
                },
                "Num Walk-in": {
                    "type""string"
                },
                "Instructor": {
                    "type""string"
                },
                "Ivanti Ticket": {
                    "type""string"
                },
                "Comments": {
                    "type""string"
                },
                "Reference": {
                    "type""string"
                },
                "Month": {
                    "type""string"
                }
            },
            "required": [
                "@@odata.etag",
                "ItemInternalId",
                "Class",
                "Date Trained",
                "Num enrolled",
                "num No-show",
                "Num Walk-in",
                "Instructor",
                "Ivanti Ticket",
                "Comments",
                "Reference"
            ]
        }
    }
    ML147243_2-1644266212578.png

     

    ML147243_6-1644266320686.pngML147243_7-1644266331016.png

     

     
     
     

     

  • v-jefferni Profile Picture
    on at
    Re: Updating file property using excel table data

    Hi @ML147243 ,

     

    The screenshot of the flow is too fuzzy, could you please edit the post and replace it with a clearer one? Besides, what is the result table of the Parse JSON operation?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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