Skip to main content

Notifications

Community site session details

Community site session details

Session Id : /0T48hqgLboweSrgf6Gzpq
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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 292 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 259 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 212

Overall leaderboard
Loading started