Hi there,
I have a Power Automate Desktop flow that reads data from a CSV file (source) where each row consists of 4 columns.
It then opens a Desktop Application and uses a "for each" loop to populate text fields in the application and presses the "OK" button to submit the data. That all works well if the data is valid.
My problem is I cannot seem to capture Desktop application error messages on screen if they appear, is there a way to do this?
Valid data meaning datatypes are correct for each field (whole number, text field, date etc.) and numbers are not negative or too large, if so, the Desktop application produces an error message on screen with details of the error.
The Desktop application could also produce an error after all 4 fields and been filled in, the "OK" button is pressed but the data is not valid, example the project number does not exist etc.
So there are multiple different error messages that may appear, depending on what triggered it. The error message dialog box appears approximately in the same position on the screen each time regardless of what the error is. That is, if the position of the error message box could be used to determine if an error occurred, that might work.
Each CSV file consists of 100+ rows, ideally I want the flow to enter them one-by-one and if a Desktop application error appears on screen, the row gets written to an CSV error log file and continues the loop to the next row until finished.
Have tried surrounding the process in a "On Block error" but that does not capture the error message that may or may not appear on screen.
My guess is that somehow I need to use an "If" statement on the error message dialog box, so that if an error message appears, than write to log file, else proceed to next row. But haven't been able to figure it out the logic so far...
Any help would be much appreciated.
Thanks
Nick