Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 5jmQ5OKohmYrB+PflJ/z0T
Power Automate - Building Flows
Unanswered

SQL Get Rows - row count

Like (0) ShareShare
ReportReport
Posted on 13 Feb 2024 10:47:00 by 86

I have been using the following expression with an om premises SQL Get Rows action, to check if any rows were returned:

 

length(body('Get_rows_(V2)')?['value'])
 
Recently this seems to have stopped working and I get the error:
 
Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'.
 
Has anyone else experience this? I have been using the above for years and it has been fine.
  • DuncanIVH Profile Picture
    86 on 13 Feb 2024 at 11:54:56
    Re: SQL Get Rows - row count

    ems to be related to the SQL view that I'm selecting from. Some views return an empty Body, others return no body at all

  • DuncanIVH Profile Picture
    86 on 13 Feb 2024 at 11:08:13
    Re: SQL Get Rows - row count

    I have also tried

    length(outputs('Get_rows_(V2)')?['body/value'])

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 18 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 16

#3
Churchy Profile Picture

Churchy 12

Overall leaderboard
Loading complete