Hi all,
I have an issue that's been driving me bonkers for the past few months.
I have an Excel file stored in OneDrive. In that file I have multiple queries to a SQL database. I've created a macro in that file to refresh these queries, it started as something simple like:
For Each objConnection In ThisWorkbook.Connections
objConnection.Refresh
Next
I then created a PAD flow to open this file, run the macro to refresh the queries, then close the file. I've also set up a Flow to run this PAD Flow as "Attended" every day @ 4am (outside active business hours).
90%-95% time, the entire process runs fine and I can see that the file successfully refreshed. The rest of the time, I'll come into work and see that the file didn't refresh at all or only some of the queries refreshed. When I check the Flow gateway run history it shows everything Succeeded.
I've tried changing the Excel macro to loop multiples times, but it still sometimes fails to refresh. The frustrating part is that I've never been able to replicate the issue when running this process manually or triggering the PAD manually, it only ever happens when it runs overnight via PAD (and then notice in the morning when it didn't work). I'm actually having this same problem with a few others Excel files too that I refresh daily via PAD.
Could this be an issue with PAD? It is an issue with OneDrive? I'm hoping someone can give insight into what might be causing this problem.
Thanks