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 / check if excel file is...
Power Automate
Answered

check if excel file is empty

(0) ShareShare
ReportReport
Posted on by

Hello community, I got a problem while creating a flow to check whether excel files which got imported in to sharepoint list are empty for not. My requirement is that 2 or more files could be import into SharePoint site at the same time. For the trigger,I use when a file is created (properties only)

deerzzxdell_0-1708588292106.png

deerzzxdell_2-1708588392846.png

deerzzxdell_1-1708588348620.png

 

And I got an error like this after trying to import an empty excel file,

deerzzxdell_3-1708588621274.png

 

I assume this means the flow can't find table name because it is empty. 

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @deerzzxdell 

     

    You could check the length of value object returned by "Get tables" action to know if table exists or not. 

    ManishSolanki_0-1708590309055.png

    You need to write an expression to get the length of an object array:

    length(outputs('Get_tables')?['body/value'])

     

    If table exists, then you can add subsequent actions in the "Yes" block.

     

     

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

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @deerzzxdell ,

     

    According to the error, you are correct. In flow run history, you can check the output of Get tables action and see the result. To check in real run time if the excel is empty, you can use a condition control below the Get tables action:

    vjefferni_0-1708590581420.png

     

    Best regards,

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard