Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

Issue in "Get Tables" for Excel connector

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am facing an issue while creating a flow and I am hoping to find a solution here.

 

Flow: The flow is triggered when an email with an attachment is received in an outlook mailbox. The attachment is always an excel file which must be stored to a destination in sharepoint. The flow is working good up until this point. After saving the attachment in a sharepoint location, the contents of the excel file should be copied and then pasted to a different excel file. The problem that I am facing is while using the Excel "Get Tables" connector ("Get Rows is not available'). The file name field does not allow a dynamic file name value so you have to manually select the location of the filename which you must write the contents of the original excel file to. The problem here is that the flow works fine the first time but the second time it fails giving an error "The file is locked by the user (My own username)".

 

I have tried introducing a delay but it did not work. I have heard that replacing Sharepoint with OneDrive will work but for the task that I want to automate will need Sharepoint.I have tried searching online but I have found no other similar issue that might help me solve mine. Let me know if you guys know of a solution to this problem.Flow issue report 1.PNGFloe issue report 2.PNGFlow issue report 3.PNG

  • Community Power Platform Member Profile Picture
    on at
    Re: Issue in "Get Tables" for Excel connector

    Hi @ScottShearer ,

     

    I will try this out. Thanks a lot for this.

     

    Regards,

    @Anonymous 

  • Verified answer
    ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: Issue in "Get Tables" for Excel connector

    @Anonymous 

    Here is something to try - see my example below.

    The example attempts to demonstrate how to loop until the Excel action is successful.  See the run after configuration on the actions following the Excel action.  The variable that I declare is a Boolean and is initialized to false.  Please let me know if you have any questions. 

    ExcelError3.jpgExcelError2.jpg

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Issue in "Get Tables" for Excel connector

    Hi Scott,

     

    Thanks for your response but I tried with a delay of 10 minutes and 15 minutes and was still getting the same error, i.e. "File is locked". and the test for that particular flow ran for over an hour. I am not sure how the file would still be locked after waiting for that long. Pease, let me know if there is any other way to do this. Thanks.

     

    @ScottShearer 

  • ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: Issue in "Get Tables" for Excel connector

    @Anonymous 

    You might try setting your delay to a value over 6 minutes.

     

    The following is from the documentation for the GetTables action:

    Known Issues and Limitations

    • The maximum size of an Excel file that is supported by the Excel Online (Business) connector is 25 MB.
    • The data may not be up to date (there may be some delay) when filtering or sorting is used in the List rows present in a table action.
    • The List rows present in a table action supports basic filtering and sorting:
      • Supports the following filter functions: eq, ne, contains, startswith, endswith.
      • Only 1 filter function can be applied on a column.
      • Only 1 column can be used for sorting.
    • An Excel file may be locked for an update or delete up to 6 minutes since the last use of the connector.
    • A single Excel file should be used by a single connection to prevent writing data from multiple connections and possible data inconsistency.
    • The connector supports files only in Microsoft Excel Open XML Spreadsheet format (*.xlsx).

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics