I am encountering an issue when trying to open an application with the modern style. It turns out that if I open it with the classic style, it works correctly, but if I open it with the modern style, it throws an error indicating that a parameter is missing. However, I cannot find this parameter anywhere. What could be happening?
I encountered a parameter that, in the modern style, I am unsure how to make it work in modern style.
In the modern style, it appears in the browser option; however, this application is a desktop one.
This is the image of the icon I use to access it from the desktop by double-clicking.
Additional information:
When I run the program using the Windows command:
The system opens correctly. However, if I execute it through UiPath (in any way except the classic mode), it throws a “working directory error”.
Launch the application and than spy by selector in use application browser activity
Use Start Processe
activity with your argument before Use Application activity.
After Start Process
activity, use Use Application/Browser
activity and set Open
Property to Never
.
This way the process will start with the desired argument and Use application/Browser
activity will get the application to work on.
Have you tried the Use Application browser activity without the “Argumentos de la aplicación”, you can just leave that option empty.
Yes, I tried. That doesn’t work.
Can you show us the packages versions that you are using from the Manage packages option? Maybe we can Update the UiAutomation Package and the system.activities in order to have a successful result
Selector of Classic type:
wnd aaname=’ I.V.A. Registración • Holistor Estudios Contables Milenio*’ app=‘wholiva.exe’ cls=‘wholiva7c*’ title=’ I.V.A. Registración • Holistor Estudios Contables Milenio*’
Selector of Modern Type:
wnd aaname=’ I.V.A. Registración • Holistor Estudios Contables Milenio fer(’ app=‘wholiva.exe’ cls='wholiva7c’ title=’ I.V.A. Registración • Holistor Estudios Contables Milenio*’
existe una pequeña diferencia, reemplace y puse el mismo selector y sigue dando error.
Try upgrading the package UiPath.System.Activities
to latest possible version.
Sorry, the response was left unsent, the same thing happened. It is updated but still gives that error.
Hey there @Matias_Clemente.Arg
Short one, I was trying to see what error were you getting and I cant find it on this thread - can you give me some light on it?
With “Start Process” the app should open, and the “Open Application - Abrir Hollistor” should change to an “Use Application” activity (similar to the old school attach window}
Hello Ignasi, it’s a pleasure to greet you.
The issue is straightforward: in classic mode, it takes the working directory (as indicated in the shortcut on the desktop). However, in modern mode, it does not. In my opinion, it is not taking the “Start in” parameter.
When I run it in Classic mode, the system works, but in modern mode, it gives me an “incorrect directory error.”