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 Automate
Answered

Get a row

(0) ShareShare
ReportReport
Posted on by 6
Hello,
 
I have an excel table with a date column, the cells are formatted as such and show correctly.
 
in my flow I have the ‘get row’ action which links to document correctly and recognises the table.
i have selected the column ‘date’ as the key column and set the key value as  adddays(utcnow(),-1,‘dd-MM-yy’)
 
when I run the flow the error comes back as ‘No row was found with ID 02-12-24’ despite there being a row with that date.
 
can anyone help please
 
Thank you
Categories:
I have the same question (0)
  • Suggested answer
    Artur Stepniak Profile Picture
    1,539 Moderator on at
    Hello,
     
    I'd suggest you to switch the datasource, if possible, to a SP list, for example. Excel is generally not recommended way to store the data used in automations.
    You encounter the error, because you're trying to get a row by using incorrect ID. You'd need to call the key column as it acts as a key for an Excel table. You can add a key column via Power Automate: https://manueltgomes.com/reference/power-automate-action-reference/excel-add-a-key-column-to-a-table-action/.
    Still I'd suggest you to switch the datasource to SP list. :-)
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
  • Verified answer
    rzaneti Profile Picture
    4,491 Super User 2026 Season 1 on at
     
    You have two possible options: use a List Rows Present in a Table and filter it by day, or use some text transformation expressions to convert your date into serial number before using it in Get row. Let's see these 2 options in practice.
     
    I'm working with this sample table:
     
     
    Then in PA I have the same formula as you, but allocated in a Filter query, where column date must match to your addDays:
     
    For this approach, make sure to set the DateTime Format property to ISO 8601 (highlighted in yellow above), since Excel return dates in Serial format by default.
     
    The other option is to keep working with Get a row, but transforming your date into a serial format before adding it as key value (we use the expression from Compose for it). For this approach, make sure to set the DateTime Format property to Serial Number
     
     
    The full expression is: first(split(dateDifference('1899-12-30', startOfDay(addDays(utcNow(), -1))), '.')), where your original expression is allocated in the inner layer, and it basically gets the date difference between your date and Dec 30, 1899, and isolate the days qty from it. Depending on your timezone, you will need to adjust the default date for comparing the difference to '1899-12-31': I'm at EST and Dec 30 works better. 
     
    I'm also sharing some articles related to the topics discussed here for further reference:
    - Get a quantity of days between two dates with Power Automate: http://digitalmill.net/2024/04/16/extracting-days-and-time-from-timespans-in-power-automate/
     
     
    Let me know if it works for you or if you need any additional help!
    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.
     
     
     
     

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 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard