Hello,
I am building a flow that starts with a MS Forms response and pulls info from a spreadsheet attached on the form response and puts it in another spreadsheet. Then pulls the info from the second spreadsheet to send an email with a HTML table embedded which contains the info. The flow has a condition which decides between to parallel processes, but both of them do what I described earlier.
The condition on the left works fine. It correctly get the table from the attached spreadsheet, list rows, and add them onto the other spreadsheet. Then it lists the rows that just had been added on the second spreadsheet to use them in a HTML table.
However, for some reason, despite being a copy from the other condition, the flow on the left fails to list the rows that just had been added. The HTML table in the email shows empty, only with column titles but no data. I have resubmitted the same run and of course it duplicates the rows added on the spreadsheet, but the email table shows just one copy of the rows. This means it works fine, and that the problem is that the spreadsheet is too slow and by the time it actions the 'list rows present in a table', the table hasn't been updated yet from the previous action.
It doesn't really makes much sense to me because the other condition has the same order of actions and it works okay, the spreadsheet is already updated by the time the flow actions the last 'list rows present in a table'. I have tried adding a delay step of 20 seconds, to give time to the spreadsheet to get updated before the rows are listed, but the outcome is still the same: flow on the left works fine, flow on the right can't find the rows (and if rerun it only finds one copy of the rows).
Any ideas why this is happening and how to resolve it? Are there any tricks to get Power Automate to have enough time in between actions?
I've added a screenshoot of the beginning of the conditions in case anyone wonders. They only differ at the beginning. The one on the left gets a user profile using a spreadsheet table and puts a document in a array (to be used as attachment on the email), while the second adds two documents to this array (one of them being variable - that's why the scope). Everything else works fine, it's just the problem I mentioned before.
Thanks,
Guillermo