I have built automation to refresh PowerBI dashboards on PowerBI Desktop application and have observed that for certain dashboards it randomly throws an error.
When I built control to close that error pop-up, the flow does not proceed further. However, I observed that another inactive window of “PowerBI Desktop” is present in the taskbar which ideally should not be there now. When I manually close this pop-up, the process continues as defined else not.
So as a solution to my issue I went through several discussions and came to know about “Kill Process” activity. However, my issue is that I do not want to kill the entire PowerBI process rather just kill this one instance which appears in Task Manager without any name so the process can continue to next queries and files.
Any help in this regards will be highly appreciated.
Please have a look at below thread. The thread explains how to kill a Process for specefic user. Here Before killing we are checking the current user. You can leverage the same for your case .
In addition to @mukeshkala recommendation, the second recommendation is to close the PowerBI window when you close the error pop-up. Attach Window activity for PowerBI which has an output variable of type Window which you can provide as Input to Close Window activity.
Both recommendations are complementary especially when using the REFramework, first try to close the application window otherwise kill the user process.
See the below image - Here I am trying to kill a Process from processList whoseName is Blank . I am not sure wether this will work .
For you process - You have to run the process in debug mode and see what all attributes you get for the item you want to Kill - That will be your If condition - This Sample Code is from the Link I shared above.