Hello! I'm quite new to PA but I am really enjoying it. That is until I spent 6 hours on this issue haha! Please help!
I have 2 very big Excel lists. My flow needs to compare them. If the item from table 1 is present in table 2, it add it to table 3. Right now, what my flow does is the following:
- Lists all rows in Table1
- Apply to each row of T1
-
- Output: List of items (value)
- Lists all rows in Table 2
- Apply to each row of T2
-
- Output: List of items (value)
- Condition
-
- If Item# (from T1) is equal to Code# (from T2)
-
- Add a row to Table 3 (adds all information present in that row from T2)
- If false
-
- Nothing
Now, it does work.... but it takes hours! My tables are really big. I have filtered them as much as I could, and the flow now runs for about 2 hours before I end up with my new table (T3) with all the extracted information I wanted from T2).
I looked at the option to use do until so that it might take a bit less time and stop that loop once it find the right row to move on the the next item in T1, but I must be doing something wrong because, depending on where I place my "add a row into a table", it either:
- add the first row from T2 to infinity and beyond
- lists all rows from T2 until it finds the one I'm looking for.
Can anyone help me to get an efficient way of comparing my 2 lists and extracting the rows with same item #?
Thanks so much!