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 / compare Excel and list...
Power Automate
Unanswered

compare Excel and list values

(1) ShareShare
ReportReport
Posted on by 32

Dears

Greetings

 

I would like to compare two values in the Excel table and SP List. If the value exists in Excel update the item if not exist create an item.

I tried the condition but I ran into an error

Excel table & SP List :

mEMOSTATUSdate
6000829511Issued2022
6000829563Issued2022
6000829326Issued2021
6000829251Deleted2020
6000829760Issued2019

flow:

qunq_0-1694883692660.png

 

qunq_1-1694883755787.png

 

qunq_3-1694883808815.png

ERROR:

Unexpected error. Request to Azure Resource Manager failed with error: '{"error":{"code":"ActionRepetitionNotFound","message":"The specified repetition '000001-000000' of workflow action 'Condition' is not found."}}'.

qunq_4-1694883966673.png

 

Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at

    Hi @qunq ,

     

    I think the error is related to the nested apply to each?  Not 100% sure but I found a flow I created for another post that does the same thing, create an item or update and item.  Please review, maybe there is something here that will help you.

     

    The left side is the Create Item side, Right is update item.

     

    trice602_0-1694885483018.png

     

     

    The left side, create item:

     

    trice602_1-1694885566596.png

     

    The right side, update item:

     

    trice602_2-1694885620043.png

     

     

    So I think the key for your flow instead of a condition is to use the Get items filter query and check if you need to update and create.  I use a conditional action to see if the output length is greater than 0 and works pretty good in a lot of flows.

     

     

     

     

  • qunq Profile Picture
    32 on at

    Thank you for your reply but the flow is not working probably.

    qunq_0-1694936221097.png

     

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @qunq 

     

    I think this error occured due to iteration update which is looping in collection (i would say collections update). 

    Also your design seems to have some logical issues i think so 

     

    Try this flow design

     

    I have used below excel templates

    Nived_Nambiar_0-1694955436374.png

     

    Sharepoint List

    Nived_Nambiar_1-1694955454458.png

     

     

    Now use this flow design 

     

    1. Use list rows in table to list all rows under the table

    Nived_Nambiar_2-1694955501993.png

     

     

    2. Use apply to each loop to loop through all values under the excel table

    Nived_Nambiar_3-1694955708728.png

     

    2.1 Use get items to get the items having memo column equals currently iterating row Memo column value.

    (Represented in above screenshot)

     

    2.2 Use condition to check whether the output of get items contains any values or not, if it contain value, it means currently item is existsing and flow need to update it. Else if no values are present, then flow need to create it. See below

     

    Nived_Nambiar_4-1694955889230.png

     

    Expression used : length(outputs('Get_items')?['body/value'])

     

    If condition is True:

    Create Item

    Nived_Nambiar_5-1694956026534.png

     

    If condition is False:

    Update existsing Item

    Nived_Nambiar_6-1694956071392.png

     

    Expression: 

    first(outputs('Get_items')?['body/value'])?['ID']
     
    this expression helps to compute the ID of first item from the array 🙂
     
    Hope it helps !
    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard