Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Suggested answer

error object reference not set to an instance of an object

(0) ShareShare
ReportReport
Posted on by
I am trying to update a field value on the list item that triggered the flow. I am receiving the following error in the Update Item action and my list item is not updating. Any help is greatly appreciated.
 
Flow:
Triggered when a sharepoint list item is created
Step 1 is Get Items - filtered to only pull the 1 previous record related to the newly created row (to pull the previous days mileage)
Step 2 is For Each loop (because Get Items pulls a list even thou it is currently limited to pulling 1 row)
Step 3 (inside the For Each Loop) is Update Item (keeping all values from the trigger record but calculating todays mileage using todays entry minus the previous days mileage)(using the sub function)
 
 
 
Categories:
  • Suggested answer
    eetuRobo Profile Picture
    3,587 Super User 2025 Season 1 on at
    error object reference not set to an instance of an object
    Can you share a screenshot of your flow so its easier to troubleshoot. Also your flow sounds like a cloud flow even though you posted the question on desktop flow section

    Could be that your Update item is using array that has one item in it.

    Since your flow is supposed to use only one item you could remove the For Each loop and just use first() -function to get the first item only. Or use "Get item" -action instead of "Get items"

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492