I am annoyed with this issue. I have set it up the same way you have and got the same results. The file attached to the email will not be updated correctly. The new copied file will be updated (kindof).
The new copied file with the updated row, when opened in file explorer, shows the last updated row incorrectly for about a second, and then it will populate with the correct information. It is almost like the data is stored within the file correctly, but it just needs to be opened up to fully refresh.
I have tried multiple methods to get this to work properly and the only way I am able to get a consistent result is if I put a delay of at least 3 minutes after the row is updated.
3 minutes seems to be the minimum amount of delay to get consistent results and I'm assuming longer would be ideal.
When I set the delay for 2 minutes, it would work sometimes correctly and sometimes not.
DELAY WILL NOT WORK WITH RAPID FORM SUBMISSIONS WITHIN 3 MINUTES OF PREVIOUS SUBMISSION
The update row has already happened from the next submission while the previous submission is waiting.
I'm putting an example of my flow below, but it is nothing much different. It only has the additional delay step.
Delay After Update
I hope this helps,
Below are all of the things I tried to do differently and could not get consistent results. Either the email file was still using the older information, or the attachment would actually have the correct information but it would not perform correctly every time:
- Instead of Copy file, I Created a new File and then inserted the Content.
- Instead of using the New File Content in the email attachment, I used the original source excel file as the content.
- Tried to put a List Rows of Excel Table step after the Update a row hoping that would trigger the file to update properly.
- Created a Do Until loop that constantly Get Row from excel and check the Response ID column until it matched the new response ID.
- Copied the file then used an Update File to attempt to update the new copied file with the source data.
- Put copied files into a separate folder hoping that would trigger an update file.
- Turned off Asynchronous Pattern in the update row Settings attempting to prevent the flow moving without file being completely updated.
- Put flow steps in different sections of the flow as well as created different Scope sections that would only run after the first Scope completed.
From my testing the only thing that helps is time delay.