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 / Power Automate - Updat...
Power Automate
Suggested Answer

Power Automate - Update Sharepoint Item from online Excel

(0) ShareShare
ReportReport
Posted on by 4
I am working on creating a flow that reads an Excel file I have uploaded to our site and then updates 2 date columns in a Sharepoint LIst from the Excel file. In the Excel file, Column C & D are formatted to be dates. Sharepoint is set to be just dates, as well.
 
In the excel sheet, I am showing an actual date (e.g., 3/8/2025). Flow order:
  • Recurrence
  • List rows present in a table
  • Apply to each
    • Get Sharepoint Items (filter if Sharepoint Title matches Column A in Excel)
    • For Each
      • Update Sharepoint Item
In the Update Item, I am setting 'staDate' in Sharepoint to be populated with "Start" column from Excel. The flow finds the matching items with no problems. All of the other data updates, except anything with a date in it. The flow is reading the date cells a "null". I have tried reading the excel cell as a string, and the string contains no data. I have tried reading just the excel cell straight (no conversion, "compose", just put in a text field the value of whatever is in the cell), and nothing. Still null. I tried converting the dates in Excel to just a number, still reads as a null.
 
I have updated the "List rows" action to read as an ISO format or as an Excel serial number. Still null. No matter what I try, the dates come into the flow as "null".
 
What am I doing wrong? Thank you in advance for your help.
2025-03-03_16-17-...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi,
     
    Once I can see your picture maybe I can tell you more. However, I'd like to see the flow Composite (build mode with inputs).
    I'd like to see the Excel File (even just a row mocked up)
    I'd like to see the Table definition and Key for Excel 
    I'd like to see the data going OUT of the List rows in a table. I don't really care about going back that at the moment. I want to see the actual output so we can see if it "Should" be non-null or if the List Rows in a Table returned a NULL there and there could be a reason.
     
    Just not one I can think of without seeing more :-)
  • vader7071 Profile Picture
    4 on at
    Attached are a breakout of the flows with settings, and a screen shot of the excel file. The Excel file is located within %Sharepoint%\Documents\{excel_file}.xlsx
     
    For additional information, "Comments" is a multiline text field. So I am having the flow dump data in there as well just to see what is being seen. When I run it, any field that is being read (e.g. Start, Finish) does not get copied over. But I was not looking at all fields. So this morning, I added another test to see what was being read. I added "Title" from the Excel file to be written into the SP\Comments. When I ran the flow then, Ex\Title copied into the SP\Comments field no problem.
     
    For a reference, here is the information in SP\Comments:
    -          sta = item()?['Start'] - , fin = 'item()?['Finish']' - string(item()?['Finish'])) - utcNow() = item()?['Title']
    bold = dynamic context or function. There are ' surrounding item()?['Finish']. I was testing to see if that was the issue. It did not make a difference. The various - and = are just dividers to delineate where data should be. The last run of the test resulted in this data in SP\Comments:
    -          sta =  - , fin = '' -  - 2025-03-04T13:16:49.3244583Z = B1.C.3220
    I highlighted the corresponding outputs so you could see what is where. You can see there are no spaces where the item()? is supposed to be.
     
    So I have confirmed the following:
    • The flow is capable of reading SP\Title and Ex\Title and compare the 2 text strings
    • The flow is capable of reading SP\staDate and Ex\Start and compare the 2 dates
    • The flow is capable of reading SP\finDate and Ex\Finish and compare the 2 dates
    • The flow is capable of copying the text from Ex\Title and pasting it into SP\Comments
     
    Issues:
    • When trying to copy the information from Ex\Start to SP\staDate, the flow cannot interpret the data and results in a null.
    • When trying to copy the information from Ex\Finish to SP\finDate, the flow cannot interpret the data and results in a null.
     
    Tested variances:
    • Setting DateTime format in "List rows present in a table" as Serial number => FAIL (results in null)
    • Setting DateTime format in "List rows present in a table" as ISO 8601 => FAIL (results in null)
    • Setting Ex\Start column formatted as "Date (3/14/2012)" => FAIL (results in null)
    • Setting Ex\Start column as "Number" => FAIL (results in null)
     
    In the flow functions, I have also tried:
    • formatDateTime(item()?['Start']),'MM/dd/yyyy') => FAIL (crashes flow when going to SP\staDate, null when going to SP\Comments)
    • string(item()?['Start'])) - FAIL (crashes flow) => FAIL (crashes flow when going to SP\staDate, null when going to SP\Comments)
    • formatDateTime(string(item()?['Start'])),'MM/dd/yyyy') => FAIL (crashes flow when going to SP\staDate, null when going to SP\Comments)
    More testing updates:
    When I look at the raw outputs for the "List Rows", it shows that "Start": "2025-03-03T00:00:00.0000Z", so I am getting data into the flow. But when I look at the raw input for the "Update item", it shows "Start": null. So somewhere/how I am losing the data or connection to that information.
    2025-03-03_16-17-34.png
    2025-03-04_06-54-54.png
  • Suggested answer
    vader7071 Profile Picture
    4 on at
    I resolved the issue. I had to think in reverse of my initial thought process.
    2025-03-04_13-32-12.jpg

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
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard