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 / Referencing Datatable ...
Power Automate
Answered

Referencing Datatable Row with Variable (After Searching for Matches)

(0) ShareShare
ReportReport
Posted on by

After finding a match in one column of a datatable, I want to read a different column value in that same row.  The error I'm getting below is that the value of the row, the row number of the match, is not a valid property.  Meaning, if it finds a match on row 55, it successfully sets the "MasterPV_Row" variable to 55, but then when trying to reference row 55, I get "55 is not a property" error.  What am I doing wrong?

 

Ukiman1014_0-1698444851676.png

Ukiman1014_1-1698444953242.png

 

I have the same question (0)
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    This is because for some reason (no idea why) the Find or replace in data table action returns the row and column indexes as strings. But you need them to be numeric to use them to reference a value in the table. So, you need to use the Convert text to number action on the index to convert it to a valid numeric index. After you've converted it, you can use it the way you're already doing it - your syntax is actually correct.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Ukiman1014 Profile Picture
    on at

    That did it - thanks!  I also have it step through the matches, as there could be more than one.

    Ukiman1014_0-1698762944471.png

     

  • fabianmaltempo Profile Picture
    2 on at

    Hi all. When I try to convert the text tu number, it is giving error: Can't convert text 'DataTableMatches2[0][0]' into a valid number (text provided is either in a non-recognizable format or contains too many characters

     

    It is a 1.

     

    Has anyone faced something similar?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard