web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Referencing Datatable ...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard